Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -919,18 +919,17 @@ contract LenderCommitmentGroup_Smart is


/*
This callback occurs when a TellerV2 repayment happens or when a TellerV2 liquidate happens

lenderCloseLoan does not trigger a repayLoanCallback

It is important that only teller loans FOR THIS POOL can call this !
*/
@dev This callback occurs when a TellerV2 repayment happens or when a TellerV2 liquidate happens
@dev lenderCloseLoan does not trigger a repayLoanCallback
@dev It is important that only teller loans for this specific pool can call this
@dev It is important that this function does not revert even if paused since repayments can occur in this case
*/
function repayLoanCallback(
uint256 _bidId,
address repayer,
uint256 principalAmount,
uint256 interestAmount
) external onlyTellerV2 whenForwarderNotPaused whenNotPaused bidIsActiveForGroup(_bidId) {
) external onlyTellerV2 bidIsActiveForGroup(_bidId) {
totalPrincipalTokensRepaid += principalAmount;
totalInterestCollected += interestAmount;

Expand Down