This repository has been archived by the owner on May 26, 2023. It is now read-only.
cccz - Unable to claim NFT in OngoingBounty #211
Labels
Duplicate
A valid issue that is a duplicate of an issue with `Has Duplicates` label
Non-Reward
This issue will not receive a payout
cccz
medium
Unable to claim NFT in OngoingBounty
Summary
ClaimManagerV1._claimOngoingBounty could not claim NFT in OngoingBounty.
Vulnerability Detail
OngoingBountyV1.receiveNft allows users to deposit NFT into OngoingBounty.
but ClaimManagerV1._claimOngoingBounty cannot claim the NFT in OngoingBounty
Unlike this, the other three types of bounty all allow the winner to claim NFT
Impact
The winner cannot claim the NFT deposited by other users
Code Snippet
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/Bounty/Implementations/OngoingBountyV1.sol#L133-L146
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/ClaimManager/Implementations/ClaimManagerV1.sol#L173-L197
Tool used
Manual Review
Recommendation
Consider specifying the claimant when depositing NFTs in the Ongoing Bounty and allowing the user corresponding to that claimant to claim the NFTs
Duplicate of #261
The text was updated successfully, but these errors were encountered: