Incorrect use of _addTribute instead of _addGovernanceTribute
FairSide contest
Originally disclosed on Code4rena
As part of the purchaseMembership() function, the addRegistrationTributeGovernance() function is called by the FSD network to update tribute when 7.5% is contributed towards governance. However, this function incorrectly calls _addTribute() (as is also done in addRegistrationTribute) instead of _addGovernanceTribute().
The impact of this is that governanceTributes never gets updated, rendering all of the tribute accounting logic incorrect.
Recommend using _addGovernanceTribute() instead of _addTribute on L140 of FSD.sol
fairside-core (FairSide) confirmed:
The second of the two easter eggs!
fairside-core (FairSide) commented:
Fixed in PR#20.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity business logic bug in FairSide contest. Code4rena made it public on 7 July 2021. Found in the 2021-05-fairside audit contest (finding M-01).
About Business logic
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.