Alex Towle
41d99e77c7
@0x:contracts-utils
Removed SafeMath and the use of the contract throughout contracts/
2019-10-15 14:31:48 -07:00
Alex Towle
1cf8ae5909
@0x:contracts-utils
Removed several functions from LibBytes
2019-10-14 11:54:02 -07:00
Alex Towle
65f2626544
@0x:contracts-utils
Updated the OwnershipTransferred
event to be closer to OpenZeppelin's event
2019-10-10 10:58:58 -07:00
Alex Towle
dc0a78434d
@0x:contracts-utils
Updated files
2019-10-08 19:27:39 -07:00
Alex Towle
d1b0384aef
@0x:contracts-utils
Added an event for ownership transfers
2019-10-08 19:22:27 -07:00
mzhu25
ee508f70bc
Merge pull request #2228 from 0xProject/fix/3.0/refundFinalBalanceNoReentry
...
refundFinalBalanceNoReentry
2019-10-06 13:39:04 -07:00
Michael Zhu
0e7387550c
Update contracts
2019-10-06 12:44:58 -07:00
Michael Zhu
3948f8b66b
Replace nonReentrant + refundFinalBalance with refundFinalBalanceNoReentry
2019-10-01 15:39:50 -07:00
Alex Towle
b178d025b5
@0x:contracts-staking
Added unit tests for MixinExchangeManager
2019-09-25 15:32:02 -07:00
Amir Bandeali
57f5b12e24
Cleanup rich reverts
2019-09-24 18:13:37 -07:00
Amir Bandeali
b359738037
Update EIP712 domain separator schema
2019-09-23 15:59:30 -07:00
Lawrence Forman
9dd8c61a2f
@0x/contract-staking
: Address review nits.
...
`@0x/contracts-utils`: Use `safeDiv()` in `LibFractions.normalize()`.
2019-09-23 11:55:02 -04:00
Lawrence Forman
3ad7728a0e
@0x/contracts-staking
: Remove IStructs.CumulativeRewardInfo
, etc.
...
`@0x/contracts-staking`: Convert all rewards to WETH.
`@0x/contracts-staking`: Style changes.
`@0x/contracts-staking`: Address misc. review comments.
`@0x/contracts-staking`: Make `LibFractions` scaling a separate step.
2019-09-22 12:17:05 -04:00
Lawrence Forman
ac7f6aef9e
@0x/contracts-staking
: It compiles!
2019-09-22 12:11:47 -04:00
Lawrence Forman
527ec28915
@0x/contracts-utils
: Add auto-scaling and zero-value optimizations to LibFractions
.
2019-09-22 12:10:41 -04:00
Lawrence Forman
0196ce18f3
@0x/contracts-staking
: Last call before embarking of V3 of staking integration.
2019-09-22 12:10:41 -04:00
Lawrence Forman
7ef3c12722
@0x/contracts-staking
: Well, it almost worked.
2019-09-22 12:10:41 -04:00
Lawrence Forman
06b4d241af
@0x/contracts-staking
: Working on MBF v2
2019-09-22 12:07:11 -04:00
Amir Bandeali
45c7653850
Initialize Authorizable instead of Ownable in constructors, fix tests that use onlyOwner modifier
2019-09-20 17:16:35 -07:00
Amir Bandeali
e1c57cf0af
Refactor Authorizable to use internal methods
2019-09-20 16:55:30 -07:00
Greg Hysen
12f0797ace
Reference counting for rewards, plus unit tests for cumulative rewards.
2019-09-14 00:04:52 -07:00
James Towle
c21bce9641
Merge pull request #2130 from 0xProject/feature/staking/protocol-fees
...
Feature/staking/protocol fees
2019-09-09 15:13:33 -07:00
Alex Towle
2fdd4e9760
@0x:contracts-staking
Addressed some review comments
2019-09-09 10:25:19 -07:00
Amir Bandeali
35bf179b70
Clear compiler warnings
2019-09-07 22:20:47 -07:00
Greg Hysen
da83f75a13
Readability Improvements
2019-09-05 11:54:16 -07:00
Greg Hysen
c0cb78bb3f
Improving readability of staking
2019-09-05 11:46:50 -07:00
Greg Hysen
eb6ad7d29d
New staking mechanics: delay on entry opposed to exit
2019-09-05 11:45:11 -07:00
Amir Bandeali
dfcc0c6d09
Create _enableAndRefundNonZeroBalance to slightly reduce codesize
2019-09-03 17:52:17 -07:00
Amir Bandeali
3935e661fe
Add more writeLength tests
2019-09-03 17:05:32 -07:00
Amir Bandeali
9a3a302754
Create writeLength function in LibBytes
2019-09-01 18:32:52 -07:00
Amir Bandeali
406a78a11a
Use internal functions in Refundable modifiers
2019-09-01 17:43:18 -07:00
Amir Bandeali
fe01a150f0
Use internal function in onlyOwner, onlyAuthorized, and nonReentrant modifiers
2019-09-01 15:54:16 -07:00
Alex Towle
dba0d8469d
@0x:contracts-exchange
Addressed review feedback
2019-08-29 15:20:52 -07:00
Alex Towle
7f17033ce3
@0x:contracts-exchange
Added protocol fees to fillOrders and matchOrders
2019-08-28 15:05:13 -07:00
Alex Towle
05eb646848
@0x:contracts-utils
Added a Refundable contract
2019-08-28 15:01:30 -07:00
Alex Towle
365cb161cf
@0x:contracts-utils
Added a Refundable contract
2019-08-28 14:51:57 -07:00
mzhu25
c926a586d2
Merge pull request #2103 from 0xProject/feature/contracts-staking/rich-reverts
...
Staking RichErrors and cleanup
2019-08-26 17:32:05 -07:00
Michael Zhu
078b1af04e
Binop -> BinOp
2019-08-26 16:06:31 -07:00
Michael Zhu
98e5b26eb7
refactor SafeMath rich errors and use them in staking libs
2019-08-26 15:49:09 -07:00
Amir Bandeali
793e338dd3
Revert to old ReentrancyGuard implementation
2019-08-25 17:06:52 -07:00
Amir Bandeali
c366a4bd83
Update copyright dates
2019-08-20 12:49:01 -07:00
Alex Towle
22c8a25a26
Merge branch 'development' into 3.0
2019-08-19 11:13:21 -07:00
Amir Bandeali
0e2616f16b
Rename _rrevert to rrevert
2019-08-13 16:19:48 -07:00
Amir Bandeali
3afce213c0
Add rrevert to safeDiv in LibSafeMath
2019-08-13 16:11:57 -07:00
Amir Bandeali
0df360c5e8
Fix compile errors
2019-08-13 16:11:09 -07:00
Amir Bandeali
52dcd998c4
Add library implementation of SafeMath
2019-08-13 16:09:48 -07:00
Amir Bandeali
65f17fd76e
Make LibEIP712 a library
2019-08-13 16:04:33 -07:00
Amir Bandeali
2e97cfa5e5
Remove LibAssetProxyIds and TestLibConstants
2019-08-13 16:04:33 -07:00
Amir Bandeali
2251e5e418
Optimize LibEIP712
2019-08-13 16:00:19 -07:00
Lawrence Forman
d03f13a729
@0x/contracts-utils
: LibMath._safeDiv()
now throws a rich revert when dividing by zero.
2019-08-06 15:30:30 -04:00