mango-v4-ui/types/jupiter.ts

23 lines
651 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
}
maxAmount?: Decimal
maxAmountWithBorrow?: Decimal
}