-
Notifications
You must be signed in to change notification settings - Fork 10
fixes after audit, deployment script updates #83
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
base: v1.5
Are you sure you want to change the base?
Conversation
…back for tests until full protocol is deployed
| revert DurationTooShort(); | ||
| } | ||
|
|
||
| // TODO should here be >= or just > |
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.
It doesn't really matter, but >= allows to have no installments until end of the loan.
| // TODO should we check the values here that they are correct? | ||
|
|
||
| // TODO should we check here that the getCollateralAmount on installments product contract returns | ||
| // positive result (to ensure that the feeds are set up correctly)? |
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.
Solve it and/or remove it.
| // TODO shall we keep this as `public`, or only as `external` since so far it's not used internally anywhere? | ||
| // TODO same question for: | ||
| // 1) totalAssets | ||
| // 2) deposit | ||
| // 3) mint | ||
| // 4) withdraw | ||
| // 5) redeem | ||
| // 6) previewCollateralRedeem |
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.
If it's not used, change to external.
| // TODO should we adjust this to <= also in other Product contracts? | ||
| // TODO should we revert on any other place if encountered price is 0 or negative, or is this okay to do just here? | ||
| if (price <= 0) { | ||
| revert ChainlinkFeedReturnedNegativePrice({ feed: address(feed), price: price, updatedAt: updatedAt }); |
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.
Ideally change the error. It's not just negative. Remove the todos.
No description provided.