A borrower eligible for liquidation can pay an improperly large amount of fees, and may be unfairly liquidated
If a borrower is partially liquidated and then increases the collateral balance to avoid further liquidation, they will pay an improperly large amount of fees and can be unfairly liquidated.\\n```\\n            (collateralBalance, currentFees) = _calculateCollateralBalance(\\n                borrowing.borrowedAmount,\\n                borrowing.accLoanRatePerSeconds,\\n                borrowing.dailyRateCollateralBalance,\\n                accLoanRatePerSeconds\\n            );\\n            // rest of code\\n            if (collateralBalance > 0) {\\n                // rest of code\\n            } else {\\n                currentFees = borrowing.dailyRateCollateralBalance; //entire collateral amount\\n            }\\n            // rest of code\\n            borrowing.feesOwed += _pickUpPlatformFees(borrowing.holdToken, currentFees);\\n```\\n\\nWhen liquidation occurs right after becoming liquidatable, the `collateralBalance` calculation in `repay()` above will be a small value like -1; and essentially all the fees owed will be collected.\\nIf the borrower notices the partial liquidation and wishes to avoid further liquidation, `increaseCollateralBalance()` can be called to become solvent again. But since the `accLoanRatePerSeconds` wasn't updated, the borrower will have to doubly pay all the fees that were just collected. This will happen if a lender calls `harvest()` or the loan is liquidated again. The loan can also be liquidated unfairly, because the `collateralBalance` calculated above will be much lower than it should be.
Update `accLoanRatePerSeconds` for incomplete emergency liquidations.
The borrower may pay too many fees, and it's also possible to unfairly liquidate the position.
```\\n            (collateralBalance, currentFees) = _calculateCollateralBalance(\\n                borrowing.borrowedAmount,\\n                borrowing.accLoanRatePerSeconds,\\n                borrowing.dailyRateCollateralBalance,\\n                accLoanRatePerSeconds\\n            );\\n            // rest of code\\n            if (collateralBalance > 0) {\\n                // rest of code\\n            } else {\\n                currentFees = borrowing.dailyRateCollateralBalance; //entire collateral amount\\n            }\\n            // rest of code\\n            borrowing.feesOwed += _pickUpPlatformFees(borrowing.holdToken, currentFees);\\n```\\n