Alex Towle
a6af3744e2
@0x:contracts-staking
Improved the test coverage of MixinStakingPool
2019-09-24 16:49:34 -07:00
Amir Bandeali
1acd8d9577
Make _poolJoinedByMakerAddress internal
2019-09-24 13:36:54 -07:00
Amir Bandeali
8aa302f6fc
Update OnlyCallableByPoolOperatorOrMakerError params and address PR feedback
2019-09-24 13:36:54 -07:00
Amir Bandeali
50b02a4a55
Add more pool tests
2019-09-24 13:36:54 -07:00
Amir Bandeali
7f1afb57b0
Consolidate MixinStakingPool, MixinStakingPoolMakers, and MixinStakingPoolModifiers
2019-09-24 13:36:54 -07:00
Greg Hysen
768387fea9
Rebased and addressed PR comments
2019-09-17 17:37:12 -07:00
Amir Bandeali
fd4141e1f3
Fix build
2019-09-16 22:50:11 -07:00
Lawrence Forman
f45ee486e9
@0x/contracts-staking
: Rebase against 3.0 AGAIN AGAIN AGAIN AGAIN AGAIN
2019-09-10 00:45:20 -04:00
Lawrence Forman
2ed39cd18d
@0x/contracts-staking
: Rename Tuned
event to ParamsChanged
.
...
`@0x/contracts-staking`: Merge `exchange_fees` unit tests into `protocol_fees` unit tests.
`@0x/contracts-staking`: Remove `ProtocolFeeActor` and any use of it.
`@0x/contracts-staking`: Remove unused constants.
`@0x/contracts-staking`: Move WETH assertion constructor into `MixinDeploymentConstants`.
`@0x/contracts-staking`: Add more unit tests.
2019-09-10 00:32:43 -04:00
Lawrence Forman
89bd42de04
@0x/contracts-staking
: Fix linter errors.
2019-09-10 00:32:43 -04:00
Lawrence Forman
51b460d432
@0x/contracts-staking
: Rebase against 3.0
2019-09-10 00:32:43 -04:00
Lawrence Forman
0cc94bcf19
@0x/contracts-staking
: Add maximumMakersInPool
hyper parameter.
...
`@0x/contracts-staking`: Add assertions against `maximumMakersInPool` and `rewardDelegatedStakeWeight`.
`@0x/contracts-staking`: Rebase against 3.0 (again).
2019-09-10 00:31:24 -04:00
Michael Zhu
6f1f226ed0
Use storage pointer to update Pool structs, test decreaseStakingPoolOperatorShare where newOperatorShare == oldOperatorShare
2019-09-09 17:11:00 -07:00
Michael Zhu
1d6406bbd6
move operator from staking logic to vault, allow operator to decrease operatorShare
2019-09-09 16:29:19 -07:00
Michael Zhu
6d83b2676e
rip staking_wrapper.ts, use wrapped staking proxy pattern instead
2019-09-09 15:47:15 -07:00
Alex Towle
2fdd4e9760
@0x:contracts-staking
Addressed some review comments
2019-09-09 10:25:19 -07:00
Michael Zhu
86a28f0d19
New logic for makers joining pools
2019-09-06 16:09:35 -07:00
Lawrence Forman
9bbbaadcf8
@0x/conracts-staking
: Fix idiotic linter error.
2019-09-04 20:18:55 -04:00
Lawrence Forman
19f44fac1e
@0x/contracts-staking
: Reformulate cobb-douglas to be more efficient.
...
`@0x/contracts-staking`: Remove some unecessary asserts.
`@0x/contracts-staking`: Fix some broken test assertions.
`@0x/contracts-staking`: Generate better random values in tests.
`@0x/contracts-staking`: Rename `PPM_ONE` constant to `PPM_DENOMINATOR`.
`@0x/contracts-staking`: Minor solidity code improvements.
`@0x/contracts-staking`: Use more constants from `@0x/contracts-test-utils` in tests.
2019-09-04 20:18:55 -04:00
Lawrence Forman
8d5e28f099
@0x/contracts-staking
: Change the way operator stake is computed.
...
`@0x/contracts-staking`: Denominate pool operator shares in parts-per-million.
`@0x/contracts-staking`: Update tests for new stake computation and higher precision math.
`@0x/contracts-staking`: Add `setCobbDouglasAlpha()` function.
2019-09-04 20:18:55 -04:00
Michael Zhu
6827ebfb78
blockchainTests.only -> blockchainTests
2019-08-26 15:58:31 -07:00
Michael Zhu
2c15b3f9bd
remove staking RevertReasons from TS types, ExchangeAlreadyRegisteredError -> ExchangeAddressAlreadyRegisteredError
2019-08-26 15:49:09 -07:00
Michael Zhu
0d5e037081
use mocha extensions in staking tests
2019-08-26 15:49:09 -07:00
Michael Zhu
dbda3a04b2
update tests to use RichErrors
2019-08-26 15:49:09 -07:00
Greg Hysen
cd14d1ef0f
ran prettier
2019-08-21 13:04:19 -07:00
Greg Hysen
44c44a2b9c
Some renaming pool -> staking pool for readability
2019-08-21 13:04:18 -07:00
Greg Hysen
ab3246cc71
Cleaned up staking pool mixin
2019-08-21 13:04:17 -07:00
Greg Hysen
5147b6e699
fixing linter errors
2019-08-21 13:04:16 -07:00
Greg Hysen
9294bf40a7
Ran yarn fix
2019-08-21 13:04:16 -07:00
Greg Hysen
a02f96c913
ran prettier
2019-08-21 13:04:16 -07:00
Greg Hysen
8a2df9cd1f
Working on simulation to make it easier to follow the end-to-end tests. Mostly working.
2019-08-21 13:04:16 -07:00
Greg Hysen
74d9891e06
actors for maker / pool operator + comprehensive test cases
2019-08-21 13:04:16 -07:00
Greg Hysen
e0ff859e0d
Separated test files out for readability
2019-08-21 13:04:15 -07:00