Platform: Code4rena
Start Date: 21/08/2023
Pot Size: $36,500 USDC
Total HM: 1
Participants: 43
Period: 7 days
Judge: Dravee
Id: 277
League: ETH
Rank: 23/43
Findings: 2
Award: $31.62
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: Udsen
Also found by: 0xSmartContract, 0xmystery, 0xprinc, Fulum, JP_Courses, MatricksDeCoder, Mirror, MohammedRizwan, MrPotatoMagic, Rolezn, Shubham, Testerbot, ast3ros, chainsnake, lanrebayode77, lsaudit, nisedo, plainshift, pontifex, prapandey031
9.1555 USDC - $9.16
The following should be added to the current comment on L38:
"...will result in transaction failure if the transaction amount is too small relative to the size of the reserves in the pool."
L39: "A transaction amount either as an input into the pool or an output from the pool will result in a transaction failure if the transaction amount is too large relative to the size of the reserves in the pool."
L40:
Replace the existing relevant part with this, because there's no above
for this scenario/case:
"...in the pool going below this ratio will fail."
Comment is incorrect, should be: "the sq. root of x instantaneous price", as this is not inverse like for a
.
corrected comment is: "px_final The final price at the x axis"
=
as follows: (x <= MIN_BALANCE || y <= MIN_BALANCE). However, if this line is correct as is, then the comment above needs to be changed to "greater than or equal to the MIN_BALANCE"Comment: /** * @dev The pool's balances of the x reserve and y reserve tokens must be * greater than the MIN_BALANCE * @dev The pool's ratio of y to x must be within the interval * [MIN_M, MAX_M) */
#0 - 0xRobocop
2023-08-30T01:06:11Z
px_init == px_final
is possible, it means that the curve will not mutate.
#1 - c4-pre-sort
2023-08-30T01:06:51Z
0xRobocop marked the issue as low quality report
#2 - c4-judge
2023-09-11T19:30:43Z
JustDravee marked the issue as grade-b
🌟 Selected for report: lsaudit
Also found by: 0x11singh99, 0x4non, 0xAnah, 0xSmartContract, 0xhacksmithh, JP_Courses, Jorgect, MrPotatoMagic, Sathish9098, epistkr, pfapostol, pontifex
22.4575 USDC - $22.46
unchecked {}
because this can never underflow/overflow.function elapsed(Config storage self) public view returns (uint256) { unchecked { return block.timestamp - self.t_init; } }
#0 - c4-pre-sort
2023-08-30T03:37:46Z
0xRobocop marked the issue as sufficient quality report
#1 - c4-judge
2023-09-11T20:01:46Z
JustDravee marked the issue as grade-b