TokenProperties
View Source: @nomisma/elektro-protocol-aux/contracts/utils/TokenProperties.sol
TokenProperties
Library responsible for getting decimals and symbol values from tokens
Functions
getTokenDecimals(address token)
getSymbol(address token)
getTokenDecimals
Helper functions that gets decimals property for specified tokenAssembly is used to get decimals from token. Some tokens does not have decimals() function. If decimals() function is not found default value 18 is returned. Otherwise decimals value is taken from the token
Returns
decimals - decimals value for requested token
Arguments
Name | Type | Description |
---|---|---|
token | address | address of asset to get decimals |
getSymbol
Arguments
Name | Type | Description |
---|---|---|
token | address |
Last updated