@@ -3,11 +3,14 @@ const sui = require("../helper/chain/sui");
3
3
4
4
const MAINNET_PROTOCOL_ID =
5
5
"0x9e3dab13212b27f5434416939db5dec6a319d15b89a84fd074d03ece6350d3df" ;
6
- const SUI = ADDRESSES . sui . SUI ;
6
+ // Token
7
+ const SUI = ADDRESSES . sui . SUI ;
7
8
const BUCK = ADDRESSES . sui . BUCK ;
8
9
const USDC = ADDRESSES . sui . USDC ;
9
10
const USDT = ADDRESSES . sui . USDT ;
10
11
const USDC_CIRCLE = ADDRESSES . sui . USDC_CIRCLE
12
+ const SCALLOP_swUSDC = "0xad4d71551d31092230db1fd482008ea42867dbf27b286e9c70a79d2a6191d58d::scallop_wormhole_usdc::SCALLOP_WORMHOLE_USDC"
13
+ const SCALLOP_sUSDC = "0x854950aa624b1df59fe64e630b2ba7c550642e9342267a33061d59fb31582da5::scallop_usdc::SCALLOP_USDC"
11
14
12
15
const AF_LP_IDs = [
13
16
"0xe2569ee20149c2909f0f6527c210bc9d97047fe948d34737de5420fab2db7062" ,
@@ -141,7 +144,11 @@ async function tvl(api) {
141
144
for ( const bucket of bucketList ) {
142
145
//AF_LP doesn't have price, need to split the tokens
143
146
if ( bucket . type . includes ( "AF_LP" ) ) continue ;
144
- const coin = bucket . type . split ( "<" ) . pop ( ) ?. replace ( ">" , "" ) ?? "" ;
147
+ let coin = bucket . type . split ( "<" ) . pop ( ) ?. replace ( ">" , "" ) ?? "" ;
148
+
149
+ /// Since we're unable to fetch the price of Scallop's sCOIN, we'll regard sCOIN as underlying assets
150
+ if ( coin === SCALLOP_swUSDC ) coin = ADDRESSES . sui . USDC
151
+ if ( coin === SCALLOP_sUSDC ) coin = ADDRESSES . sui . USDC_CIRCLE
145
152
api . add ( coin , bucket . fields . collateral_vault ) ;
146
153
}
147
154
0 commit comments