Skip to content

Commit

Permalink
Revert "getGaugePointsPerBdvForWell avoid div by 0"
Browse files Browse the repository at this point in the history
This reverts commit c99920d.
  • Loading branch information
nickkatsios committed Sep 17, 2024
1 parent c99920d commit 36e9bb3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ contract SeasonGettersFacet {
if (LibWell.isWell(well)) {
uint256 wellGaugePoints = s.sys.silo.assetSettings[well].gaugePoints;
uint256 wellDepositedBdv = s.sys.silo.balances[well].depositedBdv;
// avoid division by zero when no BDV is deposited or initial deposits are still germinating.
if (wellDepositedBdv == 0) return 0;
return wellGaugePoints.mul(LibGauge.BDV_PRECISION).div(wellDepositedBdv);
} else {
revert("Token not supported");
Expand Down

0 comments on commit 36e9bb3

Please sign in to comment.