Skip to main content


Git Source

This struct is used to store the value and stamp of an element.

The stamp field is used to keep the storage slot non-zero when the element is removed.

It allows for cheaper SSTORE when an element is inserted.

struct ElementStorage {
address value;
uint96 stamp;