ebtc-protocol/ebtc

Ensure CDPUpdated event emits expected values after every operation

Opened this issue · 0 comments

CDPUpdated event was previously emitted from both BorrowerOperations and CdpManager, leading to confusion especially around the enum statuses which have a different meaning depending on which contract they come from.

  • now the event will only be emitted from the CdpManager.
  • The operation type enums will be consolidated onto the CdpManager.

Ensure events are emitted properly from each CDP Operation on #531

BorrowerOperations

  • open
  • adjust (all variants)
  • close

CdpManager

  • liquidation (all variants)
  • redemption (all variants)