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

Feature/lender commitment groups #137

Open
wants to merge 147 commits into
base: feature/optimize-market-registry-terms
Choose a base branch
from

Conversation

ethereumdegen
Copy link
Contributor

Adds three contracts:

A LenderCommitmentGroupFactory which is able to deploy new LenderCommitmentGroup contracts.

LenderCommitmentGroup contract which allows lenders to pool their funds together for a single LCF commitment .

A SharesToken which is used for accounting to keep track of how much equity each lender has in a group.

@ethereumdegen ethereumdegen changed the base branch from develop to feature/optimize-market-registry-terms October 23, 2023 14:22
@github-actions github-actions bot removed the subgraph label Oct 24, 2023
Copy link

openzeppelin-code bot commented Nov 1, 2023

Feature/lender commitment groups

Generated at commit: 0dcca27a613a35e3dbe90c307ee7a3f4c330a9e2

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
1
0
14
44
61
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector


require(_liquidityThresholdPercent <= 10000, "invalid threshold");

liquidityThresholdPercent = _liquidityThresholdPercent;
Copy link
Contributor

Choose a reason for hiding this comment

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

we havent used this variable at all , do we still want to keep it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is used in getPrincipalAmountAvailableToBorrow()




function repayLoanCallback(
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 callback happening when liquidations happen too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no , see comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants