-
Notifications
You must be signed in to change notification settings - Fork 21
GenericSchemeMultiCall : Simplification. + Schemeconstraint #795
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
Conversation
uint256 public periodSize; | ||
uint256 public periodLimitWei; | ||
|
||
mapping(uint256=>uint256) public periodSpendingTokens; |
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.
Unused mapping can be removed
function isAllowedToPropose( | ||
address[] calldata _contractsToCall, | ||
bytes[] calldata _callsData, | ||
uint256[] calldata, |
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.
uint256[] calldata > uint256[] calldata _values?
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.
yes, because the interface defined that function and there is no use for values at this function
return true; | ||
} | ||
|
||
function observationIndex() public view returns (uint256) { |
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.
@orenyodfat this could become vulnerable to overflows if the period is set to a super low level, I would propose to add a require in the initialize() to set the period to a min limit as of 7days.
No description provided.