inf token
This commit is contained in:
parent
5d7d49ff47
commit
6d09fcee8d
|
@ -22,7 +22,7 @@ import ButtonGroup from './forms/ButtonGroup'
|
|||
|
||||
const set = mangoStore.getState().set
|
||||
|
||||
export const SOL_YIELD = ['bSOL', 'MSOL', 'JitoSOL', 'JSOL']
|
||||
export const SOL_YIELD = ['bSOL', 'MSOL', 'JitoSOL', 'JSOL', 'INF']
|
||||
const USDC_YIELD = ['JLP', 'USDC']
|
||||
|
||||
const Stake = () => {
|
||||
|
|
|
@ -11,8 +11,14 @@ const fetchRates = async () => {
|
|||
const outputMint = isUsdcBorrow ? USDC_MINT : SOL_MINT
|
||||
return fetchSwapChartPrices(t.mint_address, outputMint, '90')
|
||||
})
|
||||
const [jlpPrices, msolPrices, jitoPrices, bsolPrices, jsolPrices] =
|
||||
await Promise.all(promises)
|
||||
const [
|
||||
jlpPrices,
|
||||
msolPrices,
|
||||
jitoPrices,
|
||||
bsolPrices,
|
||||
jsolPrices,
|
||||
infPrices,
|
||||
] = await Promise.all(promises)
|
||||
|
||||
// may be null if the price range cannot be calculated
|
||||
/*
|
||||
|
@ -51,6 +57,11 @@ const fetchRates = async () => {
|
|||
(4 * (jsolPrices[jsolPrices.length - 2].price - jsolPrices[0].price)) /
|
||||
jsolPrices[0].price
|
||||
}
|
||||
if (infPrices && infPrices?.length > 1) {
|
||||
rateData.inf =
|
||||
(4 * (infPrices[infPrices.length - 2].price - infPrices[0].price)) /
|
||||
infPrices[0].price
|
||||
}
|
||||
/*
|
||||
|
||||
if (msolRange) {
|
||||
|
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 35 KiB |
|
@ -60,6 +60,14 @@ export const STAKEABLE_TOKENS_DATA: {
|
|||
clientContext: 'lst',
|
||||
borrowToken: 'SOL',
|
||||
},
|
||||
{
|
||||
name: 'INF',
|
||||
id: 1105,
|
||||
active: true,
|
||||
mint_address: '5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm',
|
||||
clientContext: 'lst',
|
||||
borrowToken: 'SOL',
|
||||
},
|
||||
]
|
||||
|
||||
export type ClientContextKeys = 'lst' | 'jlp'
|
||||
|
|
Loading…
Reference in New Issue