Gas saving optimizing storage #116
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
0x1f8b
Vulnerability details
Impact
Gas saving.
Proof of Concept
Moving the
uint32 dexDetail
close toaddress depositErc20
it's possible to save one slot:Moving the
uint32 dexDetail;
close tobool isPartialClose
it's possible to save one slot:Moving
marginLimit
close toLiqStatus
it's possible to save one storage slot.Moving
isSellAllHeld
anddexDetail
it's possible to save 2 slotsMoving
multiplier
andmultiplier
it's possible to save 2 slotsTools Used
Manual review.
Recommended Mitigation Steps
Apply the mentioned changes
The text was updated successfully, but these errors were encountered: