This commit is contained in:
Adrian Brzeziński 2024-06-18 11:54:05 +02:00
parent 0ececa2945
commit 5e887e3c9f
7 changed files with 210 additions and 17 deletions

View File

@ -22,7 +22,18 @@ import ButtonGroup from './forms/ButtonGroup'
const set = mangoStore.getState().set
export const SOL_YIELD = ['bSOL', 'MSOL', 'JitoSOL', 'JSOL', 'INF', 'hubSOL']
export const SOL_YIELD = [
'bSOL',
'MSOL',
'JitoSOL',
'JSOL',
'INF',
'hubSOL',
'digitSOL',
'dualSOL',
'mangoSOL',
'compassSOL',
]
const USDC_YIELD = ['JLP', 'USDC']
const Stake = () => {

View File

@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query'
import { OHLCVPairItem, fetchOHLCPair } from 'apis/birdeye/helpers'
import { SOL_MINT, STAKEABLE_TOKENS_DATA, USDC_MINT } from 'utils/constants'
const avgOHCL = (i: OHLCVPairItem) => (i.c + i.o) * .5;
const avgOHCL = (i: OHLCVPairItem) => (i.c + i.o) * 0.5
const calculateRate = (ohlcvs: OHLCVPairItem[]) => {
if (ohlcvs && ohlcvs?.length > 6) {
@ -12,22 +12,28 @@ const calculateRate = (ohlcvs: OHLCVPairItem[]) => {
avgOHCL(ohlcvs[2]),
avgOHCL(ohlcvs[3]),
avgOHCL(ohlcvs[4]),
avgOHCL(ohlcvs[5])];
avgOHCL(ohlcvs[5]),
]
// 67th percentile of first 6 days
const start = startSamples.sort()[startSamples.length - 3];
const start = startSamples.sort()[startSamples.length - 3]
const endSamples = [
avgOHCL(ohlcvs[ohlcvs.length - 1]),
avgOHCL(ohlcvs[ohlcvs.length - 2]),
avgOHCL(ohlcvs[ohlcvs.length - 3]),
avgOHCL(ohlcvs[ohlcvs.length - 4]),
avgOHCL(ohlcvs[ohlcvs.length - 5]),
avgOHCL(ohlcvs[ohlcvs.length - 6])];
avgOHCL(ohlcvs[ohlcvs.length - 6]),
]
// 67th percentile of last 6 days
const end = endSamples.sort()[endSamples.length - 3];
const end = endSamples.sort()[endSamples.length - 3]
// percentiles cut off 3 samples at the start and 2 at the end
const annualized = (365/(ohlcvs.length - 5));
return { rate: annualized * (end - start)/start, start: [start, ...startSamples], end: [end, ...endSamples]};
const annualized = 365 / (ohlcvs.length - 5)
return {
rate: (annualized * (end - start)) / start,
start: [start, ...startSamples],
end: [end, ...endSamples],
}
}
}
@ -48,8 +54,17 @@ const fetchRates = async () => {
jsolPrices,
infPrices,
hubSOLPrices,
digitSOLPrices,
dualSOLPrices,
mangoSOLPrices,
compassSOLPrices,
] = await Promise.all(promises)
console.log({
digitSOLPrices,
dualSOLPrices,
mangoSOLPrices,
compassSOLPrices,
})
// may be null if the price range cannot be calculated
/*
@ -60,15 +75,19 @@ const fetchRates = async () => {
*/
const rateData: Record<string, number> = {}
rateData.jlp = calculateRate(jlpPrices)?.rate ?? rateData.jlp;
rateData.msol = calculateRate(msolPrices)?.rate ?? rateData.msol;
rateData.jitosol = calculateRate(jitoPrices)?.rate ?? rateData.jitosol;
rateData.bsol = calculateRate(bsolPrices)?.rate ?? rateData.bsol;
rateData.jsol = calculateRate(jsolPrices)?.rate ?? rateData.jsol;
rateData.inf = calculateRate(infPrices)?.rate ?? rateData.inf;
rateData.hubsol = calculateRate(hubSOLPrices)?.rate ?? rateData.hubsol;
rateData.jlp = calculateRate(jlpPrices)?.rate ?? rateData.jlp
rateData.msol = calculateRate(msolPrices)?.rate ?? rateData.msol
rateData.jitosol = calculateRate(jitoPrices)?.rate ?? rateData.jitosol
rateData.bsol = calculateRate(bsolPrices)?.rate ?? rateData.bsol
rateData.jsol = calculateRate(jsolPrices)?.rate ?? rateData.jsol
rateData.inf = calculateRate(infPrices)?.rate ?? rateData.inf
rateData.hubsol = calculateRate(hubSOLPrices)?.rate ?? rateData.hubsol
rateData.digitsol = calculateRate(digitSOLPrices)?.rate ?? rateData.digitsol
rateData.dualsol = calculateRate(dualSOLPrices)?.rate ?? rateData.dualsol
rateData.mangosol = calculateRate(mangoSOLPrices)?.rate ?? rateData.mangosol
rateData.compasssol =
calculateRate(compassSOLPrices)?.rate ?? rateData.compasssol
return rateData
} catch (e) {

View File

@ -0,0 +1,25 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="60.000000pt" height="60.000000pt" viewBox="0 0 60.000000 60.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,60.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M365 427 c-16 -30 -32 -54 -36 -51 -4 2 -13 -3 -20 -12 -11 -14 -14
-13 -26 8 -13 23 -13 23 -7 -4 3 -16 4 -28 1 -28 -3 0 -37 14 -75 30 -86 37
-98 38 -50 5 20 -14 42 -25 48 -25 6 0 8 -4 5 -10 -4 -6 1 -7 11 -3 11 4 15 2
11 -4 -4 -6 1 -17 11 -24 15 -13 16 -12 3 4 -14 18 -2 24 15 7 15 -15 40 -3
53 27 6 14 14 23 17 20 3 -3 -1 -15 -8 -26 -12 -20 -10 -24 12 -42 16 -14 19
-19 8 -15 -18 5 -58 -28 -58 -48 0 -5 -3 -7 -6 -4 -3 4 -1 15 4 25 6 11 7 25
2 33 -7 11 -15 10 -46 -4 -29 -12 -32 -15 -11 -11 33 7 34 -4 6 -65 -12 -25
-25 -56 -30 -69 -17 -43 17 -5 40 45 12 25 26 42 31 39 6 -4 13 1 16 9 8 21
21 20 27 -1 4 -14 5 -13 6 4 l1 23 58 -26 c31 -14 68 -30 81 -35 41 -16 7 15
-39 36 -22 10 -37 21 -35 26 3 4 0 11 -6 15 -8 5 -9 3 -4 -6 5 -8 3 -11 -5 -8
-26 8 -21 44 8 55 27 11 27 11 -5 6 -18 -3 -33 -3 -33 0 0 3 14 35 31 72 38
82 33 108 -6 32z"/>
<path d="M335 130 c3 -5 8 -10 11 -10 2 0 4 5 4 10 0 6 -5 10 -11 10 -5 0 -7
-4 -4 -10z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

34
public/icons/digitSOL.svg Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="60" height="60">
<path d="M0 0 C19.8 0 39.6 0 60 0 C60 19.8 60 39.6 60 60 C40.2 60 20.4 60 0 60 C0 40.2 0 20.4 0 0 Z " fill="#CEE5EF" transform="translate(0,0)"/>
<path d="M0 0 C0.99 0.33 1.98 0.66 3 1 C5.2825699 1.15145099 7.56887706 1.24886979 9.85546875 1.31640625 C10.51710526 1.33718735 11.17874176 1.35796844 11.86042786 1.37937927 C13.96934852 1.44464727 16.07839135 1.50365344 18.1875 1.5625 C19.61915315 1.60570689 21.05079404 1.64932188 22.48242188 1.69335938 C25.98815154 1.80030506 29.49401786 1.90163641 33 2 C33.495 3.485 33.495 3.485 34 5 C34.66 5 35.32 5 36 5 C36.33 3.68 36.66 2.36 37 1 C41.24705333 7.98708774 42.8173059 13.77245398 42 22 C41.19996583 24.80942232 40.1727654 27.31241263 39 30 C37.75453595 27.50907189 38.2232422 26.58919267 39 24 C38.01 24 37.02 24 36 24 C35.731875 24.639375 35.46375 25.27875 35.1875 25.9375 C34 28 34 28 31 29 C31 29.99 31 30.98 31 32 C30.34 32 29.68 32 29 32 C29 32.99 29 33.98 29 35 C25.42355152 36.2380014 22.66305234 35.74926071 19 35 C19 35.66 19 36.32 19 37 C17.68 36.67 16.36 36.34 15 36 C15 35.34 15 34.68 15 34 C8.07 33.67 1.14 33.34 -6 33 C-3.88088141 28.76176282 -2.82210103 26.77289682 1 24 C5.32992319 23.27484296 9.61453309 23.07062977 14 23 C12.98679687 23.00902344 11.97359375 23.01804687 10.9296875 23.02734375 C0.32107617 22.88071744 0.32107617 22.88071744 -3.33203125 20.4453125 C-7 16.14370438 -7 16.14370438 -7 13 C-2.545 12.505 -2.545 12.505 2 12 C-0.97 11.67 -3.94 11.34 -7 11 C-5.72278474 6.00724943 -3.82669043 3.42388092 0 0 Z " fill="#C5E1EE" transform="translate(17,12)"/>
<path d="M0 0 C0.99 0.33 1.98 0.66 3 1 C5.2825699 1.15145099 7.56887706 1.24886979 9.85546875 1.31640625 C10.51710526 1.33718735 11.17874176 1.35796844 11.86042786 1.37937927 C13.96934852 1.44464727 16.07839135 1.50365344 18.1875 1.5625 C19.61915315 1.60570689 21.05079404 1.64932188 22.48242188 1.69335938 C25.98815154 1.80030506 29.49401786 1.90163641 33 2 C31.18399439 5.82550746 29.38418874 8.34654027 26 11 C23.195513 11.58447781 20.53631813 11.47798095 17.6875 11.3125 C16.94693359 11.28994141 16.20636719 11.26738281 15.44335938 11.24414062 C13.62802643 11.1855815 11.81374319 11.09590886 10 11 C10 10.67 10 10.34 10 10 C12.97 10 15.94 10 19 10 C19 9.34 19 8.68 19 8 C12.565 8.495 12.565 8.495 6 9 C6.33 9.99 6.66 10.98 7 12 C0.07 11.505 0.07 11.505 -7 11 C-5.11656068 5.34968203 -4.19098872 3.74983202 0 0 Z " fill="#74B1CD" transform="translate(17,12)"/>
<path d="M0 0 C1.98 0 3.96 0 6 0 C6 1.98 6 3.96 6 6 C12.6 6 19.2 6 26 6 C26.33 4.35 26.66 2.7 27 1 C28 0 28 0 30.1875 -0.4375 C34.30147255 0.20245129 36.53721827 2.73321736 39 6 C39 6.66 39 7.32 39 8 C37.35 8 35.7 8 34 8 C34.495 8.99 34.495 8.99 35 10 C35.203125 11.875 35.203125 11.875 35.25 14 C35.27578125 14.70125 35.3015625 15.4025 35.328125 16.125 C35.21984375 16.74375 35.1115625 17.3625 35 18 C31.30513897 20.46324069 29.36706908 20.38991688 25 20 C23 18.75 23 18.75 22 17 C22.3125 14.8125 22.3125 14.8125 23 13 C24.65 13 26.3 13 28 13 C28 11.35 28 9.7 28 8 C28 9.32 28 10.64 28 12 C26.0625 11.6875 26.0625 11.6875 24 11 C23.67 10.01 23.34 9.02 23 8 C21.84242187 8.08121094 20.68484375 8.16242187 19.4921875 8.24609375 C7.36100002 8.8411886 7.36100002 8.8411886 3.53515625 6.4765625 C0 2.24128973 0 2.24128973 0 0 Z " fill="#6CACC6" transform="translate(10,26)"/>
<path d="M0 0 C1.78947815 2.68421723 2.73092143 4.81629723 3.8125 7.8125 C7.81203939 17.85513904 14.56943409 21.69177768 24.0625 25.8125 C25.031875 26.204375 26.00125 26.59625 27 27 C27 27.33 27 27.66 27 28 C18.09 28 9.18 28 0 28 C0 18.76 0 9.52 0 0 Z " fill="#D8ECF3" transform="translate(0,32)"/>
<path d="M0 0 C7.92 0 15.84 0 24 0 C22 2 22 2 18.9375 3.125 C11.4355718 6.28865239 6.27959793 11.65306518 2.9375 19 C2.26862326 20.65755313 1.61405891 22.32136659 1 24 C0.67 24 0.34 24 0 24 C0 16.08 0 8.16 0 0 Z " fill="#D9EAF2" transform="translate(0,0)"/>
<path d="M0 0 C1.50433594 0.01353516 1.50433594 0.01353516 3.0390625 0.02734375 C3.80992188 0.03894531 4.58078125 0.05054687 5.375 0.0625 C5.375 0.7225 5.375 1.3825 5.375 2.0625 C2.405 2.0625 -0.565 2.0625 -3.625 2.0625 C-3.625 2.7225 -3.625 3.3825 -3.625 4.0625 C1.325 4.3925 6.275 4.7225 11.375 5.0625 C9.395 6.0525 9.395 6.0525 7.375 7.0625 C6.715 8.7125 6.055 10.3625 5.375 12.0625 C-1.225 12.0625 -7.825 12.0625 -14.625 12.0625 C-15.625 8.0625 -15.625 8.0625 -14.625 6.0625 C-16.605 6.0625 -18.585 6.0625 -20.625 6.0625 C-20.625 5.7325 -20.625 5.4025 -20.625 5.0625 C-14.685 4.5675 -14.685 4.5675 -8.625 4.0625 C-8.295 3.0725 -7.965 2.0825 -7.625 1.0625 C-4.98041621 -0.25979189 -2.94738699 -0.03427194 0 0 Z " fill="#95C2DA" transform="translate(30.625,19.9375)"/>
<path d="M0 0 C1.32 2.64 2.64 5.28 4 8 C-2.93 8 -9.86 8 -17 8 C-12.7252717 -0.5494566 -9.06646729 -0.56274625 0 0 Z " fill="#77ADCB" transform="translate(28,37)"/>
<path d="M0 0 C0.45375 0.495 0.9075 0.99 1.375 1.5 C2.87635519 3.22609337 2.87635519 3.22609337 5 3 C4.67 2.01 4.34 1.02 4 0 C4.66 0 5.32 0 6 0 C6.33 1.65 6.66 3.3 7 5 C4.92446352 5.5534764 3.15634036 6 1 6 C1.49756092 8.75641416 1.49756092 8.75641416 3 11 C7.65088715 11.30523962 7.65088715 11.30523962 12 10 C12.40729228 7.67843403 12.74438677 5.3431213 13 3 C14.65 2.67 16.3 2.34 18 2 C17.67 2.763125 17.34 3.52625 17 4.3125 C15.82563314 6.99069135 15.82563314 6.99069135 16 10 C15.34 10 14.68 10 14 10 C14 10.99 14 11.98 14 13 C10.42355152 14.2380014 7.66305234 13.74926071 4 13 C4 13.66 4 14.32 4 15 C2.125 14.8125 2.125 14.8125 0 14 C-1.125 11.8125 -1.125 11.8125 -2 9 C-2.37125 7.906875 -2.7425 6.81375 -3.125 5.6875 C-3.41375 4.800625 -3.7025 3.91375 -4 3 C-7.3 3 -10.6 3 -14 3 C-14 2.67 -14 2.34 -14 2 C-13.07316406 1.93941406 -12.14632813 1.87882812 -11.19140625 1.81640625 C-9.39509766 1.69072266 -9.39509766 1.69072266 -7.5625 1.5625 C-5.77005859 1.44068359 -5.77005859 1.44068359 -3.94140625 1.31640625 C-1.11429756 1.32343886 -1.11429756 1.32343886 0 0 Z " fill="#93C8E0" transform="translate(32,34)"/>
<path d="M0 0 C1.051875 0.4640625 1.051875 0.4640625 2.125 0.9375 C5.08936657 2.03302678 7.87698108 2.56422992 11 3 C10.525625 3.37125 10.05125 3.7425 9.5625 4.125 C7.4178599 6.37756883 7.4178599 6.37756883 7 12 C0.07 11.505 0.07 11.505 -7 11 C-5.11656068 5.34968203 -4.19098872 3.74983202 0 0 Z " fill="#7BBBD5" transform="translate(17,12)"/>
<path d="M0 0 C3.875 1.75 3.875 1.75 5 4 C5.203125 5.875 5.203125 5.875 5.25 8 C5.28867187 9.051875 5.28867187 9.051875 5.328125 10.125 C5.21984375 10.74375 5.1115625 11.3625 5 12 C1.30513897 14.46324069 -0.63293092 14.38991688 -5 14 C-7 12.75 -7 12.75 -8 11 C-7.6875 8.8125 -7.6875 8.8125 -7 7 C-5.35 7 -3.7 7 -2 7 C-2.04125 6.21625 -2.0825 5.4325 -2.125 4.625 C-2 2 -2 2 0 0 Z " fill="#1B80B0" transform="translate(40,32)"/>
<path d="M0 0 C1.53445094 3.06890187 0.54984289 5.70094266 0 9 C-0.66 9 -1.32 9 -2 9 C-2.2475 9.5775 -2.495 10.155 -2.75 10.75 C-4.20679496 13.37223092 -5.68378742 15.09253081 -8 17 C-9.32 17 -10.64 17 -12 17 C-11.67 16.236875 -11.34 15.47375 -11 14.6875 C-9.82563314 12.00930865 -9.82563314 12.00930865 -10 9 C-9.34 9 -8.68 9 -8 9 C-8.33 7.68 -8.66 6.36 -9 5 C-8.195625 4.71125 -7.39125 4.4225 -6.5625 4.125 C-3.8673532 3.26737432 -3.8673532 3.26737432 -3 1 C-2.01 0.67 -1.02 0.34 0 0 Z " fill="#CFE6F1" transform="translate(56,35)"/>
<path d="M0 0 C0.66 0 1.32 0 2 0 C3.3726682 1.97321053 4.70427617 3.97543152 6 6 C8.93447357 8.93447357 12.18259456 8.46158423 16.125 8.625 C16.87910156 8.66367187 17.63320313 8.70234375 18.41015625 8.7421875 C20.27303184 8.83651031 22.13648255 8.91934662 24 9 C23.67 9.66 23.34 10.32 23 11 C19.763429 11.31999996 16.54762181 11.38003656 13.296875 11.4609375 C9.46733832 12.08709397 7.78730474 13.36987409 5 16 C4.87625 15.2575 4.7525 14.515 4.625 13.75 C4.03879534 11.17069951 3.36715445 9.2517838 2 7 C1.34 6.67 0.68 6.34 0 6 C0 4.02 0 2.04 0 0 Z " fill="#B8DDEE" transform="translate(8,25)"/>
<path d="M0 0 C4.04430121 0.73532749 6.31457273 3.26950197 8.75 6.5 C8.75 7.16 8.75 7.82 8.75 8.5 C-1.25 8.5 -1.25 8.5 -3.25 7.5 C-4 5.0625 -4 5.0625 -4.25 2.5 C-2.25 0.5 -2.25 0.5 0 0 Z " fill="#82C0DD" transform="translate(40.25,25.5)"/>
<path d="M0 0 C4.29 0 8.58 0 13 0 C12.67 1.65 12.34 3.3 12 5 C8.04 5 4.08 5 0 5 C0 3.35 0 1.7 0 0 Z " fill="#B1D7E7" transform="translate(24,27)"/>
<path d="M0 0 C4.62 0 9.24 0 14 0 C11.36363636 5.27272727 11.36363636 5.27272727 9 7 C6.8125 6.6875 6.8125 6.6875 5 6 C4.67 4.68 4.34 3.36 4 2 C2.68 2 1.36 2 0 2 C0 1.34 0 0.68 0 0 Z " fill="#64A8C8" transform="translate(35,15)"/>
<path d="M0 0 C0.99 0.33 1.98 0.66 3 1 C3 2.32 3 3.64 3 5 C5.64 5 8.28 5 11 5 C11.33 5.66 11.66 6.32 12 7 C6.06 7 0.12 7 -6 7 C-4.02 4.69 -2.04 2.38 0 0 Z " fill="#61A6C4" transform="translate(17,37)"/>
<path d="M0 0 C2 3 2 3 1.625 5.1875 C1.41875 5.785625 1.2125 6.38375 1 7 C0.67 6.01 0.34 5.02 0 4 C-6.6 4 -13.2 4 -20 4 C-19.67 3.34 -19.34 2.68 -19 2 C-17.71222656 1.93941406 -16.42445312 1.87882812 -15.09765625 1.81640625 C-13.41925841 1.73201753 -11.74087364 1.6473687 -10.0625 1.5625 C-8.78729492 1.50352539 -8.78729492 1.50352539 -7.48632812 1.44335938 C-6.67744141 1.40146484 -5.86855469 1.35957031 -5.03515625 1.31640625 C-3.91185913 1.26141968 -3.91185913 1.26141968 -2.76586914 1.20532227 C-0.97538674 1.18228937 -0.97538674 1.18228937 0 0 Z " fill="#B7E1F2" transform="translate(46,21)"/>
<path d="M0 0 C3.3 0 6.6 0 10 0 C9.01 0.495 9.01 0.495 8 1 C8 2.65 8 4.3 8 6 C5.36 6 2.72 6 0 6 C-1.125 2.25 -1.125 2.25 0 0 Z " fill="#7BB3CF" transform="translate(16,26)"/>
<path d="M0 0 C6.93 0 13.86 0 21 0 C21.33 0.66 21.66 1.32 22 2 C21.11957031 1.98839844 20.23914063 1.97679687 19.33203125 1.96484375 C18.17058594 1.95582031 17.00914063 1.94679687 15.8125 1.9375 C14.66394531 1.92589844 13.51539063 1.91429687 12.33203125 1.90234375 C9.07749644 1.87450122 9.07749644 1.87450122 6.32421875 2.69140625 C4 3 4 3 0 0 Z " fill="#BBE0F5" transform="translate(11,45)"/>
<path d="M0 0 C2.31 0 4.62 0 7 0 C6.2884375 0.556875 6.2884375 0.556875 5.5625 1.125 C3.47794198 3.62646962 3.35378509 5.81593418 3 9 C1.68 8.67 0.36 8.34 -1 8 C-1 7.01 -1 6.02 -1 5 C-0.34 5 0.32 5 1 5 C0.67 3.35 0.34 1.7 0 0 Z " fill="#57A3C5" transform="translate(21,15)"/>
<path d="M0 0 C1.98 0 3.96 0 6 0 C6 0.99 6 1.98 6 3 C7.65 3.33 9.3 3.66 11 4 C10.67 4.66 10.34 5.32 10 6 C7.36 5.67 4.72 5.34 2 5 C2 3.68 2 2.36 2 1 C1.34 0.67 0.68 0.34 0 0 Z " fill="#6DB2CB" transform="translate(18,37)"/>
<path d="M0 0 C1.50433594 0.01353516 1.50433594 0.01353516 3.0390625 0.02734375 C3.80992188 0.03894531 4.58078125 0.05054687 5.375 0.0625 C5.375 0.7225 5.375 1.3825 5.375 2.0625 C4.45267578 2.15337891 4.45267578 2.15337891 3.51171875 2.24609375 C2.70347656 2.32988281 1.89523438 2.41367187 1.0625 2.5 C0.26199219 2.58121094 -0.53851563 2.66242187 -1.36328125 2.74609375 C-3.78587179 3.01515693 -3.78587179 3.01515693 -6.625 4.0625 C-6.955 3.0725 -7.285 2.0825 -7.625 1.0625 C-4.98041621 -0.25979189 -2.94738699 -0.03427194 0 0 Z " fill="#86BFDA" transform="translate(30.625,19.9375)"/>
<path d="M0 0 C2.125 -0.375 2.125 -0.375 5 0 C7.29739641 1.74322351 9.26333339 3.69638037 11 6 C11 6.66 11 7.32 11 8 C9.35 8 7.7 8 6 8 C5 5 5 5 5 3 C2.525 2.01 2.525 2.01 0 1 C0 0.67 0 0.34 0 0 Z " fill="#6BA9C1" transform="translate(38,26)"/>
<path d="M0 0 C0.45375 0.495 0.9075 0.99 1.375 1.5 C2.87635519 3.22609337 2.87635519 3.22609337 5 3 C4.67 2.01 4.34 1.02 4 0 C4.66 0 5.32 0 6 0 C6.33 1.65 6.66 3.3 7 5 C4.50935112 5.68707555 2.62113708 6 0 6 C0 5.34 0 4.68 0 4 C-0.66 3.67 -1.32 3.34 -2 3 C-1.34 2.01 -0.68 1.02 0 0 Z " fill="#8FD3EA" transform="translate(32,34)"/>
<path d="M0 0 C0.99 0 1.98 0 3 0 C2.67 1.65 2.34 3.3 2 5 C0.68 5.33 -0.64 5.66 -2 6 C-2 2 -2 2 0 0 Z " fill="#2583AF" transform="translate(17,15)"/>
<path d="M0 0 C3.04470873 1.52235436 4.20270948 4.18424486 6 7 C1.25 6.25 1.25 6.25 -1 4 C-0.625 1.875 -0.625 1.875 0 0 Z " fill="#2785AA" transform="translate(33,39)"/>
<path d="M0 0 C1.65 0 3.3 0 5 0 C4.67 1.65 4.34 3.3 4 5 C2.68 5 1.36 5 0 5 C0 3.35 0 1.7 0 0 Z " fill="#A4CFE5" transform="translate(32,27)"/>
<path d="M0 0 C1.32 0 2.64 0 4 0 C4 1.65 4 3.3 4 5 C2.68 5 1.36 5 0 5 C0 3.35 0 1.7 0 0 Z " fill="#8DC5DF" transform="translate(20,27)"/>
<path d="M0 0 C1.32 0 2.64 0 4 0 C4 1.65 4 3.3 4 5 C2.68 5 1.36 5 0 5 C0 3.35 0 1.7 0 0 Z " fill="#BCE2F1" transform="translate(28,27)"/>
<path d="M0 0 C1.32 0 2.64 0 4 0 C4.66 0.99 5.32 1.98 6 3 C5.67 3.99 5.34 4.98 5 6 C5 5.34 5 4.68 5 4 C3.35 3.67 1.7 3.34 0 3 C0 2.01 0 1.02 0 0 Z " fill="#7FBAD2" transform="translate(24,37)"/>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

37
public/icons/dualSOL.svg Normal file
View File

@ -0,0 +1,37 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_273_34)">
<path d="M31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16Z" fill="url(#paint0_radial_273_34)" stroke="url(#paint1_linear_273_34)" stroke-width="2"/>
<path d="M6.15479 12.2139H6.18078C6.17324 12.2168 6.16359 12.2168 6.15479 12.2139Z" fill="#308D8A"/>
<path d="M9.24663 7.97222C9.37236 7.85152 9.53833 7.78111 9.70932 7.78111H25.6721C25.9638 7.78111 26.1096 8.13316 25.9034 8.33936L22.7501 11.4927C22.6294 11.6134 22.4634 11.6838 22.2874 11.6838H6.32465C6.03295 11.6838 5.88711 11.3317 6.0933 11.1255L9.24663 7.97222Z" fill="url(#paint2_linear_273_34)"/>
<path d="M9.24663 19.7457C9.36733 19.625 9.5333 19.5546 9.70932 19.5546H25.6721C25.9638 19.5546 26.1096 19.9066 25.9034 20.1128L22.7501 23.2662C22.6294 23.3869 22.4634 23.4573 22.2874 23.4573H6.32465C6.03295 23.4573 5.88711 23.1052 6.0933 22.899L9.24663 19.7457Z" fill="url(#paint3_linear_273_34)"/>
<path d="M22.2874 13.6303C22.4634 13.6303 22.6294 13.7007 22.7501 13.8215L25.9034 16.9748C26.1096 17.181 25.9638 17.533 25.6721 17.533H9.70932C9.5333 17.533 9.36733 17.4626 9.24663 17.3419L6.0933 14.1886C5.88711 13.9824 6.03295 13.6303 6.32465 13.6303H22.2874Z" fill="url(#paint4_linear_273_34)"/>
</g>
<defs>
<radialGradient id="paint0_radial_273_34" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(16 16) rotate(90) scale(16)">
<stop stop-color="#fc7028"/>
<stop offset="1" stop-color="#160521"/>
</radialGradient>
<linearGradient id="paint1_linear_273_34" x1="0" y1="0" x2="33" y2="33" gradientUnits="userSpaceOnUse">
<stop stop-color="#fc7028"/>
<stop offset="1" stop-color="#53c8a1"/>
</linearGradient>
<linearGradient id="paint2_linear_273_34" x1="11.4738" y1="7.86276" x2="25.3617" y2="23.8266" gradientUnits="userSpaceOnUse">
<stop stop-color="#fc7028"/>
<stop offset="0.505" stop-color="#FFCB1B"/>
<stop offset="1" stop-color="#53c8a1"/>
</linearGradient>
<linearGradient id="paint3_linear_273_34" x1="11.4738" y1="7.86276" x2="25.3617" y2="23.8266" gradientUnits="userSpaceOnUse">
<stop stop-color="#fc7028"/>
<stop offset="0.505" stop-color="#FFCB1B"/>
<stop offset="1" stop-color="#53c8a1"/>
</linearGradient>
<linearGradient id="paint4_linear_273_34" x1="11.4738" y1="7.86276" x2="25.3617" y2="23.8266" gradientUnits="userSpaceOnUse">
<stop stop-color="#fc7028"/>
<stop offset="0.505" stop-color="#FFCB1B"/>
<stop offset="1" stop-color="#53c8a1"/>
</linearGradient>
<clipPath id="clip0_273_34">
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

31
public/icons/mangoSOL.svg Normal file
View File

@ -0,0 +1,31 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_313_147)">
<path d="M32 16C32 24.8366 24.8366 32 16 32C7.16345 32 0 24.8366 0 16C0 7.16345 7.16345 0 16 0C18.4572 0 20.7851 0.553916 22.8655 1.54369C23.3233 6.60037 27.8441 7.73356 29.8481 7.98032C31.2165 10.3382 32 13.0776 32 16Z" fill="url(#paint0_linear_313_147)"/>
<path d="M6.15479 12.2139H6.18078C6.17324 12.2168 6.16359 12.2168 6.15479 12.2139Z" fill="#308D8A"/>
<path d="M24.3331 8.23352H25.5479L26.0278 9.17087L26.0198 9.17147C26.0535 9.27573 26.0343 9.39744 25.9426 9.48912L22.9159 12.5158C22.8001 12.6317 22.6408 12.6993 22.4718 12.6993H7.14999C7.03801 12.6993 6.94842 12.6452 6.89389 12.5677L6.89087 12.5678L6.88117 12.5481C6.87196 12.5328 6.86404 12.5167 6.85751 12.5L6.43344 11.638L7.54295 11.5484L9.95464 9.13673C10.0753 9.02087 10.2346 8.95329 10.3988 8.95329H24.3331V8.23352Z" fill="#E64133"/>
<path d="M10.3988 20.254C10.2298 20.254 10.0705 20.3216 9.95464 20.4375L7.53485 22.8573L6.43344 22.9462L6.89087 23.876L6.89909 23.8756C6.95403 23.9493 7.0415 24 7.14999 24H22.4718C22.6408 24 22.8001 23.9324 22.9159 23.8166L25.9426 20.7899C26.0322 20.7003 26.0526 20.5821 26.0221 20.4795L26.0278 20.4791L26.0049 20.4343C26.0017 20.4274 25.9982 20.4207 25.9945 20.4141L25.5479 19.5417L24.3331 19.4217V20.254H10.3988Z" fill="#E64133"/>
<path d="M22.8644 14.5677C23.0334 14.5677 23.1927 14.6352 23.3086 14.7511L26.3353 17.7778C26.5332 17.9757 26.3932 18.3136 26.1132 18.3136H10.867C10.6981 18.3136 10.5388 18.246 10.4229 18.1302L7.3962 15.1035C7.19828 14.9056 7.33827 14.5677 7.61825 14.5677H22.8644Z" fill="#E64133"/>
<path d="M9.53475 8.29684C9.65543 8.18099 9.81473 8.1134 9.97886 8.1134H25.3007C25.5807 8.1134 25.7207 8.45131 25.5227 8.64923L22.496 11.6759C22.3802 11.7918 22.2209 11.8594 22.0519 11.8594H6.73009C6.45011 11.8594 6.31012 11.5215 6.50804 11.3235L9.53475 8.29684Z" fill="white"/>
<path d="M9.53475 19.5976C9.6506 19.4817 9.8099 19.4141 9.97886 19.4141H25.3007C25.5807 19.4141 25.7207 19.7521 25.5227 19.95L22.496 22.9767C22.3802 23.0925 22.2209 23.1601 22.0519 23.1601H6.73009C6.45011 23.1601 6.31012 22.8222 6.50804 22.6243L9.53475 19.5976Z" fill="white"/>
<path d="M22.0519 13.7278C22.2209 13.7278 22.3802 13.7953 22.496 13.9112L25.5227 16.9379C25.7207 17.1358 25.5807 17.4737 25.3007 17.4737H9.97886C9.8099 17.4737 9.6506 17.4062 9.53475 17.2903L6.50804 14.2636C6.31012 14.0657 6.45011 13.7278 6.73009 13.7278H22.0519Z" fill="white"/>
<path d="M28.3055 3.14464C29.7451 5.09245 30.9557 6.13284 31.9441 6.7099L31.9833 6.70936C32.2216 -1.71505 24.4619 0.185992 24.4619 0.185992L24.4612 0.202383C25.5936 0.658725 27.1104 1.52838 28.3055 3.14464Z" fill="url(#paint1_linear_313_147)"/>
<path d="M28.3557 3.11674C27.1611 1.50201 25.656 0.594534 24.4602 0.20175C24.2005 6.6653 31.3507 6.71673 31.943 6.70927C30.9539 6.13177 29.7953 5.06455 28.3557 3.11674Z" fill="url(#paint2_linear_313_147)"/>
</g>
<defs>
<linearGradient id="paint0_linear_313_147" x1="25.75" y1="3.125" x2="16" y2="32" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFCB1B"/>
<stop offset="1" stop-color="#E64133"/>
</linearGradient>
<linearGradient id="paint1_linear_313_147" x1="25.9173" y1="-1.11781" x2="32.5855" y2="7.48923" gradientUnits="userSpaceOnUse">
<stop offset="0.15" stop-color="#6CBF00"/>
<stop offset="1" stop-color="#AFD803"/>
</linearGradient>
<linearGradient id="paint2_linear_313_147" x1="5809.42" y1="4639.77" x2="5315.13" y2="2351.89" gradientUnits="userSpaceOnUse">
<stop offset="0.15" stop-color="#6CBF00"/>
<stop offset="1" stop-color="#AFD803"/>
</linearGradient>
<clipPath id="clip0_313_147">
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -76,6 +76,38 @@ export const STAKEABLE_TOKENS_DATA: {
clientContext: 'lst',
borrowToken: 'SOL',
},
{
name: 'digitSOL',
id: 1161,
active: true,
mint_address: 'D1gittVxgtszzY4fMwiTfM4Hp7uL5Tdi1S9LYaepAUUm',
clientContext: 'lst',
borrowToken: 'SOL',
},
{
name: 'dualSOL',
id: 1158,
active: true,
mint_address: 'DUAL6T9pATmQUFPYmrWq2BkkGdRxLtERySGScYmbHMER',
clientContext: 'lst',
borrowToken: 'SOL',
},
{
name: 'mangoSOL',
id: 1162,
active: true,
mint_address: 'MangmsBgFqJhW4cLUR9LxfVgMboY1xAoP8UUBiWwwuY',
clientContext: 'lst',
borrowToken: 'SOL',
},
{
name: 'compassSOL',
id: 1163,
active: true,
mint_address: 'Comp4ssDzXcLeu2MnLuGNNFC4cmLPMng8qWHPvzAMU1h',
clientContext: 'lst',
borrowToken: 'SOL',
},
]
export type ClientContextKeys = 'lst' | 'jlp'
@ -243,6 +275,10 @@ export const CUSTOM_TOKEN_ICONS: { [key: string]: boolean } = {
'wbtc (portal)': true,
inf: true,
hubsol: true,
mangosol: true,
dualsol: true,
digitsol: true,
compasssol: true,
}
export const DEFAULT_FAVORITE_MKTS = [