code-423n4 / 2022-05-vetoken-findings

1 stars 1 forks source link

Gas Optimizations #271

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago
GalloDaSballo commented 2 years ago

 No need for safe math where overflow/underflow is impossible, e.g.:

Saves 20 gas

Repeated storage access should be cached, e.g. veAsset is accessed 3 times here:

Saves 97 + 94 gas

Saves less than 500 gas