Content pfp
Content
@
0 reply
0 recast
0 reaction

0age pfp
0age
@0age
Sharing a fun feature in Seaport v1.6 that unlocks big gas savings on EVM chains that support TSTORE without preventing Seaport from being deployed on EVM chains that don't yet support it During contract creation, Seaport v1.6 deploys a small contract with runtime logic that performs a `TLOAD` then attempts to call it
3 replies
1 recast
7 reactions

0age pfp
0age
@0age
If the call to this new contract succeeds, Seaport knows that TSTORE is supported and uses it for enforcing its reentrancy lock If the call fails, Seaport falls back to using SSTORE However, once the EVM chain in question adds support for TSTORE, anyone can call a "secret" method on Seaport to activate TSTORE usage
1 reply
0 recast
1 reaction

0age pfp
0age
@0age
This method attempts to call the TLOAD test contract again, and if the call succeeds then Seaport will clear the sentinel value in regular storage, signaling to use TSTORE going forward EVM chains that don't support TSTORE on deployment will still incur the cost of an SLOAD, but it beats having to pay for an SSTORE!
0 reply
0 recast
1 reaction