Skip to content

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
@openzeppelin-code
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.

3 participants