Skip to content

Commit

Permalink
tidy naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ephess committed Feb 26, 2024
1 parent 7809000 commit 71e9bb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/auction-handler/FastLaneAuctionHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract contract FastLaneAuctionHandlerEvents {
);

event RelayWithdrawStuckERC20(address indexed receiver, address indexed token, uint256 amount);
event RelayWithdrawExcessBalance(address indexed receiver, uint256 amount);
event RelayProcessingExcessBalance(address indexed receiver, uint256 amount);

event RelayProcessingPaidValidator(address indexed validator, uint256 validatorPayment, address indexed initiator);

Expand Down Expand Up @@ -581,7 +581,7 @@ contract FastLaneAuctionHandler is FastLaneAuctionHandlerEvents {
uint256 excessBalance = totalBalance - validatorsTotal;
if (excessBalance > 0) {
SafeTransferLib.safeTransferETH(excessBalanceRecipient, excessBalance);
emit RelayWithdrawExcessBalance(excessBalanceRecipient, excessBalance);
emit RelayProcessingExcessBalance(excessBalanceRecipient, excessBalance);
}
emit RelayProcessingPaidValidator(_validator, payableBalance, msg.sender);
return payableBalance;
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IFastLaneAuctionHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface IFastLaneAuctionHandler {
);
event RelayValidatorPayeeUpdated(address validator, address payee, address indexed initiator);
event RelayWithdrawStuckERC20(address indexed receiver, address indexed token, uint256 amount);
event RelayWithdrawExcessBalance(address indexed receiver, uint256 amount);
event RelayProcessingExcessBalance(address indexed receiver, uint256 amount);

function clearValidatorPayee() external;
function collectFees() external returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion test/PFL_AuctionHandler.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ contract PFLAuctionHandlerTest is PFLHelper, FastLaneAuctionHandlerEvents, Test
uint256 balanceBefore = VALIDATOR1.balance;
vm.expectEmit(true, true, true, true);
emit RelayProcessingPaidValidator(VALIDATOR1, expectedValidatorPayout, VALIDATOR1);
emit RelayWithdrawExcessBalance(address(0), excessBalance);
emit RelayProcessingExcessBalance(address(0), excessBalance);

vm.prank(VALIDATOR1);

Expand Down

0 comments on commit 71e9bb5

Please sign in to comment.