Skip to content

Commit c326dec

Browse files
g1nt0kifranzns
andauthored
Stader-fantom (DefiLlama#8949)
* move liquid staked fantom tvl from stader to beethovenx * minor fix --------- Co-authored-by: franz <[email protected]>
1 parent ffafb08 commit c326dec

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

projects/beethovenx-sftmx/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const ADDRESSES = require("../helper/coreAssets.json");
2+
const liquidStakingContract = "0xB458BfC855ab504a8a327720FcEF98886065529b";
3+
4+
async function tvl(_, _1, _2, { api }) {
5+
const supply = await api.call({
6+
abi: "uint256:totalFTMWorth",
7+
target: liquidStakingContract,
8+
});
9+
api.add(ADDRESSES.null, supply);
10+
}
11+
12+
module.exports = {
13+
methodology: "Retrieve the total underlying FTM supply",
14+
fantom: {
15+
tvl,
16+
},
17+
};

projects/stader/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ async function maticTvl() {
2121
};
2222
}
2323

24-
async function ftmTvl() {
25-
const res = await getData();
26-
return {
27-
fantom: res.fantom.native,
28-
};
29-
}
30-
3124
async function terra2Tvl() {
3225
const res = await getData();
3326
return {
@@ -71,7 +64,7 @@ module.exports = {
7164
tvl: maticTvl
7265
}, */
7366
fantom: {
74-
tvl: ftmTvl,
67+
tvl: () => ({}),
7568
},
7669
terra2: {
7770
tvl: terra2Tvl,

0 commit comments

Comments
 (0)