Skip to main content

New answers tagged

0 votes

Convert the following address sum function to optimized assembly via both memory and storage. Slots are dynamic

I've creating a working version that avoids the 'unreachable code' error, but it doesn't seem to be much, if at all , faster than regular solidity: function _getCurrentSupplyAssembly() internal view ...
Ashraile's user avatar
  • 125
1 vote

How to further improve Safemoon's reflection token transfer? (ERC20/BEP20)

The calculations for T_TotalExcludedSupply and R_TotalExcludedSupply might be done like this: // optimized uint T_TotalExcludedSupply; uint R_TotalExcludedSupply; function _getRateOptimized() public ...
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included