Closed piobab closed 1 year ago
It uses PLF update from this PR https://github.com/mars-protocol/rover/pull/185 Only test cases are updated accordingly based on new logic and spreadsheet.
Should be:
debt_value_to_repay = debt_amount_to_repay * debt_2_price collateral_amount_to_liquidate = debt_value_to_repay * (1 + LB) / collateral_1_price protocol_fee_value = debt_value_to_repay * LB * PLF protocol_fee_amount = protocol_fee_value / collateral_1_price collateral_amount_received_by_liquidator = collateral_amount_to_liquidate - protocol_fee_amount
Rebased with latest changes from master.
It uses PLF update from this PR https://github.com/mars-protocol/rover/pull/185 Only test cases are updated accordingly based on new logic and spreadsheet.
Should be: