Skip to content

Commit

Permalink
[PDE-646] add nElixir to nest-staking (#13097)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x authored Jan 15, 2025
2 parents 4a5061d + 4a5a523 commit 279f8ae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions projects/nest-staking/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@

const RWA_STAKING = "0xdbd03d676e1cf3c3b656972f88ed21784372acab"
const RESERVE_STAKING = "0xba0ae7069f94643853fce3b8af7f55acbc11e397"
const SBTC = "0x094c0e36210634c3CfA25DC11B96b562E0b07624"
const STONE = "0x7122985656e38bdc0302db86685bb972b145bd3c"

const nELIXIR = "0x9fbC367B9Bb966a2A537989817A088AFCaFFDC4c"
const deUSD = "0x15700B564Ca08D9439C58cA5053166E8317aa138"
const sdeUSD = "0x5C5b196aBE0d54485975D1Ec29617D42D9198326"

async function tvl(api) {
// Get allowed stablecoins from RWA Staking
const stablecoins = await api.call({ target: RWA_STAKING, abi: 'address[]:getAllowedStablecoins', })
const ownerTokens = [[stablecoins, RWA_STAKING], [[SBTC, STONE], RESERVE_STAKING]]
const ownerTokens = [
[stablecoins, RWA_STAKING],
[[SBTC, STONE], RESERVE_STAKING],
[[deUSD, sdeUSD], nELIXIR],
]
return api.sumTokens({ ownerTokens})
}

module.exports = {
methodology: "Counts total value locked in both RWA Staking (stablecoins) and Reserve Staking (SBTC and STONE) contracts",
methodology: "Counts total value locked in RWA Staking (stablecoins), Reserve Staking (SBTC and STONE) and nELIXIR vault contracts",
ethereum: { tvl }
}

0 comments on commit 279f8ae

Please sign in to comment.