Amir Bandeali
9e41c648dc
Add backstop tests
2019-10-09 17:27:37 +09:00
Amir Bandeali
681e6eab7a
Cleanup language used in comments and variable names
2019-10-09 17:15:25 +09:00
Amir Bandeali
701b203c58
Fix tests
2019-10-09 17:15:25 +09:00
Amir Bandeali
aa0a1bb54d
Fix tests to no longer utilize active stake
2019-10-09 17:15:25 +09:00
Amir Bandeali
43399a9ad9
Refactor tests to use new getters
2019-10-09 17:15:25 +09:00
Amir Bandeali
2ef546210d
Update tests to reflect new withdrawal logic
2019-10-09 17:15:25 +09:00
Amir Bandeali
f8ac986a0f
Remove unused struct field
2019-10-09 17:14:28 +09:00
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
745da8e363
Fix tests
2019-09-30 17:36:37 -07:00
Amir Bandeali
a5692690dc
Fix protocol fees tests
2019-09-30 09:37:57 -07:00
Michael Zhu
6cfc17de35
MixinStakeStorage unit tests
2019-09-27 13:01:20 -07:00
Lawrence Forman
96c8da9fdd
Merge pull request #2207 from 0xProject/fix/3.0/improve-readability
...
Improve readability, fix `_trySetCumulativeReward` logic
2019-09-25 17:14:06 -04:00
Amir Bandeali
4440075425
Inline _forceSetMostRecentCumulativeRewardEpoch
2019-09-25 11:03:26 -07:00
Michael Zhu
dc06497cae
consolidate MixinVaultCore and ZrxVault
2019-09-24 23:04:17 -07:00
Amir Bandeali
6d7bf12ade
Make wethAssetProxy and zrxVault deployment constants
2019-09-24 16:19:53 -07:00
Amir Bandeali
0c5f0271c7
Merge pull request #2190 from 0xProject/feat/3.0/consolidate-pool-mixins
...
Consolidate staking pool mixins
2019-09-24 14:00:28 -07:00
Amir Bandeali
a7aa7feff4
Remove getAvailableRewardsBalance public function, make wethReservedForPoolRewards public
2019-09-24 13:36:54 -07:00
Greg Hysen
5b595dd080
Remove reference counting for cumulative rewards
2019-09-24 13:32:20 -07:00
Amir Bandeali
abb2b46ed3
Remove vaults from variable names and comments
2019-09-23 17:37:04 -07:00
Amir Bandeali
ef645e601c
Fix all tests except for reward tests (skipped)
2019-09-23 15:30:55 -07:00
Lawrence Forman
3883297991
@0x/contracts-staking
: Remove getTotalBalance()
function.
...
`@0x/contracts-staking`: Fix linter errors.
2019-09-23 14:21:18 -04:00
Lawrence Forman
eac4520406
@0x/contracts-staking
: Rebase against 3.0
2019-09-22 13:11:42 -04:00
Lawrence Forman
c72a15b488
@0x/contracts-staking
: All tests back up and running.
2019-09-22 12:20:42 -04:00
Lawrence Forman
6a29654d7d
@0x/contracts-staking
: Updating tests and making the contracts testable.
2019-09-22 12:20:04 -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
86106713dd
@0x/contracts-staking
: Gag! All tests passing?
2019-09-22 12:13:24 -04:00
Lawrence Forman
b43fa88606
@0x/contracts-staking
: All tests but rewards_test
working.
2019-09-22 12:13:24 -04:00
Lawrence Forman
d33080cf08
@0x/contracts-staking
: Finalizer tests passing.
2019-09-22 12:11:47 -04:00
Lawrence Forman
993f05d5ac
@0x/contracts-staking
: Fixing tests.
2019-09-22 12:11:47 -04:00
Lawrence Forman
7ef3c12722
@0x/contracts-staking
: Well, it almost worked.
2019-09-22 12:10:41 -04:00
Lawrence Forman
d548ddac0d
@0x/contracts-staking
: Fixing tests.
2019-09-22 12:07:46 -04:00
Amir Bandeali
522994262d
Update tests
2019-09-20 16:55:30 -07:00
Michael Zhu
49d223f344
MixinVaultCore unit tests
2019-09-20 16:02:54 -07:00
Michael Zhu
f7462c9f2b
keep track of globalStakeByStatus + tests
2019-09-18 10:09:45 -07:00
Greg Hysen
768387fea9
Rebased and addressed PR comments
2019-09-17 17:37:12 -07:00
Greg Hysen
be1a70c461
refactored the staking vault
2019-09-17 17:36:46 -07:00
Amir Bandeali
94738444de
Fix build an tests
2019-09-17 09:41:27 -07:00
Amir Bandeali
de567da846
Fix typo across files
2019-09-17 08:48:14 -07:00
Amir Bandeali
6641af2a58
Fix build
2019-09-17 08:48:14 -07:00
Greg Hysen
e1d51bae73
Tests are passing and ran linter
2019-09-16 16:02:50 -07:00
Greg Hysen
f9163ccc01
Improved readability of API for cumulative rewards
2019-09-16 15:18:08 -07:00
Greg Hysen
12f0797ace
Reference counting for rewards, plus unit tests for cumulative rewards.
2019-09-14 00:04:52 -07:00
mzhu25
c9de423fb8
LibSafeDowncast unit tests ( #2143 )
2019-09-13 16:09:46 -07: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
51b460d432
@0x/contracts-staking
: Rebase against 3.0
2019-09-10 00:32:43 -04:00
Lawrence Forman
25787ea806
@0x/contracts-staking
: Rename MixinHyperParameters
-> MixinParams
.
...
`@0x/contracts-staking`: Move params storage variables into `MixinStorage`.
`@0x/contracts-staking`: Add storage layout tests for new state vars.
`@0x/contracts-staking`: Add more migration tests.
`@0x/contracts-staking`: Add `_initMixinParams()` function that sets up `MixinParams` state.
2019-09-10 00:31:50 -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
Lawrence Forman
76c5517739
@0x/contract-staking
: Update CHANGELOG.
...
`@0x/contract-staking`: Add `DEFAULT_HYPER_PARAMETERS` to test constants.
`@0x/contract-staking`: Appease linter gods.
`@0x/contract-staking`: Remove `setCobbDouglasAlpha()` tests.
`@0x/contract-staking`: Add `tune()` tests.
2019-09-10 00:31:24 -04: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