Skip to content

Commit

Permalink
add xdc liquid staking project
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelas committed Jan 6, 2025
1 parent 8d61b5e commit ec2f3c5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions projects/xdc-liquid-staking/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const xdcStakeRewardTokenAddress = '0x7f115F68A789F819047b94EFA0114AA9829b83d8'
const wrappedXdcAddress = '0x951857744785E80e2De051c32EE7b25f9c458C42' // Use Wrapped XDC Token for token price
// const xdcVaultAddress = '0xEb7bCbdCb6152e8f6b368F3843381c1F75bf247D'

const tvl = async (api) => {
const totalSupply = await api.call({
abi: 'erc20:totalSupply',
target: xdcStakeRewardTokenAddress,
})

api.add(wrappedXdcAddress, totalSupply)
}

module.exports = {
xdc: {tvl}
}

0 comments on commit ec2f3c5

Please sign in to comment.