File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change
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
+ } ;
Original file line number Diff line number Diff line change @@ -21,13 +21,6 @@ async function maticTvl() {
21
21
} ;
22
22
}
23
23
24
- async function ftmTvl ( ) {
25
- const res = await getData ( ) ;
26
- return {
27
- fantom : res . fantom . native ,
28
- } ;
29
- }
30
-
31
24
async function terra2Tvl ( ) {
32
25
const res = await getData ( ) ;
33
26
return {
@@ -71,7 +64,7 @@ module.exports = {
71
64
tvl: maticTvl
72
65
}, */
73
66
fantom : {
74
- tvl : ftmTvl ,
67
+ tvl : ( ) => ( { } ) ,
75
68
} ,
76
69
terra2 : {
77
70
tvl : terra2Tvl ,
You can’t perform that action at this time.
0 commit comments