Skip to content

Commit 91696d3

Browse files
committed
track nest credit DefiLlama#12058
1 parent dee690c commit 91696d3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

projects/nest-staking/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
const RWA_STAKING = "0xdbd03d676e1cf3c3b656972f88ed21784372acab"
3+
const RESERVE_STAKING = "0xba0ae7069f94643853fce3b8af7f55acbc11e397"
4+
const SBTC = "0x094c0e36210634c3CfA25DC11B96b562E0b07624"
5+
const STONE = "0x7122985656e38bdc0302db86685bb972b145bd3c"
6+
7+
async function tvl(api) {
8+
// Get allowed stablecoins from RWA Staking
9+
const stablecoins = await api.call({ target: RWA_STAKING, abi: 'address[]:getAllowedStablecoins', })
10+
const ownerTokens = [[stablecoins, RWA_STAKING], [[SBTC, STONE], RESERVE_STAKING]]
11+
return api.sumTokens({ ownerTokens})
12+
}
13+
14+
module.exports = {
15+
methodology: "Counts total value locked in both RWA Staking (stablecoins) and Reserve Staking (SBTC and STONE) contracts",
16+
ethereum: { tvl }
17+
}

0 commit comments

Comments
 (0)