From 1aed6dfeb52c2f875ed365e1dcd4b58bf4e0a2ee Mon Sep 17 00:00:00 2001 From: prateek105 Date: Thu, 16 Nov 2023 19:40:33 +0530 Subject: [PATCH] Remove redundant conversions --- src/libraries/helpers/PoolHelper.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/helpers/PoolHelper.sol b/src/libraries/helpers/PoolHelper.sol index 4c602c195..6d6d9e737 100644 --- a/src/libraries/helpers/PoolHelper.sol +++ b/src/libraries/helpers/PoolHelper.sol @@ -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,