diff --git a/contracts/protocol/PriceOracle.sol b/contracts/protocol/PriceOracle.sol index 8a89381e1..fda1a62d5 100644 --- a/contracts/protocol/PriceOracle.sol +++ b/contracts/protocol/PriceOracle.sol @@ -120,6 +120,10 @@ contract PriceOracle is Ownable { "PriceOracle.getPrice: Caller must be system contract." ); + if (_assetOne == _assetTwo) { + return 10**18; + } + bool priceFound; uint256 price;