L-1: `BridgeRouteReceiver` failed ETH refunds lack recipient-level accounting
Description:
BridgeRouteReceiver._refundExcessEth() performs a raw call to fallbackRecipient and discards the return value.
The refund is invoked from both the success path and the fallback path. In both cases the route emits a high-level event afterwards:
BridgeRouteExecuted(fallbackRecipient, tokenIn, bridgeToken, amountIn, bridgeAmount, bridgeContract)BridgeRouteFallback(fallbackRecipient, token, fallbackAmount)
Neither event carries any field describing the outcome of the native refund. When fallbackRecipient is a contract without a payable receive() / fallback(), the refund silently fails and the leftover native value stays on BridgeRouteReceiver. From the outside the route looks fully successful because only the executed/fallback event is emitted; there is no signal that distinguishes "refund delivered" from "refund stuck on contract".
Because no refund-specific event is emitted, operators monitoring BridgeRouteReceiver cannot detect or reconcile silently failed refunds from emitted events alone, and have to infer them by replaying transactions and diffing msg.value against bridge consumption.
Impact:
Low. The native ETH is not permanently lost because the admin can recover it, but users cannot claim their failed refunds and the admin has no accounting of how much is owed to each recipient. If multiple refunds fail, or if the receiver also holds hub-native fee float, correct reconciliation requires off-chain analysis and trusted manual redistribution.
Recommendation:
Emit an explicit event when the refund call fails:
event RefundFailed(address indexed recipient, uint256 amount);
function _refundExcessEth(
address recipient,
uint256 baseBalance
) internal {
uint256 currentBalance = address(this).balance;
if (currentBalance <= baseBalance) return;
uint256 amount = currentBalance - baseBalance;
(bool success,) = recipient.call{ value: amount }("");
if (!success) emit RefundFailed(recipient, amount);
}
This keeps the current "do not revert the route on refund failure" semantics but makes the failure auditable: operators can monitor RefundFailed and attribute the stuck amount to a specific recipient.
Developer Response:
Fixed in 562a0b3a. _refundExcessEth now emits RefundFailed(recipient, amount) when the call fails.