forked from DefiLlama/DefiLlama-Adapters
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move liquid staked fantom tvl from stader to beethovenx * minor fix --------- Co-authored-by: franz <franzns11@gmail.com>
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 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 |
---|---|---|
@@ -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, | ||
}, | ||
}; |
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