Submitted by hyh, also found by 0x0x0x
Funds that are acquired from a liquidator and should be sent to a lender are left with the contract instead. The funds arent lost, but after the fact mitigation will require manual accounting and fund transfer for each CreditLine.liquidate usage.
ETH sent to CreditLine.liquidate by an external liquidator when autoLiquidation is enabled remain with the contract and arent transferred to the lender:
https://github.com/code-423n4/2021-12-sublime/blob/main/contracts/CreditLine/CreditLine.sol#L1015
Add transfer to a lender for ETH case:
Now:
To be:
ritik99 (Sublime) confirmed
