forked from DefiLlama/DefiLlama-Adapters
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* iagon added * moved tvl to pool2 --------- Co-authored-by: unknown <[email protected]>
- Loading branch information
1 parent
3b247c0
commit 462636c
Showing
1 changed file
with
22 additions
and
0 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,22 @@ | ||
const {sumTokensExport} = require("../helper/chain/cardano") | ||
const {get} = require("../helper/http") | ||
const iagTokenAddress = "5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114494147" | ||
const iagStaking ="addr1w9k25wa83tyfk5d26tgx4w99e5yhxd86hg33yl7x7ej7yusggvmu3" | ||
async function pool2(){ | ||
const poolValue = await get('https://api.iagon.com/api/v1/pools/tvl/total') | ||
return { | ||
cardano: parseFloat(poolValue.data.tvl) | ||
} | ||
} | ||
module.exports = { | ||
|
||
timetravel:false, | ||
cardano:{ | ||
tvl:()=>({}), | ||
pool2, | ||
staking:sumTokensExport({ | ||
owner:iagStaking, | ||
tokens:[iagTokenAddress] | ||
}) | ||
} | ||
} |