diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-12-19 03:36:05 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-12-19 05:36:05 +0800 |
commit | d2a4fd570622de34a3d8e8a25735b025e3ac5f77 (patch) | |
tree | a93c3ca211b3401f5de7c3b4ef23dcc8efdddea4 /contracts/extensions | |
parent | afe200c4e1bd76d5f2dbfcb7898ca025a7bb3dd6 (diff) | |
download | dexon-0x-contracts-d2a4fd570622de34a3d8e8a25735b025e3ac5f77.tar.gz dexon-0x-contracts-d2a4fd570622de34a3d8e8a25735b025e3ac5f77.tar.zst dexon-0x-contracts-d2a4fd570622de34a3d8e8a25735b025e3ac5f77.zip |
Added documentation to `LibAddressArray.append` and switched `if` to `require` smt
Diffstat (limited to 'contracts/extensions')
-rw-r--r-- | contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol b/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol index 2917403bd..ab6989115 100644 --- a/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol +++ b/contracts/extensions/contracts/BalanceThresholdFilter/MixinBalanceThresholdFilterCore.sol @@ -70,9 +70,10 @@ contract MixinBalanceThresholdFilterCore is IThresholdAsset thresholdAsset = THRESHOLD_ASSET; for (uint256 i = 0; i < addressesToValidate.length; ++i) { uint256 addressBalance = thresholdAsset.balanceOf(addressesToValidate[i]); - if (addressBalance < balanceThreshold) { - revert("AT_LEAST_ONE_ADDRESS_DOES_NOT_MEET_BALANCE_THRESHOLD"); - } + require( + addressBalance >= balanceThreshold, + "AT_LEAST_ONE_ADDRESS_DOES_NOT_MEET_BALANCE_THRESHOLD" + ); } emit ValidatedAddresses(addressesToValidate); |