Skip to content
Lattice

ReentrancyGuardLib Constants

Git Source

_REENTRANCY_GUARD_SLOT

Solady's transient guard slot: uint32(bytes4(keccak256("Reentrancy()"))) | 1 << 71. 9 bytes is large enough to avoid collisions in practice, but not too large to result in excessive bytecode bloat. Lattice keeps its OZ-style ReentrancyGuardReentrantCall error, so the revert paths mstore that selector explicitly instead of reusing the slot's low bytes.

uint256 constant _REENTRANCY_GUARD_SLOT = 0x8000000000ab143c06;