mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 13:25:30 +08:00
15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
const ibtcContract = "0x8154Aaf094c2f03Ad550B6890E1d4264B5DdaD9A";
|
|
|
|
async function tvl(api) {
|
|
// 1iBTC=1XBTC=1BTC(exsat)=1BTC
|
|
const ibtcTotalSupply = await api.call({ target: ibtcContract, abi: "uint256:totalSupply" })
|
|
api.addCGToken('bitcoin', ibtcTotalSupply / 1e18)
|
|
}
|
|
|
|
module.exports = {
|
|
doublecounted: true,
|
|
xsat: {
|
|
tvl
|
|
},
|
|
}
|