From e346d8e398bbd5ba8cc46bf0410b0620e9d1c36a Mon Sep 17 00:00:00 2001 From: Dan Hsu Date: Thu, 26 Sep 2024 03:10:57 +0800 Subject: [PATCH] Update TVL (#11747) --- projects/bucket-protocol/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/bucket-protocol/index.js b/projects/bucket-protocol/index.js index 1c69565b56f1..acf1fb3b23a8 100644 --- a/projects/bucket-protocol/index.js +++ b/projects/bucket-protocol/index.js @@ -3,6 +3,7 @@ const sui = require("../helper/chain/sui"); const MAINNET_PROTOCOL_ID = "0x9e3dab13212b27f5434416939db5dec6a319d15b89a84fd074d03ece6350d3df"; + const SUI = ADDRESSES.sui.SUI; const BUCK = ADDRESSES.sui.BUCK; const USDC = ADDRESSES.sui.USDC; const USDT = ADDRESSES.sui.USDT; @@ -70,6 +71,8 @@ const scallop_sUSDT_LP_ID = const haSUI_Navi_Pond_ID = "0xef1ff1334c1757d8e841035090d34b17b7aa3d491a3cb611319209169617518e" +const SUI_Navi_Pond_ID = "0xcf887d7201c259496a191348da86b4772a2e2ae3f798ca50d1247194e30b7656"; + async function getStakingLPAmount(id) { const stakingLPObject = await sui.getObject(id); return stakingLPObject.fields.output_volume; @@ -246,6 +249,12 @@ async function tvl(api) { haSuiNaviPondAmount ); + const suiNaviPondAmount = await getStakingLPAmount(SUI_Navi_Pond_ID); + api.add( + SUI, + suiNaviPondAmount + ); + const scallopUSDC_LPAmount = await getScallopsLPAmount(scallop_sUSDC_LP_ID); api.add(USDC, scallopUSDC_LPAmount);