Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(pickle): Use app toolkit for all helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
JForsaken committed Apr 26, 2022
1 parent 21d5a79 commit 4dfa5c2
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Inject } from '@nestjs/common';

import { MasterChefRewarderClaimableTokenStrategy } from '~app-toolkit';
import { ZERO_ADDRESS } from '~app-toolkit/constants/address';
import { Register } from '~app-toolkit/decorators';
import { RewardRateUnit } from '~app-toolkit/helpers/master-chef/master-chef.contract-position-helper';
Expand All @@ -22,8 +21,6 @@ export class ArbitrumPickleFarmContractPositionFetcher implements PositionFetche
constructor(
@Inject(APP_TOOLKIT) private readonly appToolkit: IAppToolkit,
@Inject(PickleContractFactory) private readonly contractFactory: PickleContractFactory,
@Inject(MasterChefRewarderClaimableTokenStrategy)
private readonly masterChefRewarderClaimableTokenStrategy: MasterChefRewarderClaimableTokenStrategy,
) {}

async getPositions(): Promise<ContractPosition<DefaultDataProps>[]> {
Expand All @@ -42,7 +39,7 @@ export class ArbitrumPickleFarmContractPositionFetcher implements PositionFetche
}),
resolvePoolLength: ({ multicall, contract }) => multicall.wrap(contract).poolLength(),
resolveDepositTokenAddress: ({ poolIndex, contract, multicall }) => multicall.wrap(contract).lpToken(poolIndex),
resolveRewardTokenAddresses: this.masterChefRewarderClaimableTokenStrategy.build<
resolveRewardTokenAddresses: this.appToolkit.helpers.masterChefRewarderClaimableTokenStrategy.build<
PickleMiniChefV2,
PickleRewarder
>({
Expand Down

0 comments on commit 4dfa5c2

Please sign in to comment.