From e6e7bae4459595343e07c26891577a004b0062eb Mon Sep 17 00:00:00 2001 From: Remco Bloemen Date: Thu, 23 Aug 2018 16:51:31 -0700 Subject: Remove BUG_ from revert reasons --- .../contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/contracts') diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol b/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol index e5bd306dd..1a0a1a135 100644 --- a/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol +++ b/packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol @@ -332,7 +332,7 @@ contract MixinExchangeCore is // as an extra defence against potential bugs. require( takerAssetFilledAmount <= takerAssetFillAmount, - "BUG_TAKER_OVERPAY" + "TAKER_OVERPAY" ); // Make sure order is not overfilled @@ -340,7 +340,7 @@ contract MixinExchangeCore is // as an extra defence against potential bugs. require( safeAdd(orderInfo.orderTakerAssetFilledAmount, takerAssetFilledAmount) <= order.takerAssetAmount, - "BUG_ORDER_OVERFILL" + "ORDER_OVERFILL" ); // Make sure order is filled at acceptable price. @@ -364,7 +364,7 @@ contract MixinExchangeCore is safeMul(makerAssetFilledAmount, order.takerAssetAmount) <= safeMul(order.makerAssetAmount, takerAssetFilledAmount), - "BUG_ORDER_FILL_PRICING" + "INVALID_FILL_PRICE" ); // Validate fill order rounding -- cgit