Submitted by Ruhum
RedemptionSender.sol#L43
When sending a msg to the layer zero endpoint you include enough gas for the transaction. If you dont include enough tokens for the gas, the transaction will fail. The RedemptionSender contract allows the user to pass any value they want which might result in them sending not enough. Their transaction will fail.
To know how much you have to send theres the estimateFees() function as described here.
Use the estimateFees() endpoint.
pooltypes (Velodrome) acknowledged
Alex the Entreprenerd (judge) commented:
