Skip to content

Commit ced039b

Browse files
authored
Merge pull request DefiLlama#3654 from DefiLlama/gintoki
fix sirius
2 parents c3c0787 + a123584 commit ced039b

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

projects/helper/tokenMapping.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const transformTokens = {
292292
"0xc9baa8cfdde8e328787e29b4b078abf2dadc2055": "0x6b175474e89094c44da98b954eedeac495271d0f",
293293
"0xfa93c12cd345c658bc4644d1d4e1b9615952258c": "bsc:0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c",
294294
"0x218c3c3d49d0e7b37aff0d8bb079de36ae61a4c0": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
295-
"0xf55af137a98607f7ed2efefa4cd2dfe70e4253b1": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
295+
// "0xf55af137a98607f7ed2efefa4cd2dfe70e4253b1": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
296296
"0x980a5afef3d17ad98635f6c5aebcbaeded3c3430": "okexchain:0xc946daf81b08146b1c7a8da2a851ddf2b3eaaf85",
297297
},
298298
metis: {
@@ -406,7 +406,7 @@ const transformTokens = {
406406
},
407407
cronos: {
408408
"0x87EFB3ec1576Dec8ED47e58B832bEdCd86eE186e": "0x0000000000085d4780B73119b644AE5ecd22b376",
409-
"0x09ad12552ec45f82be90b38dfe7b06332a680864": "polygon:0xc3fdbadc7c795ef1d6ba111e06ff8f16a20ea539" // ADDY
409+
// "0x09ad12552ec45f82be90b38dfe7b06332a680864": "polygon:0xc3fdbadc7c795ef1d6ba111e06ff8f16a20ea539" // ADDY
410410
},
411411
velas: {
412412
"0x85219708c49aa701871ad330a94ea0f41dff24ca": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", // WETH
@@ -496,6 +496,10 @@ const fixBalancesTokens = {
496496
coingeckoId: "astar",
497497
decimals: 18,
498498
},
499+
"0xE511ED88575C57767BAfb72BfD10775413E3F2b0": { // nASTR
500+
coingeckoId: "astar",
501+
decimals: 18,
502+
},
499503
"0xAeaaf0e2c81Af264101B9129C00F4440cCF0F720": {
500504
coingeckoId: "astar",
501505
decimals: 18,
@@ -520,6 +524,22 @@ const fixBalancesTokens = {
520524
coingeckoId: "dai",
521525
decimals: 18,
522526
},
527+
"0xDBd71969aC2583A9A20Af3FB81FE9C20547f30F3": { // aBaiUsdc
528+
coingeckoId: "dai",
529+
decimals: 18,
530+
},
531+
"0x9914Bff0437f914549c673B34808aF6020e2B453": { // aDaiUsdc
532+
coingeckoId: "dai",
533+
decimals: 18,
534+
},
535+
"0x347e53263F8fb843EC605A1577eC7C8c0cAC7a58": { // aBusdUsdc
536+
coingeckoId: "dai",
537+
decimals: 18,
538+
},
539+
"0x02Dac4898B2c2cA9D50fF8D6a7726166CF7bCFD0": { // aUsdtUsdc
540+
coingeckoId: "dai",
541+
decimals: 18,
542+
},
523543
"0x4Bf769b05E832FCdc9053fFFBC78Ca889aCb5E1E": {
524544
coingeckoId: "binance-usd",
525545
decimals: 18,

projects/sirius-finance/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/*==================================================
22
Modules
33
==================================================*/
4-
const { sumTokens } = require('../helper/unwrapLPs')
4+
const { sumTokens2 } = require('../helper/unwrapLPs')
55
const { staking } = require("../helper/staking");
66
const { Chain, CoinGeckoID, Pools, SRS, VotingEscrow } = require("./constants");
7-
const { remap } = require("./lib");
8-
97

108
/*==================================================
119
TVL
@@ -17,8 +15,7 @@ async function tvl(timestamp, _block, { astar: block }) {
1715

1816
for ([o, ts] of Object.entries(Pools))
1917
ts.forEach(t => toa.push([t, o]))
20-
21-
return remap(await sumTokens({}, toa, block, Chain));
18+
return sumTokens2({ chain: Chain, block, tokensAndOwners: toa, })
2219
}
2320

2421
/*==================================================

0 commit comments

Comments
 (0)