Skip to content

Commit

Permalink
Merge pull request DefiLlama#5679 from Avedith/main
Browse files Browse the repository at this point in the history
Add void adapter & treasury
  • Loading branch information
g1nt0ki authored Mar 22, 2023
2 parents 22610ec + 5e76014 commit 472f005
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
18 changes: 18 additions & 0 deletions projects/treasury/void.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { nullAddress, treasuryExports } = require("../helper/treasury");

const treasury = "0xf0a793024Ac47e421EB8c4673212dfCcE42f4a97";
const tokenReflectionsAwardAddress = "0x78cCb45a43731cf989C740e9cb31f3d192Bd0f8b"

module.exports = treasuryExports({
fantom: {
owners: [treasury, tokenReflectionsAwardAddress],
ownTokens: [
"0x80F2B8CdbC470c4DB4452Cc7e4a62F5277Db7061", // VOID
],
tokens: [
nullAddress,
"0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E", // DAI
"0xfC66Ac63D414d3CF3dcdDa9e60742F6E789205e3", // SpookySwap VOID-DAI LP
],
},
});
10 changes: 10 additions & 0 deletions projects/void/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

module.exports = {
fantom: {
tvl: () => 0,
staking: async (_, _1, _2, { api }) => {
const bal = await api.call({ abi: 'uint256:getTotalInvested', target: '0xe0d4ed2613f6c8737234d28d24b9c5d7f106bd28' })
api.add('0x80F2B8CdbC470c4DB4452Cc7e4a62F5277Db7061', bal)
},
}
}

0 comments on commit 472f005

Please sign in to comment.