This repository has been archived by the owner on May 26, 2023. It is now read-only.
0xbepresent - The payoutVolume()
is not implemented in the Tiered bounty type.
#378
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
0xbepresent
medium
The
payoutVolume()
is not implemented in the Tiered bounty type.Summary
The payOutVolume is not implemented in the Tiered contests causing a revert in the OpenQV1.sol::solvent() function.
Vulnerability Detail
The function OpenQV1.sol::solvent() helps to determine if the bounty has enough funds to cover the payouts.
There is a comment in the
solvent()
function that says: @notice Determines whether or not an ongoing bounty or tiered bounty have enough funds to cover payouts. That is, the ongoing bounty or tiered bounty should return if the bounty is solvent but the tiered bounty does not have the payoutVolume therefore when the bounty is a tiered type thesolvent
function will be reverted.Impact
The
solvent()
function determines to the external if the bounty has enough funds to cover payouts. External entites can not have the information causing misinformation outside the protocol.I created a test in
OpenQ.test.js
. Thesolvent()
call for Tiered bounty will be reverted.Code Snippet
Tool used
Vscode
Recommendation
Implement the
payoutVolume
for the Tiered bounty types.Duplicate of #301
The text was updated successfully, but these errors were encountered: