abi encoding is done without address conversion in layerzero quote function
The teleport
function of TempleTeleporter
sends abi.encodePacked(to.addressToBytes32(), amount)
as the payload
But inside the quote function, the address
is used as is without converting to bytes32
link
This will cause a difference in the quoted
fee causing the user to estimate the required fee incorrectly
Incorrect fee will be sent by the user when teleporting tokens
Manual Review
Use abi.encodePacked(to.addressToBytes32(), amount)
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.