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

Issue 54 - allow repay callback even if paused #83

Open
wants to merge 1 commit into
base: merge-train-r5
Choose a base branch
from
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
Loading