Skip to content

Commit

Permalink
bitstable: track staking #11638
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Sep 16, 2024
1 parent a166732 commit 9d8d2e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions projects/bitstable-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@ const { sumTokensExport } = require("../helper/sumTokens");
const sdk = require('@defillama/sdk')
const { sumTokensExport: sumBRC20TokensExport } = require("../helper/chain/brc20");

const BB_STAKE_CONTRACT = '0x8816353DA8A4D45E81C509A54AdbA8E57908958f'
const BB_STAKE_ABI = 'function totalStakedAmount() view returns (uint256)'

const owner = "0x103dd1184599c7511a3016E0a383E11F84AE7173";
const tokens = {
ethereum: [ADDRESS.ethereum.USDT],
bsc: [ADDRESS.ethereum.FDUSD],
};

const bbInBouncebitStaking = async (api) => {
const staked = await api.call({ target: BB_STAKE_CONTRACT, abi: BB_STAKE_ABI })
api.addCGToken('bouncebit', staked/1e18)
}

module.exports = {
methodology: "Staking tokens via BitStable counts as TVL",
bitcoin: {
Expand All @@ -28,6 +36,9 @@ module.exports = {
blacklistedTokens: ["DAII"],
}),
},
bouncebit: {
staking: bbInBouncebitStaking,
},
};

Object.keys(tokens).map((chain) => {
Expand Down

0 comments on commit 9d8d2e3

Please sign in to comment.