diff options
author | Remco Bloemen <remco@wicked.ventures> | 2018-08-24 07:51:31 +0800 |
---|---|---|
committer | Remco Bloemen <remco@wicked.ventures> | 2018-08-25 07:46:23 +0800 |
commit | e6e7bae4459595343e07c26891577a004b0062eb (patch) | |
tree | 7de25371a142600aeb5d01b7dc005d22436f4364 /packages | |
parent | a1d89435525795f6f412a823241740f10cbdf1d8 (diff) | |
download | dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.tar dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.tar.gz dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.tar.bz2 dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.tar.lz dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.tar.xz dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.tar.zst dexon-sol-tools-e6e7bae4459595343e07c26891577a004b0062eb.zip |
Remove BUG_ from revert reasons
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contracts/src/2.0.0/protocol/Exchange/MixinExchangeCore.sol | 6 |
1 files changed, 3 insertions, 3 deletions
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 |