Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.69 KB

cip-0023.md

File metadata and controls

57 lines (39 loc) · 1.69 KB
  CIP: 23
  Title: Bug fixes on non-divisible dividends and 0 quantity credits
  Authors: John "Chiguireitor" Villar
  Discussions-To: https://counterpartytalk.org/t/cip23-fixed-non-divisible-dividends-and-0-quantity-credits
  Status: In-development
  Type: Standards
  Created: 2021-27-01

Abstract

Fix the issue when creating dividends where the payment is done with non-divisible assets over a divisible asset. Also, change the protocol to not write 0 quantity dividend credits.

Motivation

Payouts of dividends of non-divisible assets is broken and non-functional because of a bug in the handling of divisibility information at the moment of handing out the credits.

Rationale

Several projects in the Counterparty ecosystem are using this characteristic to distribute newly minted collectibles to holders of a certain bearer token, rendering the potentiality of this feature useless as distributing a non divisible asset over a divisible asset almost never works as expected.

Technical implementation

Fixing dividend.py on the validate and parse sections to properly calculate amounts for this kind of transactions.

API Changes

No api changes.

Consensus Changes

The activation of this fix will require an activation block, records with 0 credits will stop to be generated after this. Previous sent dividends that failed because of this bug should still fail, only after the activation block the dividends trigering this bug will be valid.

Milestones

Fundraising Goal = 700 XCP

Milestone #1 (100% - 700 XCP) Merge bugfix code into master

Bounty Address : bc1q08jyxshq7r7ejqmqfnhase2edttq0jz8ujwfaz

Copyright

This document is placed in the public domain.