Readonly addressReadonly blockchainReadonly decimalsReadonly nameReadonly symbolSerializes priceToken and its price to struct object.
Serializes priceTokenAmount to struct object.
Gets set amount in wei and converted to string.
Gets set amount with decimals.
Gets set amount in wei.
Calculates trade price impact percent if instance token is selling token, and parameter is buying token. If selling usd amount is less than buying usd amount, returns 0.
Token to buy.
Optional tokenStruct: Partial<PriceTokenAmountStruct<BlockchainName>>Clones token with fetching new price.
Optional tokenStruct: Partial<PriceTokenAmountStruct<BlockchainName>>Static createCreates PriceTokenAmount, fetching token's price.
Token structure with amount.
Static createCreates PriceTokenAmount based on token's address and blockchain.
Base token structure with amount.
Static createCreates array of Tokens based on tokens' addresses and blockchain.
Static tokensMaps provided tokens to their addresses.
Generated using TypeDoc
Contains token structure with price and amount.