Skip to content

Commit

Permalink
Add DegenFund (#9678)
Browse files Browse the repository at this point in the history
* Add DegenFund

* code refactor

---------

Co-authored-by: tca01 <[email protected]>
Co-authored-by: g1nt0ki <[email protected]>
  • Loading branch information
3 people authored Apr 3, 2024
1 parent bcad826 commit dcbce74
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions projects/degenfund/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { sumUnknownTokens } = require('../helper/unknownTokens')

module.exports = {
methodology: "Calculates the total value of staked DFund tokens in our staker smart contract.",
degen: {
tvl: () => ({}),
staking: tvl
}
}

async function tvl(api) {
const bal = await api.call({ abi: "uint256:totalDfundStaked", target: '0xe11CD52De12a86400311e0D2884aC9B542eEd05e' })
api.add('0x0B946D939bb93609Fcce42220180E5C81B642786', bal)
return sumUnknownTokens({ api, lps: ['0x9c0Dd6BA0E2c611585c75F06f024BC8826FdB446'], useDefaultCoreAssets: true })
}

0 comments on commit dcbce74

Please sign in to comment.