-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F/pots #28
base: main
Are you sure you want to change the base?
Conversation
85727ef
to
0e42a74
Compare
7cc3603
to
26c02ed
Compare
address public representative; | ||
MoltenElection public election; | ||
MToken public mToken; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can further enforce immutability of these system variables by adding the immutable
modifier to these variables:
address public immutable representative;
MoltenElection public immutable election;
MToken public immutable mToken;
also:
Compared to regular state variables, the gas costs of constant and immutable variables are much lower.
Immutable variables are evaluated once at construction time and their value is copied to all the places in the code where they are accessed.
Spec - sequence diagram
Todo
#29
#30
#31
#32
Caveats
Terms may be out of date.