Skip to content

Commit

Permalink
Stader-fantom (DefiLlama#8949)
Browse files Browse the repository at this point in the history
* move liquid staked fantom tvl from stader to beethovenx

* minor fix

---------

Co-authored-by: franz <franzns11@gmail.com>
  • Loading branch information
g1nt0ki and franzns authored Feb 13, 2024
1 parent ffafb08 commit c326dec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
17 changes: 17 additions & 0 deletions projects/beethovenx-sftmx/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const ADDRESSES = require("../helper/coreAssets.json");
const liquidStakingContract = "0xB458BfC855ab504a8a327720FcEF98886065529b";

async function tvl(_, _1, _2, { api }) {
const supply = await api.call({
abi: "uint256:totalFTMWorth",
target: liquidStakingContract,
});
api.add(ADDRESSES.null, supply);
}

module.exports = {
methodology: "Retrieve the total underlying FTM supply",
fantom: {
tvl,
},
};
9 changes: 1 addition & 8 deletions projects/stader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ async function maticTvl() {
};
}

async function ftmTvl() {
const res = await getData();
return {
fantom: res.fantom.native,
};
}

async function terra2Tvl() {
const res = await getData();
return {
Expand Down Expand Up @@ -71,7 +64,7 @@ module.exports = {
tvl: maticTvl
}, */
fantom: {
tvl: ftmTvl,
tvl: () => ({}),
},
terra2: {
tvl: terra2Tvl,
Expand Down

0 comments on commit c326dec

Please sign in to comment.