RoC Stable Platform - Collateral RIF Token
  • Introduction
  • RIF On Chain platform
    • Main concepts
    • System states
    • Public actions
      • User actions
      • Process actions
    • Contracts architecture
      • MoC
      • CommissionSplitter
      • MoCState
      • MoCBucketContainer
      • MoCSettlement
      • MoCHelperLib
      • MoCLibConnection
      • MoCConverter
      • MoCExchange
      • MoCConnector
      • MoCRiskProxManager
      • MoCInrate
      • MoCVendors
      • MoCWhitelist
      • MoCBase
      • OwnerBurnableToken
      • RiskProToken
      • StableToken
      • MoCToken
      • PriceProvider
    • Contract mocks
    • Relevant patterns and choices
    • Data dictionary
    • Getting started
  • Integration with RoC platform
    • Introduction to RoC
      • The MoC Contract
      • RoC Precisions
      • RoC State Contracts
    • Getting RIFPros
      • Minting RIFPros
      • Redeeming RIFPros
    • Getting USDRIF
      • Minting USDRIF
      • Redeeming USDRIF
        • On Settlement: redeemStableTokenRequest
        • On Settlement: alterRedeemRequestAmount
        • Outside Settlement: redeemFreeStableToken
        • On Liquidation State: redeemAllStableToken
        • How-to
    • Commission fees values
    • Vendors
    • Fees calculation
    • From outside the blockchain
      • Using RSK nodes
      • Using web3
      • Official RIF On Chain ABIs
      • Events
      • Example code minting RIFPros
      • Example code minting RIFPros without Truffle
      • Example code redeeming RIFPros
      • Example code redeeming RIFPros without Truffle
      • Example code minting USDRIF
      • Example code redeeming free USDRIF
      • Example code redeeming USDRIF Request
      • Example code redeeming all USDRIF
  • Smart contracts
    • Contracts verification
    • ABIs documentation
      • Blockable
      • Blocker
      • ERC20Mintable
      • Governed
      • Initializable
      • MakeStoppable
      • MakeUnstoppable
      • MoC
      • MoCBucketContainer
      • MoCConnector
      • MoCConverter
      • MoCEMACalculator
      • MoCExchange
      • MoCHelperLib
      • MoCHelperLibMock
      • MoCInrate
      • MoCInrateRiskproxChanger
      • MoCLibConnection
      • MoCPriceProviderMock
      • MoCReserve
      • MoCRiskProxManager
      • MoCSettlement
      • MoCSettlementMock
      • MoCState
      • MoCStateMock
      • MoCToken
      • MoCVendors
      • MoCWhitelist
      • MocInrateStableChanger
      • MockBlocker
      • MockMakeStoppable
      • MockMakeUnstoppable
      • MockStopper
      • MockUpgradeDelegator
      • MockUpgraderTemplate
      • OwnerBurnableToken
      • Pausable
      • PriceFeed
      • PriceFeederAdder
      • PriceFeederRemover
      • PriceProvider
      • PriceProviderChanger
      • PriceProviderMock
      • ReserveToken
      • RiskProToken
      • StableToken
      • Stoppable
      • Stopper
      • UpgradeDelegator
      • UpgraderTemplate
Powered by GitBook
On this page
  • Contract Members
  • Modifiers
  • notBlacklisted
  • Functions
  • claim
  • setToFail
  • blacklistAccount
  • transfer
  • transferFrom
  1. Smart contracts
  2. ABIs documentation

ReserveToken

PreviousPriceProviderMockNextRiskProToken

Last updated 3 years ago

View Source:

↗ Extends: ,

ReserveToken - version: 0.1.10

Contract Members

Constants & Variables

string private _name;

string private _symbol;

uint8 private _decimals;

bool private failState;

mapping(address => bool) public blacklist;

Modifiers

notBlacklisted

modifier notBlacklisted(address account) internal

Arguments

Name
Type
Description

account

address

Functions

function () public nonpayable ERC20Detailed 

Arguments

claim

Only for testing purposes, any user can claim any amount

function claim(uint256 amount) public nonpayable

Arguments

Name
Type
Description

amount

uint256

setToFail

Set if contract should fail on every transfer or transferFrom operation

function setToFail(bool toFail) public nonpayable

Arguments

Name
Type
Description

toFail

bool

blacklistAccount

Blacklist an address

function blacklistAccount(address account) public nonpayable

Arguments

Name
Type
Description

account

address

transfer

⤾ overrides ERC20.transfer

function transfer(address recipient, uint256 amount) public nonpayable notBlacklisted notBlacklisted 
returns(bool)

Arguments

Name
Type
Description

recipient

address

amount

uint256

transferFrom

⤾ overrides ERC20.transferFrom

function transferFrom(address sender, address recipient, uint256 amount) public nonpayable notBlacklisted notBlacklisted notBlacklisted 
returns(bool)

Arguments

Name
Type
Description

sender

address

recipient

address

amount

uint256

contracts/test-contracts/ReserveToken.sol
ERC20Detailed
ERC20
notBlacklisted
()
claim(uint256 amount)
setToFail(bool toFail)
blacklistAccount(address account)
transfer(address recipient, uint256 amount)
transferFrom(address sender, address recipient, uint256 amount)