When we have to used CCIP we have to pay some fee as charges to used Chinelink either native currency or link token. In this contract when user want to used KittyConnect::bridgeNftToAnotherChain to transfer NFT from one chain to other he pay some fee but not in KittyConnect::bridgeNftToAnotherChain or KittyBridge::bridgeNftWithData check the person or address call the function pay the fee or someone else call this functions.
Person A pay fee before he call KittyConnect::bridgeNftToAnotherChain to used it Person B call KittyConnect::bridgeNftToAnotherChain and transfer his tokene without pay anything.
Person A lose his fund and not able to used the platform.
As you see on both line in test one person pay fee before he call kittyBridge.bridgeNftWithData someone else found in transactions and run his transaction on your fee.
Lose of fund
Manual
LINK is an ERC-677 compliant token which implements transferAndCall, a function that allows tokens to be transferred whilst also triggering logic in the receiving contract within a single transaction.
Used following approached to keep track of Link transfer by different User with KittyBridge.
Add check inside the
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.