Updated changelog and ran linter
This commit is contained in:
@@ -146,14 +146,4 @@ interface IStakingEvents {
|
||||
uint32 oldOperatorShare,
|
||||
uint32 newOperatorShare
|
||||
);
|
||||
|
||||
/// @dev Emitted when an operator reward is transferred to the Eth vault.
|
||||
/// @param amount The amount in ETH withdrawn.
|
||||
/// @param operator of the pool.
|
||||
/// @param poolId The pool the reward was deposited for.
|
||||
event OperatorRewardTransferredToEthVault(
|
||||
bytes32 poolId,
|
||||
address operator,
|
||||
uint256 amount
|
||||
);
|
||||
}
|
||||
|
@@ -97,7 +97,7 @@ interface IStructs {
|
||||
}
|
||||
|
||||
/// @dev Holds the metadata for a staking pool.
|
||||
/// @param initialzed True iff the balance struct is initialized.
|
||||
/// @param initialized True iff the balance struct is initialized.
|
||||
/// @param operator of the pool.
|
||||
/// @param operatorShare Fraction of the total balance owned by the operator, in ppm.
|
||||
/// @param numberOfMakers Number of makers in the pool.
|
||||
|
@@ -113,6 +113,8 @@ contract MixinStakingPool is
|
||||
return nextPoolId;
|
||||
}
|
||||
|
||||
/// @dev Returns a staking pool
|
||||
/// @param poolId Unique id of pool.
|
||||
function getStakingPool(bytes32 poolId)
|
||||
public
|
||||
view
|
||||
@@ -132,6 +134,8 @@ contract MixinStakingPool is
|
||||
return bytes32(uint256(poolId).safeAdd(POOL_ID_INCREMENT_AMOUNT));
|
||||
}
|
||||
|
||||
/// @dev Reverts iff a staking pool does not exist.
|
||||
/// @param poolId Unique id of pool.
|
||||
function _assertStakingPoolExists(bytes32 poolId)
|
||||
internal
|
||||
view
|
||||
@@ -148,6 +152,10 @@ contract MixinStakingPool is
|
||||
}
|
||||
}
|
||||
|
||||
/// @dev Reverts iff the new operator share is invalid.
|
||||
/// @param poolId Unique id of pool.
|
||||
/// @param currentOperatorShare Current operator share.
|
||||
/// @param newOperatorShare New operator share.
|
||||
function _assertNewOperatorShare(
|
||||
bytes32 poolId,
|
||||
uint32 currentOperatorShare,
|
||||
|
@@ -32,6 +32,8 @@ contract MixinStakingPoolRewards is
|
||||
|
||||
/// @dev Syncs rewards for a delegator. This includes transferring rewards from
|
||||
/// the Reward Vault to the Eth Vault, and adding/removing dependencies on cumulative rewards.
|
||||
/// This is used by a delegator when they want to sync their rewards without delegating/undelegating.
|
||||
/// It's effectively the same as delegating zero stake.
|
||||
/// @param poolId Unique id of pool.
|
||||
function syncDelegatorRewards(bytes32 poolId)
|
||||
external
|
||||
|
Reference in New Issue
Block a user