From ae97769d096b223cecd778095c24d58a658cf9e8 Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Tue, 14 Mar 2023 09:42:09 +0800 Subject: [PATCH] Remove force 1 USD to stablecoin price spread. --- contracts/core/VaultPriceFeed.sol | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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];