Skip to content

Commit 3a8213d

Browse files
authored
Merge pull request #5884 from balancer/fix/vebal-boost-val
hf: vebal boost value on portfolio page
2 parents b0fa8e3 + 111f0d2 commit 3a8213d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/services/staking/staking-rewards.service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ export class StakingRewardsService {
9999
.times(_gaugeTotalSupply)
100100
.div(_userGaugeBalance)
101101
);
102+
103+
if (boost.isNaN()) {
104+
return '1';
105+
}
106+
102107
const minBoost = bnum(2.5).lt(boost) ? 2.5 : boost;
103108

104109
return minBoost.toString();

0 commit comments

Comments
 (0)
close