Skip to content

Commit

Permalink
Merge pull request #69 from binance-chain/change-distribution-trigger
Browse files Browse the repository at this point in the history
R4R: Change distribution trigger
  • Loading branch information
unclezoro authored Aug 10, 2020
2 parents 402ca7f + e721521 commit 823b953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/RelayerIncentivize.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contract RelayerIncentivize is IRelayerIncentivize, System, IParamSubscriber {
}
packageRelayersSubmitCount[packageRelayer]++;

if (countInRound==ROUND_SIZE) {
if (countInRound>=ROUND_SIZE) {
emit distributeCollectedReward(roundSequence, collectedRewardForHeaderRelayer, collectedRewardForTransferRelayer);

uint256 callerHeaderReward = distributeHeaderRelayerReward();
Expand Down
2 changes: 1 addition & 1 deletion contracts/RelayerIncentivize.template
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contract RelayerIncentivize is IRelayerIncentivize, System, IParamSubscriber {
}
packageRelayersSubmitCount[packageRelayer]++;

if (countInRound==ROUND_SIZE) {
if (countInRound>=ROUND_SIZE) {
emit distributeCollectedReward(roundSequence, collectedRewardForHeaderRelayer, collectedRewardForTransferRelayer);

uint256 callerHeaderReward = distributeHeaderRelayerReward();
Expand Down

0 comments on commit 823b953

Please sign in to comment.