import { ChainId } from "../constants"; import { Token } from "./Token"; /** * A wrapper around the base token, gives access to the current price of the token */ export class PricedToken extends Token { public price: number; constructor( chainId: ChainId, address: string, decimals: number, price: number, symbol?: string, name?: string ) { super(chainId, address, decimals, symbol, name); this.price = price; } }