Skip to content

Commit

Permalink
Merge pull request #5884 from balancer/fix/vebal-boost-val
Browse files Browse the repository at this point in the history
hf: vebal boost value on portfolio page
  • Loading branch information
alter-eggo authored Jul 10, 2024
2 parents b0fa8e3 + 111f0d2 commit 3a8213d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/staking/staking-rewards.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ export class StakingRewardsService {
.times(_gaugeTotalSupply)
.div(_userGaugeBalance)
);

if (boost.isNaN()) {
return '1';
}

const minBoost = bnum(2.5).lt(boost) ? 2.5 : boost;

return minBoost.toString();
Expand Down

0 comments on commit 3a8213d

Please sign in to comment.