Skip to content

Commit

Permalink
iagon added (DefiLlama#8958)
Browse files Browse the repository at this point in the history
* iagon added

* moved tvl to pool2

---------

Co-authored-by: unknown <[email protected]>
  • Loading branch information
iagontech and sanjay-resp authored Feb 15, 2024
1 parent 3b247c0 commit 462636c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions projects/iagon/index.js
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]
})
}
}

0 comments on commit 462636c

Please sign in to comment.