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()

balanceOf

Returns the number of 1XMM tokens held by account .

1XMM has 18 decimals

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.

getReleasableAmount

Returns the amount of vested tokens owned by msg.sender which are available for trading.

getRemainingVestedAmount

Returns the amount of 1XMM tokens which are still vested.

owner

Returns the address of the 1XMM contract owner.

totalSupply

Returns the amount of 1XMM tokens which have been allocated.

Last updated