Formula for Liquidation price

Anyone have a formula for calculating what the liquidation price would be for a loan? There is this from Panterra, but it doesn’t work.

You may have worked this out by now but it’s: total amount borrowed/(total number of collateral LUNA*0.8)

2 Likes