This repository has been archived by the owner on May 26, 2023. It is now read-only.
caventa - [Fund stuck] Fund could stuck if payment schedule number is less than the token address number in Percentage Tier Bounty #111
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
caventa
high
[Fund stuck] Fund could stuck if payment schedule number is less than the token address number in Percentage Tier Bounty
Summary
The fund could stuck if the payment schedule number is less than the token address number in Percentage Tier Bounty
Vulnerability Detail
Let's make an example.
Written a test unit for this in TieredPercentageBounty.test.js
Impact
As so far the only way to withdraw coin is to claim it, mockDai could be stuck forever
Code Snippet
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/Bounty/Implementations/TieredPercentageBountyV1.sol#L104-L120
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/Bounty/Implementations/TieredFixedBountyV1.sol#L91-L107
Tool used
Manual Review
Recommendation
Restrict the number of DISTINCT deposit token addresses should be the same as the payment schedule array length number
The text was updated successfully, but these errors were encountered: