The GlobalParameters contract manages global parameters for the Aut Protocol.
GlobalParameters
stagePeriodDuration(uint32 nextPeriodDuration): Stages a new period duration.
stagePeriodDuration(uint32 nextPeriodDuration)
commitPeriodDuration(): Commits the staged period duration.
commitPeriodDuration()
stageSteepnessDegree3Exp(uint16 nextSteepnessDegree3Exp): Stages a new steepness degree.
stageSteepnessDegree3Exp(uint16 nextSteepnessDegree3Exp)
commitSteepnessDegree3Exp(): Commits the staged steepness degree.
commitSteepnessDegree3Exp()
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.
The AccessUtils contract provides utility functions for access control within the Aut Protocol.
AccessUtils
_isAdmin(address who): Checks if an address is an admin.
_isAdmin(address who)
_isMember(address who): Checks if an address is a member.
_isMember(address who)
_revertIfNotAdmin(): Reverts the transaction if the sender is not an admin.
_revertIfNotAdmin()
_revertIfNotHub(): Reverts the transaction if the sender is not the hub.
_revertIfNotHub()
_revertIfNotMember(address who): Reverts the transaction if the given address is not a member.
_revertIfNotMember(address who)
Last updated 1 year ago