A user can claim NFT using Function claimNft of TokenDivider.sol. However, after the NFT is claimed the mapping nftToErc20Info is still pointing to Erc20 Address and the token id. It should be reset.
Step 1 - Mint few NFTs for user.
Step 2 - User Locks NFT and get ERC tokens
Step 3 - User claims NFTs
Step 4 - Call public function getErc20InfoFromNft. Notice that it still is mapped to the erc20Address
and token id. claimNft must clear this mapping.
public function getErc20InfoFromNft gives an impression that NFT is still tied to ERC20 Address and token id. However that is not true.
Storage variable doesnt reflect the transaction.
Foundry. Manual Inspection.
Reset mapping nftToErc20Info in claimNft just like other storage variables are reset.
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.