Skip to content

Commit 318c1e2

Browse files
committed
add stakewise v3
1 parent 0e070fe commit 318c1e2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

projects/stakewise-v3/index.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
2+
const sdk = require('@defillama/sdk');
3+
4+
async function xdaiTvl(timestamp, ethBlock, { xdai: block }) {
5+
const chain = "xdai"
6+
const supply = await sdk.api.erc20.totalSupply({
7+
target: '0xF490c80aAE5f2616d3e3BDa2483E30C4CB21d1A0',
8+
block,
9+
chain
10+
})
11+
12+
return {
13+
[ADDRESSES.ethereum.GNO]: supply.output
14+
}
15+
}
16+
17+
module.exports = {
18+
methodology: 'Counts coins staked',
19+
xdai:{
20+
tvl: xdaiTvl
21+
}
22+
}

0 commit comments

Comments
 (0)