Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(evm): C01 - Address incorrect use of relayerRefund over msg.sender in claimRelayerRefund function #826

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ abstract contract SpokePool is
function claimRelayerRefund(bytes32 l2TokenAddress, bytes32 refundAddress) public {
uint256 refund = relayerRefund[l2TokenAddress.toAddress()][msg.sender];
if (refund == 0) revert NoRelayerRefundToClaim();
relayerRefund[l2TokenAddress.toAddress()][refundAddress.toAddress()] = 0;
relayerRefund[l2TokenAddress.toAddress()][msg.sender] = 0;
IERC20Upgradeable(l2TokenAddress.toAddress()).safeTransfer(refundAddress.toAddress(), refund);

emit ClaimedRelayerRefund(l2TokenAddress, refundAddress, refund, msg.sender);
Expand Down
Loading