@0x/contracts-staking: Fix solidity linter errors.

This commit is contained in:
Lawrence Forman
2019-09-12 17:40:20 -04:00
committed by Lawrence Forman
parent 294be37afc
commit 712b2569e6
3 changed files with 2 additions and 10 deletions

View File

@@ -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.

View File

@@ -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
)

View File

@@ -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.