The fees must be estimated prior to this function call to avoid transaction failures.
Clarify further from this issue: https://github.com/code-423n4/2022-05-velodrome-findings/issues/80
When sending a msg to the layer zero endpoint one must include enough gas for the transaction. The transaction will fail if enough gas is not provided. The sendMintMessage
function contract allows the user to pass any value they want which might result in them sending not enough. Their transaction could fail.
To know how much you have to send there's the estimateFees()
function as described here
Manual
Use the estimateFees()
endpoint before LayerZero call.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.