Struct Mutability

Characteristic

Struct mutability refers to the ability to modify the values of a struct’s member variables after the struct instance has been created and stored. In Solidity, structs stored in contract state (storage) are generally mutable, meaning their fields can be updated by subsequent transactions, provided the contract logic allows. This characteristic enables dynamic state management for financial instruments or user positions. It is a fundamental aspect of how on-chain data evolves.