Solidity

2026
If I need to sell Aave collateral to repay debt, the order of operations matters. A flash loan can supply the repayment asset first, so the transaction can repay debt, withdraw collateral, sell it, and settle the temporary loan.