Skip to content

Commit 0d2ce8d

Browse files
committed
update drop DefiLlama#13038
1 parent 867719b commit 0d2ce8d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

projects/drop/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ const { queryContract } = require('../helper/chain/cosmos')
33
const config = {
44
neutron: [{
55
coinGeckoId: "cosmos",
6-
contract: "neutron16m3hjh7l04kap086jgwthduma0r5l0wh8kc6kaqk92ge9n5aqvys9q6lxr"
6+
dropContract: "neutron16m3hjh7l04kap086jgwthduma0r5l0wh8kc6kaqk92ge9n5aqvys9q6lxr"
7+
},
8+
{
9+
coinGeckoId: "celestia",
10+
dropContract: "neutron1fp649j8djj676kfvh0qj8nt90ne86a8f033w9q7p9vkcqk9mmeeqxc9955"
711
}],
812
};
913

1014
async function tvl(api) {
11-
for (const { coinGeckoId, contract, decimals = 6 } of config[api.chain]) {
12-
const bonded = await queryContract({ contract, chain: api.chain, data: { "total_bonded": {} } })
15+
for (const { coinGeckoId, dropContract, decimals = 6 } of config[api.chain]) {
16+
const bonded = await queryContract({ contract: dropContract, chain: api.chain, data: { "total_bonded": {} } })
1317
api.addCGToken(coinGeckoId, bonded / 10 ** decimals)
1418
}
1519
}

0 commit comments

Comments
 (0)