Read
ApprovedTokens
ApprovedTokens() returns(address[])Returns the list of tokens which can be exchanged against 1XMM, directly via the smart contract.
ETHDepositIsAllowed
ETHDepositIsAllowed() returns(bool)Returns whether deposits of ETH against 1XMM is allowed or not.
ETHExchangeIsAllowed
ETHExchangeIsAllowed() returns(bool)Returns whether it is allowed to exchange 1XMM tokens against ETH, directly via the smart contract.
EthExchangeRate
EthExchangeRate() returns(uint64)Returns the exchange ETH/1XMM rate for users who want to convert their 1XMM tokens into ETH.
The rate is provided in basis points (bp)
allowance
allowance(address owner, address spender) returns(uint256)Returns the allowance provided by owner to spender .
availableTokens
availableTokens() returns(uint256)Returns the number of 1XMM tokens which have not been allocated yet.
availableTokens = cap() - totalSupply()
cap
Returns the maximum number of tokens which can be allocated. When tokens are burnt, cap is decreased and can never be increased again.
decimals
Returns the number of decimals used by 1XMM tokens; decimals field is immutable and always equal to 18.
getApprovedTokens
Returns the list of tokens which have been approved for exchange against 1XMM tokens.
getAvailableQuantityOfETH
Returns the amount of ETH which is available for exchange against 1XMM tokens, at ETHExchangeRate price.
getAvailableQuantityOfToken
Returns the amount of tokenToBeReceived which are available for exchange against 1XMM tokens, at rate price.
getCCIPAdmin
Returns the address of the ChainLink CCIPAdmin in charge of cross-chain transfers for 1XMM tokens.
getExchangeInfoForToken
Returns the exchange status for tokenToBeReceived against 1XMM tokens, and the rate of exchange. If isAllowed is false, exchange of tokenToBeReceived against 1XMM is not possible, even if a rate is indicated.
Last updated