MoCReserve
Last updated
Last updated
View Source:
↘ Derived Contracts: ,
MoCReserve - version: 0.1.10
Constants & Variables
Parameters
Parameters
origin
address
amount
uint256
Parameters
destination
address
amount
uint256
Arguments
amount
uint256
account
address
Returns the amount of token reserve an account is allowed to use for deposit.
Returns
The minimum value between MoC allowance for that account and the account's balance.
Arguments
account
address
User account to check allowance.
Deposit reserve tokens into MoC address takeing it from origin address. Allowance of the amount should be made it before this.
Arguments
amount
uint256
Amount of reserve tokens to transfer.
origin
address
Account from which to take the funds.
Deposit reserve tokens into MoC address takeing it from origin address. Allowance of the amount should be made it before this.
Returns
true if transfer is successfull and false if not.
Arguments
amount
uint256
Amount of reserve tokens to extract.
destination
address
Account to which the funds will be sent.
Arguments
token
address
Calls RRC20 transfer function and returns a boolean result even if transaction reverts.
Arguments
to
address
Destination account of the funds.
amount
uint256
Funds to move.
Calls RRC20 transferFrom function and returns a boolean result even if transaction reverts
Arguments
origin
address
Destination account of the funds.
amount
uint256
Funds to move.
Wraps an RRC20 transfer with a low level call to handle revert secenario Emits CallRevert if call fails for revert
Arguments
callData
bytes
Packed encoded data to use as call parameter.