ebtc-protocol/ebtc

Adding CdpId to surplus collateral call

Closed this issue · 0 comments

Web2 wants to understand what coll Surplus allocations come from what CdpIds to properly account what happens throughout the lifecycle and visualize on the UI for each CdpId.

Coll Surplus exists at the account level but additional metadata can solve this.

  • when surplus is allocated, the event shows which CdpId it is from.
  • it additionally shows when collSurplus comes from the Cdp collateral versus the liquidator reward shares