Acala icon indicating copy to clipboard operation
Acala copied to clipboard

Honzon Liquidation penalty goes to OnFeeDeposit

Open syan095 opened this issue 3 years ago • 0 comments

  • Base branch is liquidation_improvement(https://github.com/AcalaNetwork/Acala/pull/2164) merged into fee_distribution.
  • Honzon 's liquidation penalty from all sources (liquidate via DEX, LP withdrawal, Contract and Auction) goes to OnFeeDeposit.
  • Liquidation's Base and Penalty amount is passed throughout the liquidation process.
  • Added tests accordingly.
  • After liquidate via contract, fund is transferred to the treasury to repay the debt

Should wait until liquidation_improvement is merged into master, and master is merged into fee_distribution

syan095 avatar Jul 07 '22 04:07 syan095