Platform: Code4rena
Start Date: 13/12/2023
Pot Size: $36,500 USDC
Total HM: 18
Participants: 110
Period: 8 days
Judge: 0xTheC0der
Id: 311
League: ETH
Rank: 58/110
Findings: 1
Award: $51.14
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: osmanozdemir1
Also found by: 0xDING99YA, BARW, Brenzee, DanielArmstrong, KupiaSec, SpicyMeatball, bart1e, deepplus, haxatron, rouhsamad, rvierdiiev
51.1381 USDC - $51.14
In lines 179-188, the following sequence of events occur
The emittedTokenWad is the amount sold so far is used to track x_start of VRGDAC, therefore, the same x_start values when obtaining the amount to pay buyers and creators instead of updating the x_start values after paying the creator before calculating the buyers.
Therefore, more tokens are emitted than the intended amount due to the lower intended x_start value. We can use https://www.desmos.com/calculator/im67z1tate to verify that lower x_start values will lead to higher token emittance.
Given x_start of 100, Y_toX(50) = 35.9 tokens emitted Given x_start of 50, Y_toX(50) = 54.6 tokens emitted
In general lower x_start values lead to higher tokens emitted this will lead to the protocol not following intended issuance schedule. This leads to loss of funds from the missed out sales of the tokens for the protocol as it issues more tokens than intended. The impact is greater the lower the initial x_start value.
Manual Review
The following is the correct sequence of events:
Other
#0 - c4-pre-sort
2023-12-22T03:50:54Z
raymondfam marked the issue as sufficient quality report
#1 - c4-pre-sort
2023-12-22T03:51:05Z
raymondfam marked the issue as duplicate of #194
#2 - c4-judge
2024-01-06T13:54:07Z
MarioPoneder marked the issue as satisfactory