fabioberger
86b76a3e75
Introduce publicFacingContracts config in all package.jsons, refactor all imports from src in contracts packages
2019-11-11 15:10:15 +00:00
Greg Hysen
a7f0717afb
Unit tests for MixinCumulativeRewards
2019-11-05 15:32:04 -08:00
Greg Hysen
c123200f38
Unit tests for MixinScheduler
2019-11-04 15:44:46 -08:00
Lawrence Forman
8c4c3d56c6
@0x/contracts-staking
: Create MixinStakingPoolRewards
unit tests.
2019-11-04 10:43:37 -05:00
Greg Hysen
7bfbf0ad3a
Staking Proxy unit tests + Staking Proxy fallback reverts if no staking contract is attached
2019-10-31 18:22:49 -07:00
Lawrence Forman
6f2e79208a
@0x/contracts-staking
: Add MixinStakeBalances
unit tests.
2019-10-29 07:37:06 -04:00
Greg Hysen
9c181f09ba
Removed LibProxy and inlined proxy call in StakingProxy.
2019-10-28 16:42:52 -07:00
Amir Bandeali
33a0c22021
Remove tests related to read-only mode
2019-10-27 11:12:22 -07:00
Lawrence Forman
b1b1162b60
@0x/contracts-staking
: Add MixinStakingPool
unit tests.
2019-10-25 10:55:03 -04:00
Greg Hysen
8e8ea6a3ab
Created IZrxVaultBackstop and updated IStaking.
2019-10-24 15:58:51 -07:00
Lawrence Forman
703e890918
@0x/contracts-staking
: Call StakingProxy.assertValidStorageParams()
in MixinParams.setParams()
2019-10-23 04:40:47 -04:00
Lawrence Forman
b793a31cdd
@0x/contracts-staking
: Create MixinStake
unit tests.
2019-10-16 22:53:36 +10:00
Amir Bandeali
9e41c648dc
Add backstop tests
2019-10-09 17:27:37 +09:00
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
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