v4-core
v4-core copied to clipboard
optimise
Related Issue
Which issue does this pull request resolve? Gas optimisation
Description of changes
- Introduced unchecked block for the _checkProtocolFee() function , this potentially saves 100+ in gas
- Performed modulo operation using bit operation this saves 25+ in gas, for more information check http://graphics.stanford.edu/~seander/bithacks.html#ModulusDivisionEasy