Skip to content

Commit

Permalink
Merge pull request #287 from bnb-chain/develop
Browse files Browse the repository at this point in the history
fix: wrong refund address in `updateValidatorSet` (#286)
  • Loading branch information
unclezoro authored May 5, 2023
2 parents d443f26 + 25ab025 commit d647bfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/BSCValidatorSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ contract BSCValidatorSet is IBSCValidatorSet, System, IParamSubscriber, IApplica
crossAddrs[crossSize] = currentValidatorSet[i].BBCFeeAddress;
uint256 value = currentValidatorSet[i].incoming - currentValidatorSet[i].incoming % PRECISION;
crossAmounts[crossSize] = value.sub(relayFee);
crossRefundAddrs[crossSize] = currentValidatorSet[i].BBCFeeAddress;
crossRefundAddrs[crossSize] = currentValidatorSet[i].feeAddress;
crossIndexes[crossSize] = i;
crossTotal = crossTotal.add(value);
++crossSize;
Expand Down
2 changes: 1 addition & 1 deletion contracts/BSCValidatorSet.template
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ contract BSCValidatorSet is IBSCValidatorSet, System, IParamSubscriber, IApplica
crossAddrs[crossSize] = currentValidatorSet[i].BBCFeeAddress;
uint256 value = currentValidatorSet[i].incoming - currentValidatorSet[i].incoming % PRECISION;
crossAmounts[crossSize] = value.sub(relayFee);
crossRefundAddrs[crossSize] = currentValidatorSet[i].BBCFeeAddress;
crossRefundAddrs[crossSize] = currentValidatorSet[i].feeAddress;
crossIndexes[crossSize] = i;
crossTotal = crossTotal.add(value);
++crossSize;
Expand Down

0 comments on commit d647bfe

Please sign in to comment.