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

Commit

Permalink
feat(chef): Add params for getDefinitions for overrides (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Dec 13, 2022
1 parent ce1ed33 commit 9068604
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -18,6 +18,7 @@ import {
GetDataPropsParams,
GetDisplayPropsParams,
GetTokenBalancesParams,
GetDefinitionsParams,
} from '~position/template/contract-position.template.types';

export type MasterChefContractPositionDataProps = {
Expand Down Expand Up @@ -73,7 +74,7 @@ export abstract class MasterChefTemplateContractPositionFetcher<
abstract getStakedTokenBalance(params: GetMasterChefTokenBalancesParams<T>): Promise<BigNumberish>;
abstract getRewardTokenBalance(params: GetMasterChefTokenBalancesParams<T>): Promise<BigNumberish | BigNumberish[]>;

async getDefinitions() {
async getDefinitions(_params: GetDefinitionsParams): Promise<MasterChefContractPositionDefinition[]> {
const contract = this.getContract(this.chefAddress);
const poolLength = await this.getPoolLength(contract);
return range(0, Number(poolLength)).map(poolIndex => ({ address: this.chefAddress, poolIndex }));
Expand Down

0 comments on commit 9068604

Please sign in to comment.