Skip to content

Commit

Permalink
Add StakeStone SBTC
Browse files Browse the repository at this point in the history
  • Loading branch information
stakestone-scdev committed Sep 19, 2024
1 parent fe9df13 commit 39fc300
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions projects/stakestone-btc/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const ADDRESSES = require('../helper/coreAssets.json')

const vaultABI = {
"getDepositAmounts": "function getDepositAmounts() view returns (address[], uint256[])"
}

const VaultBSC = '0xc6f830BB162e6CFb7b4Bac242B0E43cF1984c853';

const bscTvl = async (api) => {
const btclist = await api.call({ abi: vaultABI.getDepositAmounts, target: VaultBSC })
api.add(ADDRESSES.bsc.BTCB, btclist[1][0] / 10**18)
return api.sumTokens({ owner: VaultBSC, tokens: [ADDRESSES.bsc.BTCB] })
}


module.exports = {
start: 42326440,
bsc: {
tvl: bscTvl,
}
}

0 comments on commit 39fc300

Please sign in to comment.