23 lines
645 B
TypeScript
23 lines
645 B
TypeScript
import { RouteInfo } from '@jup-ag/core'
|
|
import Decimal from 'decimal.js'
|
|
|
|
export type Routes = {
|
|
routesInfos: RouteInfo[]
|
|
cached: boolean
|
|
}
|
|
|
|
export interface Token {
|
|
chainId: number // 101,
|
|
address: string // 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
|
symbol: string // e.g. 'USDC',
|
|
name: string // 'Wrapped USDC',
|
|
decimals: number // 6,
|
|
logoURI: string // 'https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BXXkv6z8ykpG1yuvUDPgh732wzVHB69RnB9YgSYh3itW/logo.png',
|
|
tags: string[] // [ 'stablecoin' ]
|
|
extensions?: {
|
|
coingeckoId: string
|
|
}
|
|
amount?: Decimal
|
|
amountWithBorrow?: Decimal
|
|
}
|