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 flow for depositing into the pool #29

Merged
merged 8 commits into from
Sep 28, 2022
Merged

Add flow for depositing into the pool #29

merged 8 commits into from
Sep 28, 2022

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Sep 27, 2022

Left one question below in-line

@ams9198 ams9198 marked this pull request as ready for review September 27, 2022 17:39
this.previewDeposit(assets),
this.maxDeposit(receiver)
);
_mint(receiver, shares);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since _mint is internal, the library can't call it. Not sure a good pattern for this; ideally we could move everything to the library for testability; not crazy about having the boundary here.

atState(PoolLifeCycleState.Active)
returns (uint256 shares)
{
// TODO: check lender ACLs for both msg.sender and receiver
Copy link
Contributor

@venables venables Sep 27, 2022

Choose a reason for hiding this comment

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

This TODO can be part of the PermissionedPool logic (once it lands)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, will rebase mine + update it once that lands!

venables
venables previously approved these changes Sep 28, 2022
@ams9198 ams9198 merged commit 9488ac6 into circlefin:master Sep 28, 2022
@ams9198 ams9198 deleted the deposit branch September 28, 2022 14:00
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.

2 participants