Skip to content

Commit

Permalink
fix farming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsource147 committed Dec 21, 2023
1 parent 0ca54cb commit 9810aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts-client/src/farm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ function rewardPerToken(pool: PoolState, lastTimeRewardApplicable: number) {
let timePeriod = new BN(lastTimeRewardApplicable - pool.lastUpdateTime.toNumber());
return {
a: pool.rewardAPerTokenStored.add(timePeriod.mul(pool.rewardARateU128).div(totalStake)),
b: pool.rewardAPerTokenStored.add(timePeriod.mul(pool.rewardARateU128).div(totalStake))
b: pool.rewardBPerTokenStored.add(timePeriod.mul(pool.rewardBRateU128).div(totalStake))
}
}

Expand Down

0 comments on commit 9810aab

Please sign in to comment.