Miscellaneous
GlobalParameters.sol
The GlobalParameters contract manages global parameters for the Aut Protocol.
Key Functions:
stagePeriodDuration(uint32 nextPeriodDuration): Stages a new period duration.commitPeriodDuration(): Commits the staged period duration.stageSteepnessDegree3Exp(uint16 nextSteepnessDegree3Exp): Stages a new steepness degree.commitSteepnessDegree3Exp(): Commits the staged steepness degree.
Important Concepts:
Parameters are staged before being committed to allow for a delay period.
The contract uses a two-step process (stage and commit) for parameter changes.
AccessUtils.sol
The AccessUtils contract provides utility functions for access control within the Aut Protocol.
Key Functions:
_isAdmin(address who): Checks if an address is an admin._isMember(address who): Checks if an address is a member._revertIfNotAdmin(): Reverts the transaction if the sender is not an admin._revertIfNotHub(): Reverts the transaction if the sender is not the hub._revertIfNotMember(address who): Reverts the transaction if the given address is not a member.
Last updated