Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions contracts/core/VaultPriceFeed.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down