Dev: Balanced soft liquidation bots

Hey, I thought i’d just create a post where people can ask questions about the new liquidation flow.

I create a example liquidation bot which by no means will beat more sofisticated ones butr showcase 2 ways to liquidate users in the new format. It also introduces new builders to the basics of loans.

Testnet has also been updated to have soft liquidations for anyone who wants to do basic testing:

Locking ratio is set to higher than liquidation ratio for sICX so that you can take out loans that are liquidated directly. Not 100% same as a scenario where price drops but gives the chance to try out the liquidation function.