diff --git a/contracts/core/VaultPriceFeed.sol b/contracts/core/VaultPriceFeed.sol index c73549b5..827bd12e 100644 --- a/contracts/core/VaultPriceFeed.sol +++ b/contracts/core/VaultPriceFeed.sol @@ -186,17 +186,7 @@ contract VaultPriceFeed is IVaultPriceFeed { return ONE_USD; } - // if _maximise and price is e.g. 1.02, return 1.02 - if (_maximise && price > ONE_USD) { - return price; - } - - // if !_maximise and price is e.g. 0.98, return 0.98 - if (!_maximise && price < ONE_USD) { - return price; - } - - return ONE_USD; + return price; } uint256 _spreadBasisPoints = spreadBasisPoints[_token];