TimeswapPair.sol modifier lock: Switching between 1, 2 instead of 0, 1 is more gas efficient #87
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
bitbopper
Vulnerability details
Impact
https://github.com/code-423n4/2022-01-timeswap/blob/5960e07d39f2b4a60cfabde1bd51f4b1e62e7e85/Timeswap/Timeswap-V1-Core/contracts/TimeswapPair.sol#L121:L126
could be more gas efficientProof of Concept
Version as in Repo
Proposed Version
Comparison
Test harness
Output
The text was updated successfully, but these errors were encountered: