This repository has been archived by the owner on May 26, 2023. It is now read-only.
yixxas - solvent()
cannot be used on tiered bounty
#301
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
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
yixxas
medium
solvent()
cannot be used on tiered bountySummary
As documented,
solvent()
should be usable to determine if a bounty has enough funds to cover payouts. However, the current implementation does not allow it to be used for tiered bounty.Vulnerability Detail
solvent()
callsbounty.payoutVolume()
.payoutVolume
is however a variable only implemented in OngoingBountyStorage.sol. Only ongoing bounty will be able to utilise this function, contrary to what is documented.Impact
solvent()
cannot be used on tiered bountyCode Snippet
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/OpenQ/Implementations/OpenQV1.sol#L408-L413
Tool used
Manual Review
Recommendation
Consider implementing payoutVolume for tiered bounty if we want to check its solvency with
solvent()
.The text was updated successfully, but these errors were encountered: