Skip to content
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

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Add ERC-4246 and IPool interfaces #11

merged 1 commit into from
Sep 20, 2022

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Sep 19, 2022

Adds an interface for the ERC 4246 standard, as well as an IPool interface with some initial functions. Left some questions in-line.

/**
* @titleExpresses the various states a pool can be in throughout its lifecycle.
*/
enum PoolLifeCycleState {
Copy link
Contributor Author

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!

venables
venables previously approved these changes Sep 20, 2022
Copy link
Contributor

@venables venables left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

bricestacey
bricestacey previously approved these changes Sep 20, 2022
/**
* @dev Emitted when a funded loan is marked as in default.
*/
event LoanDefaultDefaulted(address indexed loan);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a typo?

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, good catch!

venables
venables previously approved these changes Sep 20, 2022
@ams9198 ams9198 merged commit 48a9e55 into circlefin:master Sep 20, 2022
@ams9198 ams9198 deleted the addPoolInterface branch September 20, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants