update dragon staking

This commit is contained in:
g1nt0ki
2025-10-16 18:01:40 +02:00
parent 2c984a33ce
commit dc7f41675c

View File

@@ -3,11 +3,15 @@ const { get } = require('../helper/http')
const { sumTokens2 } = require('../helper/unwrapLPs')
const staker = '0x95C683194B45d2d27842c2C87A7D5FfffD8A5eD6'
const stakerV2 = '0xb71886c52D754CF2B1D3d866c7Cfe9eeC01418a7'
const staking = async (api) => {
const stakingToken = await api.call({ target: staker, abi: 'address:stakingToken' })
const stakingTokenV2 = await api.call({ target: stakerV2, abi: 'address:dragon' })
const balance = await api.call({ target: staker, abi: 'uint256:totalDeposits' })
const balanceV2 = await api.call({ target: stakerV2, abi: 'uint256:totalDeposits' })
api.add(stakingToken, balance)
api.add(stakingTokenV2, balanceV2)
}
async function tvl(api) {