@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.
This commit is contained in:
committed by
Lawrence Forman
parent
c1fc454d19
commit
a09cd03ce6
@@ -14,8 +14,7 @@ import * as IVaultCore from '../generated-artifacts/IVaultCore.json';
|
||||
import * as IWallet from '../generated-artifacts/IWallet.json';
|
||||
import * as IZrxVault from '../generated-artifacts/IZrxVault.json';
|
||||
import * as LibEIP712Hash from '../generated-artifacts/LibEIP712Hash.json';
|
||||
import * as LibFeeMath from '../generated-artifacts/LibFeeMath.json';
|
||||
import * as LibFeeMathTest from '../generated-artifacts/LibFeeMathTest.json';
|
||||
import * as LibFixedMath from '../generated-artifacts/LibFixedMath.json';
|
||||
import * as LibRewardMath from '../generated-artifacts/LibRewardMath.json';
|
||||
import * as LibSafeDowncast from '../generated-artifacts/LibSafeDowncast.json';
|
||||
import * as LibSignatureValidator from '../generated-artifacts/LibSignatureValidator.json';
|
||||
@@ -29,8 +28,8 @@ import * as MixinScheduler from '../generated-artifacts/MixinScheduler.json';
|
||||
import * as MixinStake from '../generated-artifacts/MixinStake.json';
|
||||
import * as MixinStakeBalances from '../generated-artifacts/MixinStakeBalances.json';
|
||||
import * as MixinStakingPool from '../generated-artifacts/MixinStakingPool.json';
|
||||
import * as MixinStakingPoolRewards from '../generated-artifacts/MixinStakingPoolRewards.json';
|
||||
import * as MixinStakingPoolRewardVault from '../generated-artifacts/MixinStakingPoolRewardVault.json';
|
||||
import * as MixinStakingPoolRewards from '../generated-artifacts/MixinStakingPoolRewards.json';
|
||||
import * as MixinStorage from '../generated-artifacts/MixinStorage.json';
|
||||
import * as MixinTimeLockedStake from '../generated-artifacts/MixinTimeLockedStake.json';
|
||||
import * as MixinVaultCore from '../generated-artifacts/MixinVaultCore.json';
|
||||
@@ -57,7 +56,7 @@ export const artifacts = {
|
||||
IWallet: IWallet as ContractArtifact,
|
||||
IZrxVault: IZrxVault as ContractArtifact,
|
||||
LibEIP712Hash: LibEIP712Hash as ContractArtifact,
|
||||
LibFeeMath: LibFeeMath as ContractArtifact,
|
||||
LibFixedMath: LibFixedMath as ContractArtifact,
|
||||
LibRewardMath: LibRewardMath as ContractArtifact,
|
||||
LibSafeDowncast: LibSafeDowncast as ContractArtifact,
|
||||
LibSignatureValidator: LibSignatureValidator as ContractArtifact,
|
||||
|
Reference in New Issue
Block a user