File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ const { getUniTVL } = require ( '../helper/unknownTokens' ) ;
2
+ const { sumTokensExport } = require ( '../helper/unwrapLPs' ) ;
3
+
4
+ module . exports = {
5
+ misrepresentedTokens : true ,
6
+ klaytn : {
7
+ tvl : getUniTVL ( { factory : '0x347E5ce6764DF9DF85487BEA523D3e242762aE88' , useDefaultCoreAssets : true } ) ,
8
+ staking : sumTokensExport ( { tokensAndOwners : [
9
+ [ '0x4836cc1f355bb2a61c210eaa0cd3f729160cd95e' , '0x4d55B04AC52b2CA41ad04337FF13CbAefbdC8954' ] ,
10
+ ] } )
11
+ }
12
+ }
13
+
Original file line number Diff line number Diff line change
1
+ const { sumUnknownTokens } = require ( '../helper/unknownTokens' ) ;
2
+
3
+ const GPC = '0x27397bfbefd58a437f2636f80a8e70cfc363d4ff' ;
4
+
5
+ async function tvl ( api ) {
6
+ const supply = await api . call ( { abi : 'erc20:totalSupply' , target : GPC } )
7
+ api . add ( GPC , supply )
8
+
9
+ const lps = [ '0xCd13CD31fb61345Abe7B7376A4664784622817EE' ]
10
+ return sumUnknownTokens ( { api, lps, useDefaultCoreAssets : true } )
11
+ }
12
+
13
+ module . exports = {
14
+ misrepresentedTokens : true ,
15
+ klaytn : {
16
+ tvl,
17
+ }
18
+ }
19
+
Original file line number Diff line number Diff line change
1
+ const klayStakingContract = '0x6569B14043c03537B5B125F5Ac5De3605a47dC76' ;
2
+
3
+ async function tvl ( api ) {
4
+ const totalStaked = await api . call ( { target : klayStakingContract , abi : "uint256:totalStaked" , } ) ;
5
+ api . addGasToken ( totalStaked ) ;
6
+ }
7
+
8
+ module . exports = {
9
+ klaytn : { tvl }
10
+ }
11
+
Original file line number Diff line number Diff line change 439
439
},
440
440
"klaytn" : {
441
441
"WKLAY" : " 0x57d1a61e4fd09fbf16e35b04959e94dcf2032974" ,
442
+ "WKLAY_1" : " 0x19aac5f612f524b754ca7e7c41cbfa2e981a4432" ,
442
443
"BORA" : " 0x02cbe46fb8a1f579254a9b485788f2d86cad51aa" ,
443
444
"DAI" : " 0xcb2c7998696ef7a582dfd0aafadcd008d03e791a" ,
444
445
"USDC" : " 0x608792deb376cce1c9fa4d0e6b7b44f507cffa6a" ,
You can’t perform that action at this time.
0 commit comments