Platform: Code4rena
Start Date: 27/11/2023
Pot Size: $60,500 USDC
Total HM: 7
Participants: 72
Period: 7 days
Judge: Picodes
Total Solo HM: 2
Id: 309
League: ETH
Rank: 28/72
Findings: 1
Award: $142.73
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: osmanozdemir1
Also found by: 0xCiphky, Audinarey, Banditx0x, CRYP70, Cryptor, D1r3Wolf, KupiaSec, LokiThe5th, Sathish9098, Skylice, ThenPuli, Topmark, Udsen, ZanyBonzy, baice, ether_sky, fatherOfBlocks, foxb868, grearlake, hihen, hubble, hunter_w3b, lanrebayode77, leegh, lsaudit, minhtrng, nocoder, onchain-guardians, ptsanev, ro1sharkm, seaton0x1, sivanesh_808, t4sk, tapir, tpiliposian, ustas
142.7295 USDC - $142.73
Minting and Burning positions does not have a deadline check. Without this check, there could be situations where a transaction is lingering in the mempool and a user forgets about it, resulting in unintended bad trades
The protocol does not check whether the L2 sequencer is active when minting or burning positions. This can result in outdated trades and incorrect premia calculations and exercising options that unexpectedly becomes out of the money
The readme states that only certain fee ranges are supported (50, 200 ,and 200 bp). However this is not enforced through the code.
A bad actor can front run any transfer of options by transferring an option of his own since there is a rule that you cannot transfer an option to someone that already has one
The comments describe Vegoid as a way to measure the sensitivity of an option. However, the volatility of an option can change whenever there is a change in price This is shown in the function _getpremiumdeltas
Minting positions violates the checks-effects-interaction code pattern used to prevent reentrancy
Use a helper to send back any leftover ETH
The function getPremiaDeltas uses the current liquidity in a pool to calculated the premia. However, this can be manipulated using the flash function in uniswap V3
#0 - c4-judge
2023-12-14T16:54:07Z
Picodes marked the issue as grade-a
#1 - c4-sponsor
2023-12-17T21:46:21Z
dyedm1 (sponsor) confirmed