bitcoin-s icon indicating copy to clipboard operation
bitcoin-s copied to clipboard

How should refunded DLCs be accounted for?

Open Christewart opened this issue 4 years ago • 2 comments

This is an on going debate between @benthecarman and I. In #3249 we modified the wallet level accounting logic to only account for ClaimedDLCStatus rather than ClosedDLCStatus. This means refunds (which do incur blockchain fees resulting in negative PNL!) are no longer accounted for on the wallet level.

Ben's argument against counting refunds is that it skews PNL. If I have 2 closed DLCs that

  1. Loses all of the collateral i contributed resulting in -100% rate of return
  2. A refunded DLC that has a rate of return of -1% because of blockchain fees

that would result in a wallet level PNL of ~-50%. His argument is that this isn't useful which does hold some merit IMO.

Christewart avatar Jun 12 '21 13:06 Christewart

Yes my opinion is that the DLC Accounting should take into account successful DLCs, I would not call a refunded DLC and it should be treated as if it never happened

benthecarman avatar Jun 12 '21 16:06 benthecarman

Related to #3235

Christewart avatar Jun 14 '21 14:06 Christewart