-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: feature/optimize-market-registry-terms
Are you sure you want to change the base?
Feature/lender commitment groups #137
Conversation
Feature/lender commitment groups
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
...s/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol
Outdated
Show resolved
Hide resolved
...s/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol
Show resolved
Hide resolved
|
||
require(_liquidityThresholdPercent <= 10000, "invalid threshold"); | ||
|
||
liquidityThresholdPercent = _liquidityThresholdPercent; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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()
...s/LenderCommitmentForwarder/extensions/LenderCommitmentGroup/LenderCommitmentGroup_Smart.sol
Show resolved
Hide resolved
|
||
|
||
|
||
function repayLoanCallback( |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no , see comment
…protocol/teller-protocol-v2 into feature/lender-commitment-groups
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.