-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PDE-646] add nElixir to nest-staking (#13097)
- Loading branch information
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | ||
} |