Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
@0x/contracts-staking: Keep fees not associated with a pool.
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Sep 4, 2019
1 parent 15b4dda commit 9192a2a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/staking/contracts/src/fees/MixinExchangeFees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,12 @@ contract MixinExchangeFees is
// There is a pool associated with `makerAddress`.
// TODO(dorothy-zbornak): When we have epoch locks on delegating, we could
// preclude pools that have no delegated stake, since they will never have
// stake in this epoch.
// stake in this epoch and are therefore not entitled to rewards.
uint256 _feesCollectedThisEpoch = protocolFeesThisEpochByPool[poolId];
protocolFeesThisEpochByPool[poolId] = _feesCollectedThisEpoch.safeAdd(amount);
if (_feesCollectedThisEpoch == 0) {
activePoolsThisEpoch.push(poolId);
}
} else {
// No pool associated with `makerAddress`. Refund the fee.
msg.sender.transfer(amount);
}
}

Expand Down

0 comments on commit 9192a2a

Please sign in to comment.