This repository has been archived by the owner on May 26, 2023. It is now read-only.
ck - _claimTieredFixedBounty
claims only one token while supporting multiple NFTs
#508
Labels
Low/Info
A valid Low/Informational severity issue
Non-Reward
This issue will not receive a payout
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
ck
medium
_claimTieredFixedBounty
claims only one token while supporting multiple NFTsSummary
_claimTieredFixedBounty
claims only one token but supports multiple NFTsVulnerability Detail
_claimTieredFixedBounty
allows only the claim of one token while maintaining the capability to claim multiple NFTs:If the intention is to only allow one payout token, then the funding of the bounty should be restricted to that one token.
In addition the support of claiming multiple NFTs conflicts with the setting of a
payoutSchedule
that supports one_payoutTokenAddress
.Impact
Temporary locking of funds.
Code Snippet
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/Bounty/Implementations/TieredFixedBountyV1.sol#L138-L147
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/ClaimManager/Implementations/ClaimManagerV1.sol#L278-L341
Tool used
Manual Review
Recommendation
Either allow the claiming of multiple tokens and NFTs or disable support for them for Tiered Fixed Bounties.
The text was updated successfully, but these errors were encountered: