- 
                Notifications
    You must be signed in to change notification settings 
- Fork 36
Closed
Description
I noticed that bridgeLayerZeroOFT in LayerZeroOFT.sol:21 uses selfbalance() as msg.value when calling the OFT contract:
call(gas(), oft, selfbalance(), ...)
But the integration test expects the exact quoted fee to be sent:
vm.expectCall(oft, fee, abi.encodeCall(IOFT.send, ...));
Is this intentional? If the BridgeSettler holds any residual ETH from previous actions, wouldn't the entire balance get sent as the fee instead of just the quoted amount?
Just want to understand if there's a guarantee that selfbalance() always equals messagingFee.nativeFee at call time, or if this might be an issue.
Metadata
Metadata
Assignees
Labels
No labels