mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 22:43:12 +08:00
update dragon staking
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user