Skip to main content

Supported Tokens

class SupportedToken<TInput extends Token>
constructor(    token: TInput,    minDeposit: CurrencyAmount<TInput>,    maxDeposit: CurrencyAmount<TInput>,    availableLiquidity: CurrencyAmount<TInput>  )

The Token entity represents an ERC-20 token at a specific address on a specific chain.

Example#

import { SupportedToken, CurrencyAmount } from '@composable-finance/v1-sdk-typescript'
const USDC = new Token(1, '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', 6, 'USDC', 'USD Coin')
const usdcSupportedToken = new SupportedToken(    USDC,    CurrencyAmount.fromRawAmount(USDC, '30'),    CurrencyAmount.fromRawAmount(USDC, '20'),    CurrencyAmount.fromRawAmount(USDC, '100'));

Properties#

token

token: Token

token return the Token base entity

minDeposit

token: CurrencyAmount<Token>

minDeposit represents the minimum allowed deposit for initiating a cross layer transfer

maxDeposit

token: CurrencyAmount<Token>

maxDeposit represents the minimum allowed deposit for initiating a cross layer transfer