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

Allow PM withdrawals of first loss once a pool is closed #34

Merged
merged 4 commits into from
Sep 29, 2022
Merged

Allow PM withdrawals of first loss once a pool is closed #34

merged 4 commits into from
Sep 29, 2022

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Sep 28, 2022

This also updates the supplyFirstLoss method name to align with the deposit / withdraw verbiage used elsewhere. Additionally, it updates the signature to allow specifying a supplier address on deposit, and a receiver address on withdraw, so that the PM account doesn't necessarily have to custody the FL.

Small house-keeping items:

  • Renamed library directory to libraries, for consistency with interfaces (both plural)
  • Created a test subdirectory libraries (saw that Matt had added a permission subdirectory, and makes sense to organize them similarly to the contracts dir)

@ams9198 ams9198 marked this pull request as ready for review September 28, 2022 19:45
@@ -18,7 +18,7 @@ contract FirstLossVault {
/**
* @dev Modifier restricting access to pool
*/
modifier isPool() {
modifier onlyPool() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For consistency

@ams9198 ams9198 merged commit 4f37b51 into circlefin:master Sep 29, 2022
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