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
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.
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.
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.
Fixing dividend.py
on the validate and parse sections to properly calculate
amounts for this kind of transactions.
No api 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.
Fundraising Goal = 700 XCP
Milestone #1 (100% - 700 XCP) Merge bugfix code into master
Bounty Address : bc1q08jyxshq7r7ejqmqfnhase2edttq0jz8ujwfaz
This document is placed in the public domain.