UNPKG

@pangolindex/sdk

Version:

🛠 An SDK for building applications on top of Pangolin.

16 lines (15 loc) • 658 B
import { CurrencyAmount } from './currencyAmount'; import { Token } from '../token'; import { BigintIsh } from '../../constants'; export declare class TokenAmount extends CurrencyAmount { readonly token: Token; constructor(token: Token, amount: BigintIsh); /** * Returns a new token amount instance from the unitless amount of token, i.e. the raw amount * @param token the token in the amount * @param rawAmount the raw token or ether amount */ static fromRawAmount(token: Token, rawAmount: BigintIsh): TokenAmount; add(other: TokenAmount): TokenAmount; subtract(other: TokenAmount): TokenAmount; }