You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WrappedEth that uses a regular ERC20. It can be seen decompiled under here and you can see its Etherscan profile. As it's ERC20 one of the core operations is the transfer that consists of two Read-Update-Write pairs, that access one StorageCell. Unfortunately, the underlying encoding of the key of the StorageCell index must take place twice. With IL-EVM we could optimize it by properly noticing SLOAD followed by SSTORE for the same value. It's worth to notice that Solidity/Yul will do their job here and the SHA3 that creates the index will be calculated only once.
PUSH1 0x20ADDPUSH1 0x0SHA3 PUSH1 0x0DUP3 DUP3 SLOADSUB (orADD if this is the transfer to) SWAP3 POPPOPSWAP1SSTORE
The text was updated successfully, but these errors were encountered:
WrappedEth
that uses a regularERC20
. It can be seen decompiled under here and you can see its Etherscan profile. As it's ERC20 one of the core operations is the transfer that consists of twoRead-Update-Write
pairs, that access oneStorageCell
. Unfortunately, the underlying encoding of the key of theStorageCell
index must take place twice. With IL-EVM we could optimize it by properly noticingSLOAD
followed bySSTORE
for the same value. It's worth to notice that Solidity/Yul will do their job here and theSHA3
that creates the index will be calculated only once.The text was updated successfully, but these errors were encountered: