@0x/contracts-staking: Fix solidity linter errors.
This commit is contained in:
committed by
Lawrence Forman
parent
294be37afc
commit
712b2569e6
@@ -144,7 +144,6 @@ contract MixinExchangeFees is
|
||||
view
|
||||
returns (uint256 feesCollected)
|
||||
{
|
||||
uint256 currentEpoch = getCurrentEpoch();
|
||||
// Look up the pool for this epoch. The epoch index is `currentEpoch % 2`
|
||||
// because we only need to remember state in the current epoch and the
|
||||
// epoch prior.
|
||||
|
||||
@@ -131,9 +131,7 @@ contract MixinFinalizer is
|
||||
if (pool.feesCollected != 0) {
|
||||
// Credit the pool with rewards.
|
||||
// We will transfer the total rewards to the vault at the end.
|
||||
// Note that we credit the pool the rewards at the current epoch
|
||||
// even though they were earned in the prior epoch.
|
||||
uint256 reward = _creditRewardToPool(epoch, poolId, pool);
|
||||
uint256 reward = _creditRewardToPool(poolId, pool);
|
||||
rewardsPaid = rewardsPaid.safeAdd(reward);
|
||||
// Clear the pool state so we don't finalize it again,
|
||||
// and to recoup some gas.
|
||||
@@ -226,13 +224,11 @@ contract MixinFinalizer is
|
||||
}
|
||||
|
||||
/// @dev Computes the reward owed to a pool during finalization and
|
||||
/// credits it in the RewardVault.
|
||||
/// @param epoch The epoch being finalized.
|
||||
/// credits it to that pool for the CURRENT epoch.
|
||||
/// @param poolId The pool's ID.
|
||||
/// @param pool The pool.
|
||||
/// @return rewards Amount of rewards for this pool.
|
||||
function _creditRewardToPool(
|
||||
uint256 epoch,
|
||||
bytes32 poolId,
|
||||
IStructs.ActivePool memory pool
|
||||
)
|
||||
|
||||
@@ -84,9 +84,6 @@ contract MixinScheduler is
|
||||
uint256 nextEpoch = currentEpoch.safeAdd(1);
|
||||
currentEpoch = nextEpoch;
|
||||
currentEpochStartTimeInSeconds = currentBlockTimestamp;
|
||||
uint256 earliestEndTimeInSeconds = currentEpochStartTimeInSeconds.safeAdd(
|
||||
epochDurationInSeconds
|
||||
);
|
||||
}
|
||||
|
||||
/// @dev Assert scheduler state before initializing it.
|
||||
|
||||
Reference in New Issue
Block a user