Skip to content

Commit

Permalink
fix tokemak stake balanceOf=initial-withdraw, better use lib (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpeluche authored Mar 11, 2024
1 parent f3dc81e commit d1e3378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 55 deletions.
6 changes: 3 additions & 3 deletions src/adapters/tokemak/ethereum/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { AdapterConfig, Balance, BalancesContext, BaseContext, Contract, GetBalancesHandler } from '@lib/adapter'
import { resolveBalances } from '@lib/balance'
import { getSingleStakeBalances } from '@lib/stake'
import { getSingleStakeBalance, getSingleStakeBalances } from '@lib/stake'

import { getTokemakContracts } from './contract'
import { getTokemakLockerBalances } from './locker'
import { getTokemakStakeBalances } from './stake'

const staker: Contract = {
chain: 'ethereum',
address: '0x96f98ed74639689c3a11daf38ef86e59f43417d3',
token: '0x2e9d63788249371f1DFC918a52f8d799F4a38C94',
underlyings: ['0x2e9d63788249371f1DFC918a52f8d799F4a38C94'],
}

Expand Down Expand Up @@ -41,7 +41,7 @@ const getTokemakFarmBalances = async (ctx: BalancesContext, pools: Contract[]):

export const getBalances: GetBalancesHandler<typeof getContracts> = async (ctx, contracts) => {
const balances = await resolveBalances<typeof getContracts>(ctx, contracts, {
staker: getTokemakStakeBalances,
staker: getSingleStakeBalance,
pools: getTokemakFarmBalances,
locker: getTokemakLockerBalances,
})
Expand Down
52 changes: 0 additions & 52 deletions src/adapters/tokemak/ethereum/stake.ts

This file was deleted.

0 comments on commit d1e3378

Please sign in to comment.