The belowMaintenanceThreshold function decides if a trader can be liquidated:
The inequality in the last equation is wrong because it says the higher the holdings (margin + loan) compared to the loan, the higher the chance of being liquidated. The inverse equality was probably intended return 100 * holdings <= liquidationThresholdPercent * loan;. Users that shouldnt be liquidated can be liquidated, and users that should be liquidated cannot get liquidated.
