State Variables
VERSION
tokenPrices
Functions
setSingleTokenPrice
that the token is the whole token and not its atomic unit. This means that if an ERC20 with 18 decimals has a price of 2 dollars, then its atomic unit would be 2/10^18 USD. 999_999_999_999_999_999 = 0xDE0B6B3A763FFFF, 1_000_000_000_000_000_000 = DE0B6B3A7640000 set the price for a single TokenName | Type | Description |
---|---|---|
tokenContract | address | is the address of the Token contract |
price | uint256 | price of the Token in weis of dollars. 10^18 => $ 1.00 USD |
getTokenPrice
that the price is for the whole token and not of its atomic unit. This means that if an ERC20 with 18 decimals has a price of 2 dollars, then its atomic unit would be 2/10^18 USD. 999_999_999_999_999_999 = 0xDE0B6B3A763FFFF, 1_000_000_000_000_000_000 = DE0B6B3A7640000 gets the price of a Token. It will return the Token’s specific price.Name | Type | Description |
---|---|---|
tokenContract | address | is the address of the Token contract |
Name | Type | Description |
---|---|---|
price | uint256 | of the Token in weis of dollars. 10^18 => $ 1.00 USD |
version
gets the version of the contractName | Type | Description |
---|---|---|
<none> | string | VERSION |