Skip to content

Commit

Permalink
Add hasui from Navi (#11337)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
crispyfisherman authored Aug 18, 2024
1 parent 767ef6c commit bd0f65d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions projects/bucket-protocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit bd0f65d

Please sign in to comment.