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

Commit

Permalink
fix: Fix rewards to be per second and not per block (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrap-that-potassium committed Apr 25, 2022
1 parent b3a170f commit d6f9553
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Inject, Injectable } from '@nestjs/common';

import { MasterChefContractPositionDataProps } from '~app-toolkit';
import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface';
import { RewardRateUnit } from '~app-toolkit/helpers/master-chef/master-chef.contract-position-helper';
import { ContractPosition } from '~position/position.interface';
import { AppGroupsDefinition } from '~position/position.service';
import { Network } from '~types/network.interface';
Expand All @@ -28,6 +29,7 @@ export class WbanFarmContractPositionFetcherHelper {
groupId,
network,
dependencies,
rewardRateUnit: RewardRateUnit.SECOND,
resolveContract: ({ address, network }) => this.contractFactory.benis({ address, network }),
resolvePoolLength: ({ multicall, contract }) => multicall.wrap(contract).poolLength(),
resolveDepositTokenAddress: ({ poolIndex, contract, multicall }) =>
Expand Down

0 comments on commit d6f9553

Please sign in to comment.