Skip to content

Commit

Permalink
Remove redundant conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek105 committed Nov 16, 2023
1 parent 7710e22 commit 1aed6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/helpers/PoolHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ import { Maths } from '../internal/Maths.sol';
uint256 auctionPrice_
) pure returns (int256) {
int256 sign;
if (int256(thresholdPrice_) < int256(neutralPrice_)) {
if (thresholdPrice_ < neutralPrice_) {
// BPF = BondFactor * min(1, max(-1, (neutralPrice - price) / (neutralPrice - thresholdPrice)))
sign = Maths.minInt(
1e18,
Expand Down

0 comments on commit 1aed6df

Please sign in to comment.