Skip to content

Commit

Permalink
update wstbfc
Browse files Browse the repository at this point in the history
  • Loading branch information
tlatkdgus1 committed Dec 9, 2024
1 parent 1262137 commit 72b9256
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions projects/bifi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,11 @@ const chainPools = {
UnifiedDAI: { pool: '0x2168dAb12A6A93181bbAD9C9dc769307C36fB45C', token: ADDRESSES.bfc.UnifiedDAI },
UnifiedWBTC: { pool: '0xEa3b4a2dA5DbE8379AD4c60aaD5184df69D7C9AD', token: ADDRESSES.bfc.WBTC},
UnifiedBTCB: { pool: '0x0B31FeE8bF53bFe2f5F7083B73A4c9C8B517E32F', token: ADDRESSES.bfc.BTCB},
BitcoinUSD: { pool: '0xcF2FC1d354018A39D5Ef036aA865Ad8cbF7B611E', token: ADDRESSES.bfc.BitcoinUSD }
BitcoinUSD: { pool: '0xcF2FC1d354018A39D5Ef036aA865Ad8cbF7B611E', token: ADDRESSES.bfc.BitcoinUSD },
WstBFC: { pool: '0xf9B2f6D2a61923E61aD9F6DAA78f52b7e1722b12', token: '0x386f2F5d9A97659C86f3cA9B8B11fc3F76eFDdaE' },
},
}

async function wstBfc(api) {
const wstBfc = await api.call({
target: '0x386f2F5d9A97659C86f3cA9B8B11fc3F76eFDdaE',
abi: "erc20:balanceOf",
params: ['0xf9B2f6D2a61923E61aD9F6DAA78f52b7e1722b12'],
});

const bfcAmount = await api.call({
target: '0x386f2F5d9A97659C86f3cA9B8B11fc3F76eFDdaE',
abi: "function getStBFCByWstBFC(uint256 _wstBFCAmount) external view returns (uint256)",
params: [wstBfc],
});

return bfcAmount
}


module.exports = {
bitcoin: {
tvl: bitcoin
Expand Down

0 comments on commit 72b9256

Please sign in to comment.