Skip to content

Commit

Permalink
fix bug where reward distribution dispursement is sent
Browse files Browse the repository at this point in the history
should be an and not an or
  • Loading branch information
dbeal-eth committed Oct 13, 2023
1 parent 3fe087b commit bb84b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/RewardsDistribution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ contract RewardsDistribution is Owned, IRewardsDistribution {

// Iterate the array of distributions sending the configured amounts
for (uint i = 0; i < distributions.length; i++) {
if (distributions[i].destination != address(0) || distributions[i].amount != 0) {
if (distributions[i].destination != address(0) && distributions[i].amount != 0) {
remainder = remainder.sub(distributions[i].amount);

// Transfer the SNX
Expand Down

0 comments on commit bb84b67

Please sign in to comment.