Skip to content

Commit

Permalink
refactor imBTC
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Sep 24, 2024
1 parent 14ff594 commit ece620d
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions projects/imbtc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

async function tvl(api) {
const imBTC = '0x3212b29E33587A00FB1C83346f5dBFA69A458923'
const supply = await api.call({ abi: 'erc20:totalSupply', target: imBTC })
api.add(imBTC, supply)
}
const { sumTokens } = require('./helper/chain/bitcoin')

module.exports = {
ethereum: { tvl },
methodology: `TVL for imBTC consists of the BTC deposits in custody that were used to mint imBTC`
ethereum: { tvl: () => ({}) },
bitcoin: {
tvl: () => sumTokens({
owners: ['3JMjHDTJjKPnrvS7DycPAgYcA6HrHRk8UG', '3GH4EhMi1MG8rxSiAWqfoiUCMLaWPTCxuy'],
})
},
methodology: `TVL for imBTC consists of the BTC deposits in custody that were used to mint imBTC`,
hallmarks: [
[Math.floor(new Date('2024-01-31') / 1e3), 'Project ceases operation'],
],
}

0 comments on commit ece620d

Please sign in to comment.