-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add ERC-4246 and IPool interfaces #11
Conversation
/** | ||
* @titleExpresses the various states a pool can be in throughout its lifecycle. | ||
*/ | ||
enum PoolLifeCycleState { |
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.
Not sure the convention we want to follow for these smaller supporting types: 1) separate files, 2) within the interface definition as an inner type, or 3) same file as interface, but outside interface definition. No strong feelings either way!
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.
LGTM!
contracts/interfaces/IPool.sol
Outdated
/** | ||
* @dev Emitted when a funded loan is marked as in default. | ||
*/ | ||
event LoanDefaultDefaulted(address indexed loan); |
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.
Is this a typo?
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.
Also, there is a late fee which may come before this and may require another event. I think we can address it later though.
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.
Indeed, good catch!
Adds an interface for the ERC 4246 standard, as well as an IPool interface with some initial functions. Left some questions in-line.