Greg Hysen
|
ec2e726be0
|
Rephrased some of the math in MixinMatchOrders to improve readability
|
2018-08-24 18:20:26 -07:00 |
|
Greg Hysen
|
287830d6e0
|
Run all tests
|
2018-08-24 18:20:26 -07:00 |
|
Greg Hysen
|
c7a7ae7e18
|
Give right maker better price when correct value is not integral
|
2018-08-24 18:20:26 -07:00 |
|
Greg Hysen
|
1c7ba6a315
|
Extract only fill event logs
|
2018-08-24 18:20:26 -07:00 |
|
Greg Hysen
|
0a6f107243
|
Added temporary @todo to MixinMatchOrders
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
a93f95c55e
|
Wording in MixinMatchOrders
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
6833e243b7
|
Addressed linter errors in match order tesster
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
81dc893d1d
|
Removed a redundant comment from matchOrders
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
f8e565bc06
|
Tests for matchOrders edge cases
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
ba15fb6a06
|
Swapped direction of expect values to match output in failure cases
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
1e6b83719a
|
Renaming verify -> assert in order matching
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
9fcb2dda73
|
Fixed a function comment
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
9a5ec8d030
|
Added function signature comments
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
ac872e5181
|
Added expect messages for checking left/right order states
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
70863cca08
|
Ran prettier and linter
|
2018-08-24 18:20:25 -07:00 |
|
Greg Hysen
|
5a1dce15be
|
Updated all existing match order tests to use new format
|
2018-08-24 18:19:43 -07:00 |
|
Greg Hysen
|
d291256158
|
Passes comprehensive test
|
2018-08-24 18:18:30 -07:00 |
|
Greg Hysen
|
8c706ac639
|
Verify logs
|
2018-08-24 18:18:30 -07:00 |
|
Greg Hysen
|
f697814849
|
First balance test with intentional values
|
2018-08-24 18:18:30 -07:00 |
|
Greg Hysen
|
ca5c9e77c0
|
Ironing out the new set of test cases for order matchubng
|
2018-08-24 18:17:27 -07:00 |
|
Greg Hysen
|
a32b201afe
|
Rounding for fees in match orders addressed, plus example
|
2018-08-24 18:17:27 -07:00 |
|
Greg Hysen
|
0ecdf1e213
|
All existing tests pass.
|
2018-08-24 18:17:26 -07:00 |
|
Greg Hysen
|
057891b342
|
Added fees to matchOrders (previously in calculateFillResults
|
2018-08-24 18:17:26 -07:00 |
|
Greg Hysen
|
407f63ef20
|
Removed calculateFillResults from matchOrders workflow. Eliminates compounded rounding errors.
|
2018-08-24 18:17:26 -07:00 |
|
Amir Bandeali
|
c8500cab10
|
Fix build
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
c28c3db63f
|
Only use one nonReentrant modifier, remove modifier from fillOrderNoThrow variations
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
a09ee90739
|
Add tests for matchOrders
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
7d5a23969d
|
Add reentrancy tests for fillOrder and wrapper functions
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
56c3c29feb
|
Update ReentrantERC20Token with new functions and check that revert is occuring for correct reason
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
c75212bef0
|
Add nonReentrant modifiers on functions that use getCurrentContextAddress only, add lockMutex modifier on functions that make external calls
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
6d0dedc62c
|
Split modifiers into check only and check, lock, unlock
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
cf12daea2f
|
Add ReentrantToken
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
6f88e9bdbd
|
Add internal fill functions, add reentrancy guard to public functions that make external calls
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
d8cb56caa3
|
Add ReentrancyGuard contract
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
044415e23d
|
Remove redundant sload from getCurrentContextAddress
|
2018-08-24 17:30:56 -07:00 |
|
Amir Bandeali
|
74ce893f52
|
Merge pull request #1003 from 0xProject/feature/contracts/roundup
[contracts] Add getPartialAmountCeil and isRoundingErrorCeil
|
2018-08-24 17:29:09 -07:00 |
|
Amir Bandeali
|
cc1fac9bbe
|
Fix linting errors
|
2018-08-24 17:02:42 -07:00 |
|
Remco Bloemen
|
11328bd93d
|
Skip self-transfers
|
2018-08-24 16:26:48 -07:00 |
|
Remco Bloemen
|
bc686fcbf3
|
Stylistic fixes
|
2018-08-24 16:17:02 -07:00 |
|
Remco Bloemen
|
80291caf7c
|
Append -Floor to getPartialAmount and isRoundingError
|
2018-08-24 16:16:44 -07:00 |
|
Greg Hysen
|
a27112cbef
|
SignatureType.Trezor -> SignatureType.EthSign in Signature Validator tests
|
2018-08-24 14:40:00 -07:00 |
|
Greg Hysen
|
bb4d449e92
|
Test case for Trezor Model T signature
|
2018-08-24 14:40:00 -07:00 |
|
Greg Hysen
|
241534a63d
|
Fixed trezor personal message in client+contracts; added a test using message signed by Trezor One (firmware v1.6.2)
|
2018-08-24 14:40:00 -07:00 |
|
Amir Bandeali
|
1932aff35c
|
Remove Trezor SignatureType
|
2018-08-24 14:40:00 -07:00 |
|
Amir Bandeali
|
8ce4f9c784
|
Remove SignatureType.Caller
|
2018-08-24 14:39:08 -07:00 |
|
Remco Bloemen
|
f6080367fe
|
Disambiguate the operator precedence
|
2018-08-24 14:11:45 -07:00 |
|
Remco Bloemen
|
7f78d7da9d
|
Add tests
|
2018-08-24 14:09:51 -07:00 |
|
Remco Bloemen
|
6734f2f1bc
|
Add docs
|
2018-08-24 14:09:51 -07:00 |
|
Remco Bloemen
|
0fb7617a78
|
Fix incorect modulus
|
2018-08-24 14:09:51 -07:00 |
|
Remco Bloemen
|
4219af1430
|
Add DIVISION_BY_ZERO to getPartialAmount for consistency
|
2018-08-24 14:09:51 -07:00 |
|