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

Commit

Permalink
fix(curve): Fix Generic type in helper (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwele authored May 10, 2022
1 parent 206e7b6 commit 43767ea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { range } from 'lodash';
import { SingleStakingFarmContractPositionHelperParams } from '~app-toolkit';
import { ZERO_ADDRESS } from '~app-toolkit/constants/address';

import { CurveGaugeV2 } from '../contracts';

@Injectable()
export class CurveGaugeV2RewardTokenStrategy {
build<T>(): SingleStakingFarmContractPositionHelperParams<T>['resolveRewardTokenAddresses'] {
build(): SingleStakingFarmContractPositionHelperParams<CurveGaugeV2>['resolveRewardTokenAddresses'] {
return async ({ contract, multicall }) => {
// Gauge V2 supports up to 4 different reward tokens
const MAX_REWARDS = 4;
Expand Down

0 comments on commit 43767ea

Please sign in to comment.