From bd0f65d6c237cc9c55e8884c1dbbcf0902991ed8 Mon Sep 17 00:00:00 2001 From: Dan Hsu Date: Mon, 19 Aug 2024 01:33:51 +0900 Subject: [PATCH] Add hasui from Navi (#11337) * feature: update stapearl psm id * feature: add lst lp to tvl * feature: modified the function of getStakingLPAmount * feature: add navi sLP * feature: change id and remove console.log * feature: add scallop sLP * feature: add hasui from navi --- projects/bucket-protocol/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/bucket-protocol/index.js b/projects/bucket-protocol/index.js index 040f879c685a..1c69565b56f1 100644 --- a/projects/bucket-protocol/index.js +++ b/projects/bucket-protocol/index.js @@ -68,6 +68,8 @@ const scallop_sUSDC_LP_ID = const scallop_sUSDT_LP_ID = "0x6b68b42cbb4efccd9df30466c21fff3c090279992c005c45154bd1a0d87ac725"; +const haSUI_Navi_Pond_ID = "0xef1ff1334c1757d8e841035090d34b17b7aa3d491a3cb611319209169617518e" + async function getStakingLPAmount(id) { const stakingLPObject = await sui.getObject(id); return stakingLPObject.fields.output_volume; @@ -238,6 +240,12 @@ async function tvl(api) { snaviLPAmount ); + const haSuiNaviPondAmount = await getStakingLPAmount(haSUI_Navi_Pond_ID); + api.add( + "0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI", + haSuiNaviPondAmount + ); + const scallopUSDC_LPAmount = await getScallopsLPAmount(scallop_sUSDC_LP_ID); api.add(USDC, scallopUSDC_LPAmount);