ebtc-protocol/ebtc

Liquidation profit + liquidator in event

Closed this issue · 2 comments

For accounting purposes, ideally CdpLiquidated would be able to report:

  • the premium going to the liquidator
  • the address of the liquidator

Redemptions could report the redeemer as well, and overall size of the 'trade'

premium could be calculated and reported as the part that exceeds the value equivalent to repaid debt:

repaidDebt -> debtEquivalentValueOfColl
premium = totalCollSentToLiquidator - debtEquivalentValueOfColl

@dapp-whisperer What is exactly the "overall size of the trade" for event Redemption? The event currently already includes total redeemed eBTC amount and total collateral sent to redeemer:

uint _attemptedEBTCAmount, uint _actualEBTCAmount, uint _ETHSent, uint _ETHFee

PR is here #610