Michael Zhu
6cfc17de35
MixinStakeStorage unit tests
2019-09-27 13:01:20 -07:00
Alex Towle
b178d025b5
@0x:contracts-staking
Added unit tests for MixinExchangeManager
2019-09-25 15:32:02 -07:00
Michael Zhu
dc06497cae
consolidate MixinVaultCore and ZrxVault
2019-09-24 23:04:17 -07:00
Alex Towle
b62486923f
@0x:contracts-staking
Removed storage assertions from Staking and moved them to a test contract
2019-09-24 18:12:00 -07:00
Amir Bandeali
7f1afb57b0
Consolidate MixinStakingPool, MixinStakingPoolMakers, and MixinStakingPoolModifiers
2019-09-24 13:36:54 -07:00
Amir Bandeali
639026ea66
Delete vaults and fix contract build
2019-09-23 15:29:36 -07:00
Lawrence Forman
eac4520406
@0x/contracts-staking
: Rebase against 3.0
2019-09-22 13:11:42 -04:00
Lawrence Forman
ac7f6aef9e
@0x/contracts-staking
: It compiles!
2019-09-22 12:11:47 -04:00
Lawrence Forman
d548ddac0d
@0x/contracts-staking
: Fixing tests.
2019-09-22 12:07:46 -04:00
Lawrence Forman
06b4d241af
@0x/contracts-staking
: Working on MBF v2
2019-09-22 12:07:11 -04:00
Lawrence Forman
294be37afc
@0x/contracts-staking
: Got the solidity compiling.
2019-09-22 12:06:34 -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
Lawrence Forman
7a33f68138
@0x/contracts-staking
: Extract MixinExchangeFees._cobbDouglas()
into its own library.
2019-09-20 15:56:26 -04:00
Greg Hysen
877abeda63
Removed MixinStakingPoolRewards
2019-09-17 17:37:24 -07:00
Greg Hysen
be1a70c461
refactored the staking vault
2019-09-17 17:36:46 -07:00
Amir Bandeali
336e8bafb4
Remove MixinZrxVault
2019-09-17 15:51:41 -07:00
Amir Bandeali
2eada9db62
Add IStorage interface
2019-09-16 22:49:25 -07:00
Amir Bandeali
e9362439c3
Make some storage vars public and rename internal vars
2019-09-16 22:48:32 -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
Alex Towle
be83789bee
@0x:contracts-staking
Added unit tests for LibProxy
2019-09-11 17:15:47 -07:00
Alex Towle
036c8fe920
@0x:contracts-staking
Fixed style issues in staking RichErrors
2019-09-11 17:11:04 -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
1c2f4906e6
@0x/contracts-exchange
: Remove signature-related IStructs
structs.
...
`@0x/contracts-exchange`: Create some `payProtocolFee()` unit tests to test new staking minimum.
2019-09-10 00:32:30 -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
7d50117903
@0x/contract-staking
: Refactor out contract attach logic so it's shared between the constructor and attachStakingContract()
.
...
`@0x/contract-staking`: Introduce migration tests to test the `init()` pattern.
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
Lawrence Forman
6488f91e6e
@0x/contracts-staking
: Replace MixinDeploymentConstants
with MixinHyperParameters
.
...
`@0x/contracts-staking`: Add `init()` to `Staking` contract.
`@0x/contracts-staking`: Add `_initMixinScheduler()` to `MixinScheduler`.
`@0x/contracts-staking`: Automaticallly call `Staking.init()` in `StakingProxy.attachStakingContract()`.
`@0x/contracts-staking`: Remove `setCobbDouglasAlpha()` in favor of `tune()`.
`@0x/contracts-staking`: Exclude pools with `stake < minimumPoolStake` in `payProtocolFee()`.
2019-09-10 00:30:43 -04: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
87cfe1a8c6
abstracted out delegate calls into their own library
2019-09-05 14:09:13 -07:00
Greg Hysen
d0c6d9cf2d
Read-Only mode in proxy
2019-09-05 14:07:02 -07:00
Greg Hysen
eb6ad7d29d
New staking mechanics: delay on entry opposed to exit
2019-09-05 11:45:11 -07:00
Lawrence Forman
af10f52acf
@0x/contracts-staking
: Rebase with 3.0
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
Lawrence Forman
a09cd03ce6
@0x/contracts-staking
: Remove LibFeeMath
and just put _cobbDouglas()
in MixinExchangeFees
.
...
`@0x/contracts-staking`: Update `LibFixedMath` to existing naming conventions.
`@0x/contracts-staking`: Add `cobbDouglasAlphaNumerator` and `cobbDouglasAlphaDenominator` to `Mixinstorage`.
`@0x/contracts-staking`: Add external `setCobbDouglasAlpha()` function to `MixinExchnageFees`
`@0x/contracts-staking`: Update `_cobbDouglas()` to use the new `LibFixedMath` voodoo.
`@0x/contracts-staking`: In reward calculations, use only delegated stake by pool owner as opposed to both delegated and active stake to compute stake totals.
2019-09-04 20:15:15 -04:00
Amir Bandeali
3a096ff0b4
Remove 64 and 96 bit LibSafeMath contracts
2019-08-27 23:42:42 -07:00
Amir Bandeali
9fb933fd06
Remove MixinOwnable
2019-08-27 23:42:11 -07:00
Amir Bandeali
df039f05c2
Update contracts to use new SafeMath functions
2019-08-27 23:42:11 -07:00
Michael Zhu
cd1fc6a1f0
fix typos
2019-08-26 15:49:09 -07:00
Greg Hysen
d106051ee3
CamelCase for timelocks
2019-08-21 13:04:20 -07:00
Greg Hysen
c939fe2287
moved natspec to above contract definition
2019-08-21 13:04:20 -07:00
Greg Hysen
41b372ffe6
Updates from staking PR review
2019-08-21 13:04:20 -07:00
Greg Hysen
5826825d11
Linter fixes
2019-08-21 13:04:20 -07:00
Greg Hysen
a765e47dca
Got staking contracts working after rebase
2019-08-21 13:04:20 -07:00
Greg Hysen
15c8e06129
Ran contracts:gen
2019-08-21 13:04:19 -07:00
Greg Hysen
470036f6cb
Working on new directory structure
2019-08-21 13:04:18 -07:00
Greg Hysen
e6a33dea0e
Renamed xxxReward... to StakingPoolReward...
2019-08-21 13:04:17 -07:00
Greg Hysen
b36003896f
Renamed LibMath to LibFeeMath
2019-08-21 13:04:15 -07:00