Submitted by rvierdiiev
If someone wants to liquidate lien then canLiquidate function is called to check if its possible.
https://github.com/code-423n4/2023-01-astaria/blob/main/src/AstariaRouter.sol#L611-L619
As you can see owner of collateral token can liquidate lien in any moment.
However approved operators of owner cant do that, however they should.
As while validating commitment its allowed for approved operator to request a loan.
That means that owner of collateral token can approve some operators to allow them to work with their debts.
So they should be able to liquidate loan as well.
VsCode
Add ability for approved operators to liqiudate lien.
SantiagoGregory (Astaria) confirmed
