Some functionalities of LayerZero are not available while sending mint message.
When users call claim()
function of Distribution.sol
to claim MOR
tokens, the claim function calls sendMintMessage()
of L1sender.sol
. It then calls .send()
of LayerZeroEndpoint to send a message.
But while calling .send
, some parameters are hardcoded to zero or null.
The parameters _zroPaymentAddress
and _adapterParams
are set to address(0x0) and bytes("") respectively. But, as per the LayerZero Integration_checklist this should be avoided and these parameters _zroPaymentAddress
and _adapterParams
values should be passed as a parameter instead.
This doesn't follow the LayerZero integration checklist and also hardcoding _adapterParams
to bytes("") prevents from receiving airdropped native gas from the relayer on destination and hardcoding _zroPaymentAddress
to address(0x0) prevents the the ZRO token holder to pay for the transaction
Manual Analysis
Values of _zroPaymentAddress
and _adapterParams
should be passed as a parameter instead.
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.