Platform: Code4rena
Start Date: 20/01/2023
Pot Size: $90,500 USDC
Total HM: 10
Participants: 59
Period: 7 days
Judge: Picodes
Total Solo HM: 4
Id: 206
League: ETH
Rank: 48/59
Findings: 1
Award: $65.35
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: rbserver
Also found by: 0x1f8b, 0xAgro, 0xGusMcCrae, 0xSmartContract, Awesome, Breeje, DadeKuma, Diana, IllIllI, Josiah, Moksha, RaymondFam, Rolezn, SaeedAlipoor01988, Udsen, Viktor_Cortess, brgltd, btk, chaduke, cryptonue, ddimitrov22, delfin454000, descharre, fatherOfBlocks, georgits, hansfriese, lukris02, luxartvinsec, martin, matrix_0wl, mookimgo, oberon, popular00, shark, tnevler
65.3481 USDC - $65.35
v2-pool/src/structs/Param.sol
, v2-pool/src/structs/Pool.sol
, and /v2-option/src/enums/Transaction.sol
- include both struct/enum declarations as well as a library for manipulation. These libraries may be better suited in the package's respective /libraries/
directory.The dynamic address[] array getByIndex in TimeswapV2OptionFactory.sol and TimeswapV2PoolFactory.sol is never pushed to when a new option/pool is created. This will result in the numberOfPairs()
functions in the option/pool factories always returning 0. Note that TimeswapV2Option.sol
has a separate numberOfPools()
function that behaves as expected.
#0 - c4-judge
2023-02-02T11:34:49Z
Picodes marked the issue as grade-b