aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibMath.sol
Commit message (Collapse)AuthorAgeFilesLines
* Move generated contract wrappers and artifacts into contracts packageAlex Browne2018-10-161-253/+0
|
* Remove TODOs that will not be addressedAmir Bandeali2018-09-041-1/+0
|
* Apply styling fixesAmir Bandeali2018-09-041-3/+10
|
* safeGetPartialAmount (#1035)Amir Bandeali2018-08-291-2/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Test "Should transfer correct amounts when left order is fully filled and values pass isRoundingErrorCeil but fail isRoundingErrorFloor" * Added RoundingError exception to reference function for getPartialAmount * Added RoundingError exception to reference function for getPartialAmount * Added isRoundingErrorCeil to getPartialAmountCeil reference funtion * Computed new values for "Should give right maker a better buy price when correct price is not integral" that does not have a rounding error * Almost all tests for match orders are passing after adding isRoundingErrorCeil check * WIP commit: Added rounding error checks to getPartialAmount * WIP commit: Added rounding error checks to getPartialAmount * Use safe versions of getPartialAmount * Update Exchange internals tests * Run linter * Found new values for "Should transfer correct amounts when right order fill amount deviates from amount derived by `Exchange.fillOrder`" * Fixed merge conflicts * Run all tests * Cleaned up some comments on match Orders tests * Fix tests for geth
* Stylistic fixesRemco Bloemen2018-08-251-5/+20
|
* Append -Floor to getPartialAmount and isRoundingErrorRemco Bloemen2018-08-251-4/+4
|
* Disambiguate the operator precedenceRemco Bloemen2018-08-251-2/+2
|
* Add docsRemco Bloemen2018-08-251-2/+7
|
* Fix incorect modulusRemco Bloemen2018-08-251-4/+2
|
* Add DIVISION_BY_ZERO to getPartialAmount for consistencyRemco Bloemen2018-08-251-4/+3
|
* Improve getPartialAmountCeil docsRemco Bloemen2018-08-251-3/+3
|
* Add isRoundingErrorCeilRemco Bloemen2018-08-251-0/+29
|
* Add getPartialAmountCeilRemco Bloemen2018-08-251-3/+32
|
* Handle zero caseRemco Bloemen2018-08-251-3/+15
|
* Fix isRoundingErrorRemco Bloemen2018-08-251-10/+17
|
* Update transferEthFeeAndRefund, add check to ERC721 transferAmir Bandeali2018-07-231-2/+4
|
* Apply new linter rulesAmir Bandeali2018-07-071-1/+1
|
* Contracts 2.0.0 were linted with solhintAlex Shafranovich2018-07-061-0/+1
|
* Update file structureAmir Bandeali2018-06-301-0/+72