SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Summary
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Root Cause
lzsend() passes address.this as refund address in case the send call reverts, however, in this case the address.this would be the SolCOnnector contract but no way to withdraw in this contract causing fees refunded to be stucked.
Rural Frost Skunk
Medium
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Summary
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Root Cause
lzsend() passes
address.this
as refund address in case the send call reverts, however, in this case the address.this would be the SolCOnnector contract but no way to withdraw in this contract causing fees refunded to be stucked.Internal pre-conditions
None
External pre-conditions
Fees refunded
Attack Path
n/a
Impact
will cause fees refunded to be stucked
PoC
https://github.com/sherlock-audit/2024-09-orderly-network-solana-contract/blob/main/sol-cc/contracts/SolConnector.sol#L97
Mitigation
Recommendation: Consider passing in an admin address that handles this instead of address.this or implement a way for withdrawal in the contract