Skip to content

Commit

Permalink
feat: new vault (DefiLlama#8885)
Browse files Browse the repository at this point in the history
Co-authored-by: ninjavault <[email protected]>
  • Loading branch information
helloautodojo and ninjavault committed Feb 7, 2024
1 parent d0da79d commit 80c5b1b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions projects/ninjavault/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { queryContract } = require('../helper/chain/cosmos')
const sdk = require('@defillama/sdk')

async function staking(_, _2, _1, { api }) {
const res = await queryContract({ chain: api.chain, contract: "inj102zs4nvdq4lyztqntp4l7nsvvqkpcvec4eeryw", data: { balance: {} }})
const balances = {}
sdk.util.sumSingleBalance(balances,'coingecko:dojo-token', res/1e18);
return balances
}

module.exports = {
methodology: "TVL counts the Tokens staked in NinjaVault vaults",
injective: { tvl:() => ({}), staking },
};

0 comments on commit 80c5b1b

Please sign in to comment.