Greg Hysen
a0f5a8b64b
Simplify Makers Interactions with Staking Pools.
...
- No longer an upper limit on how many makers can be in a pool.
- No longer a handshake for a maker to join a pool.
- No longer any special powers given to makers.
- Pool Id starts at 1 and increments by 1.
2019-10-08 06:00:24 +09:00
Amir Bandeali
57f5b12e24
Cleanup rich reverts
2019-09-24 18:13:37 -07:00
Amir Bandeali
e5aaf68277
Use uin8 instead of uint256 for status
2019-09-24 18:13:37 -07:00
Amir Bandeali
6d7bf12ade
Make wethAssetProxy and zrxVault deployment constants
2019-09-24 16:19:53 -07:00
Amir Bandeali
8aa302f6fc
Update OnlyCallableByPoolOperatorOrMakerError params and address PR feedback
2019-09-24 13:36:54 -07:00
Amir Bandeali
7f1afb57b0
Consolidate MixinStakingPool, MixinStakingPoolMakers, and MixinStakingPoolModifiers
2019-09-24 13:36:54 -07:00
Amir Bandeali
ef645e601c
Fix all tests except for reward tests (skipped)
2019-09-23 15:30:55 -07:00
Lawrence Forman
e4126189df
@0x/order-utils
: Fix staking error codes after rebase.
2019-09-22 13:09:44 -04:00
Lawrence Forman
c72a15b488
@0x/contracts-staking
: All tests back up and running.
2019-09-22 12:20:42 -04:00
Lawrence Forman
ac7f6aef9e
@0x/contracts-staking
: It compiles!
2019-09-22 12:11:47 -04:00
Lawrence Forman
38b94ec5f8
@0x/order-utils
: Add InvalidMinimumPoolStake
to StakingRevertErrors.InvalidParamValueErrorCode
.
2019-09-22 12:08:14 -04:00
Lawrence Forman
b4929df1e6
@0x/order-utils
: Ran prettier.
2019-09-22 12:07:46 -04:00
Lawrence Forman
ada1de429c
@0x/order-utils
: Add PreviousEpochNotFinalizedError
to StakingRevertErrors
.
2019-09-22 12:07:46 -04:00
Amir Bandeali
f681357eeb
Add missing error codes to InvalidParamValueErrorCode
2019-09-20 16:53:58 -07:00
Michael Zhu
7cc1304eca
Revert when attempting to delegate to/undelegate from a pool that doesn't exist
2019-09-17 10:29:57 -07:00
Greg Hysen
43d1d0b217
more explicit sanity checks for computing balance in interval (previously all failed with div-by-zero)
...
typos
2019-09-16 18:57:21 -07:00
Alex Towle
036c8fe920
@0x:contracts-staking
Fixed style issues in staking RichErrors
2019-09-11 17:11:04 -07:00
Lawrence Forman
34acd71835
@0x/order-utils
: Rename InvalidParamValue
RevertError
to InvalidParamValueError
.
2019-09-10 15:31:19 -04:00
Lawrence Forman
3b28c9d5a7
@0x/order-utils
: Rename OperatorShareMustBeBetween0And100
to OperatorShareTooLarge
.
2019-09-10 00:39:45 -04:00
Lawrence Forman
d8d791e4f0
@0x/order-utils
: Remove redundant InvalidStakeStatusError
in registry.
2019-09-10 00:32:43 -04:00
Lawrence Forman
2a21d87193
@0x-order-utils
: Rename InvalidTuningValue
-> InvalidParamValue
.
2019-09-10 00:31:24 -04:00
Lawrence Forman
7cee17887a
@0x/order-utils
: Add MxinParamsAlreadyInitialized
to StakingRevertErrors.InitializationErrorCode
.
2019-09-10 00:31:24 -04:00
Lawrence Forman
a554ae904f
@0x/order-utils
: Add InvalidRewardDelegatedStakeWeight
and InvalidMaximumMakersInPool
to InvalidTuningValueErrorCode
.
2019-09-10 00:31:24 -04:00
Lawrence Forman
b9d243e70e
@0x/order-utils
: Add InitializationError
, InvalidTuningValue
to StakingRevertErrors
.
2019-09-10 00:31:24 -04:00
Michael Zhu
1d6406bbd6
move operator from staking logic to vault, allow operator to decrease operatorShare
2019-09-09 16:29:19 -07:00
Alex Towle
2fdd4e9760
@0x:contracts-staking
Addressed some review comments
2019-09-09 10:25:19 -07:00
Alex Towle
30fee43928
@0x:contracts-staking
Added tests for protocol fees
2019-09-07 13:44:04 -07:00
Michael Zhu
86a28f0d19
New logic for makers joining pools
2019-09-06 16:09:35 -07:00
Greg Hysen
24e62feadf
Fixed linter
2019-09-05 12:27:44 -07:00
Greg Hysen
da83f75a13
Readability Improvements
2019-09-05 11:54:16 -07:00
Greg Hysen
7e5e2241cb
Rich Reverts in new staking mechanics
2019-09-05 11:50:22 -07:00
Lawrence Forman
cb1dc92594
@0x/order-utils
: Rename OperatorShareMustBeBetween0And100Error
RevertError
type to InvalidPoolOperatorShareError
.
2019-09-04 20:18:55 -04:00
Lawrence Forman
a1a5bdce78
@0x/order-utils
: Prettier.
2019-09-04 20:18:55 -04:00
Lawrence Forman
7b5e3dab17
@0x/contracts-staking
: Add rich reverts.
...
`@0x/utils`: Add `LibFixedMath` `RevertError` types.
`@0x/order-utils`: Add `InvalidCobbDouglasAlphaerror` `RevertError` type.
2019-09-04 20:15:15 -04:00
Michael Zhu
9b957524a5
replace abi.encodeWithSelector calls with bytes constant + other nits
2019-08-26 16:58:56 -07:00
Michael Zhu
2c15b3f9bd
remove staking RevertReasons from TS types, ExchangeAlreadyRegisteredError -> ExchangeAddressAlreadyRegisteredError
2019-08-26 15:49:09 -07:00
Michael Zhu
52ef745f7c
run codegen script
2019-08-26 15:49:08 -07:00