Skip to content

Commit

Permalink
add Bitdrome adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
kizenY committed Aug 7, 2024
1 parent a8cccba commit b2d5679
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions projects/bitdrome/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const USDT = '0xa67ED736649F2958A35fd249a584151056b4b745';
const WBTC = '0xB5136FEba197f5fF4B765E5b50c74db717796dcD'
const USDT_WBCT_POOL = '0x02383dC175a6EB8C58B348fBEB2Eb4e00aB7e45f';

async function tvl(api) {
const btcBalance = await api.call({
abi: 'erc20:balanceOf',
target: WBTC,
params: [USDT_WBCT_POOL]
})
const usdtBalance = await api.call({
abi: 'erc20:balanceOf',
target: USDT,
params: [USDT_WBCT_POOL]
})
api.addTokens([WBTC, USDT], [btcBalance, USDT]);
}

module.exports = {
methodology: 'calculate tvl of Bitdrome pools',
start: 1981544,
bevm: {
tvl
}
}

0 comments on commit b2d5679

Please sign in to comment.