-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix(contract preaudit updates): make changes, fixes, upgrade as requested by contracts team #9
Conversation
This minimized re-entrancy risks.
…ed check to prevent griefing
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.
🚀 left some comments!
contract/contracts/Subscriptions.sol
Outdated
int256 len = Prelude.max( | ||
0, | ||
int64(sub.end) - Prelude.max(int64(currentBlock), int64(sub.start)) | ||
function unlocked(Subscription memory sub) private view returns (uint128) { |
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.
Same as locked
I'd change visibility to public
(this one IS being used by the contract however).
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.
Same as above if we make it public we can consider changing the input parameters
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.
see 7a3d93e
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.
Great stuff! Just some nits I found while catching myself up on the progress
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Co-authored-by: Theo Butler <[email protected]>
Co-authored-by: Theo Butler <[email protected]>
contracts: add unit tests
Description
Updates to the
Subscriptions.sol
contract based offFindings
here