getFee has hardcoded value which can lead to reverting of certain operations or loss to user.
_buildCCIPMessage parameter _amount hardcoded value in function getFee will revert or cause a huge loss to caller as amount is 1000 ether.
getFee value for _buildCCIPMessage parameter _amount for token transfer is hardcoded with 1000 ether which can revert if sender has less than 1000 eth if paid in native or 1000 link if paid in LINK.
It will also cause loss to user if caller wallet has 1000 eth or Link as they will be charged for calling function onTokenTransfer that calls _transferTokens as it will call getFee.
Manual Analysis
The recommendation is made to input parameter that takes user defined value to avoid loss for user or failing of txn in case of insufficient balance.
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.