We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0bdc5 commit 84830a7Copy full SHA for 84830a7
projects/interest-protocol-stable-swap/index.js
@@ -1,6 +1,6 @@
1
const sui = require("../helper/chain/sui")
2
3
-const PACKAGE_ID = '0x50052aca3d7b971bd9824e1bb151748d03870adfe3ba06dce384d2a77297c719';
+const SUI_PACKAGE_ID = '0x50052aca3d7b971bd9824e1bb151748d03870adfe3ba06dce384d2a77297c719';
4
5
const POW_9 = 1_000_000_000n;
6
@@ -17,7 +17,7 @@ function normalizeAddress(
17
18
const tvl = async (api) => {
19
const newPoolEvents = await sui.queryEvents({
20
- eventType: `${PACKAGE_ID}::event_wrapper::InterestStableSwapEvent<${PACKAGE_ID}::events::NewPool>`
+ eventType: `${SUI_PACKAGE_ID}::event_wrapper::InterestStableSwapEvent<${SUI_PACKAGE_ID}::events::NewPool>`
21
});
22
23
const statesIds = newPoolEvents.map(
0 commit comments