Skip to content

Commit

Permalink
Update TVL (#11747)
Browse files Browse the repository at this point in the history
  • Loading branch information
crispyfisherman authored Sep 25, 2024
1 parent dc82f2d commit 526b1c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions projects/bucket-protocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 526b1c5

Please sign in to comment.