Incorrect initialization causes VADER emission rate of 1 second instead of 1 day in Vader.sol
Vader Protocol contest
Originally disclosed on Code4rena
Incorrect initialization (perhaps testing parameterization mistakenly carried over to deployment) of secondsPerEra to 1 sec instead of 86400 secs (1 day) causes what should be the daily emission rate to be a secondly emission rate.
This causes inflation of VADER token and likely breaks VADER<>USDV peg and other protocol invariants. Protocol will break and funds will be lost.
Recommend Initializing secondsPerEra to 86400 on L67.
strictly-scarce (vader) acknowledged:
This is purely for testing purposes.
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 high-severity business logic bug in Vader Protocol contest. Code4rena made it public on 14 June 2021. Found in the 2021-04-vader audit contest (finding H-25).
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.