create_dividend: Do I have to pay for fee in XCP? (0.0004XCP)

Hi, I did create_dividend twice I got an unexpected result.

My question is...

40000 XCP is fee for dividend? Do I have to pay XCP and BTC as transaction fee? 

40000 is from this..

Case1: 120900000(before XCP) - 120860000(after XCP) = 40000XCP

Case2: 120860000(before XCP) - 120819997(after XCP) = 40003XCP

---------------------------

Case1:

[Before executing dividend]

*All of asset holders of XSTAR:

address: "1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", // Asset Owner. XCP quantity was 120900000
balance: "0.0000007", //XSTAR. divisible asset
percentage: "70.0000000000"

address: "17sdLuNtD7ZpFCVZ3Doz58fwxFF6i6CKk2",
balance: "0.0000002", //XSTAR
percentage: "20.0000000000"

address: "1KMdf7VWLEBdCo9iwmtpW7kJaSzSAUz2zJ",
balance: "0.0000001", //XSTAR
percentage: "10.0000000000"

[Executing command]

Asset=XSTAR, Pay in XSTAR as dividend asset. 

'{"jsonrpc":"2.0", "id":0, "method":"create_dividend", "params":{"source":"1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", "asset":"XSTAR", "dividend_asset":"XSTAR", "quantity_per_unit":10000000}}'

[After executing dividend]

*All of asset holders of XSTAR:

address: "1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", // Asset Owner. XCP quantity was 120860000
balance: "0.00000067", //XSTAR. divisible asset
percentage: "67.0000000000"

address: "17sdLuNtD7ZpFCVZ3Doz58fwxFF6i6CKk2",
balance: "0.00000022", //XSTAR. divisible asset
percentage: "22.0000000000"

address: "1KMdf7VWLEBdCo9iwmtpW7kJaSzSAUz2zJ",
balance: "0.00000011", //XSTAR. divisible asset
percentage: "11.0000000000"

Case2:

[Before executing dividend]

*All of asset holders of XSTAR:

address: "1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", // Asset Owner. XCP quantity was 120860000
balance: "0.0000007", //XSTAR. divisible asset
percentage: "70.0000000000"

address: "17sdLuNtD7ZpFCVZ3Doz58fwxFF6i6CKk2", // Asset Owner. XCP quantity was 0
balance: "0.0000002", //XSTAR
percentage: "20.0000000000"

address: "1KMdf7VWLEBdCo9iwmtpW7kJaSzSAUz2zJ", // Asset Owner. XCP quantity was 88480000
balance: "0.0000001", //XSTAR
percentage: "10.0000000000"

[Executing command]

Asset=XSTAR, Pay in XCP as dividend asset. 

'{"jsonrpc":"2.0", "id":0, "method":"create_dividend", "params":{"source":"1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", "asset":"XSTAR", "dividend_asset":"XSTAR", "quantity_per_unit":10000000}}'

[After executing dividend]

*All of asset holders of XSTAR:

address: "1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", // Asset Owner. XCP quantity was 120819997
balance: "0.0000007", //XSTAR. divisible asset
percentage: "70.0000000000"

address: "17sdLuNtD7ZpFCVZ3Doz58fwxFF6i6CKk2", // Asset Owner. XCP quantity was 1
balance: "0.0000002", //XSTAR
percentage: "20.0000000000"

address: "1KMdf7VWLEBdCo9iwmtpW7kJaSzSAUz2zJ", // Asset Owner. XCP quantity was 88480002
balance: "0.0000001", //XSTAR
percentage: "10.0000000000"

@zono there’s a discussion about confusion around dividend payments here:

https://github.com/CounterpartyXCP/counterwallet/issues/596

Dividend is not paid to the asset issuer (address). 

So if you have 100 issued units of an asset and 70 are still owned by the issuing address A, and two external holders (B and C, holding 20 and 10), then if you pay 100 XCP of dividend (so 1 XCP per 1 asset), only 30 will be paid out (20XCP to B and 10XCP to C), while 70XCP will not be paid because the issuing address has 70 units of the asset.

Before:
A - 70 asset, 1000 XCP # asset issuer
B - 20 asset
C - 10 asset

After payment of 100 XCP dividend (1 XCP per each unit of asset held)
A - 70 asset, 970 XCP
B - 20 asset, 20 XCP
C - 10 asset, 10 XCP

Transaction fees should be normal. I haven’t looked at the exact numbers in your examples because they are too small (I would need Excel or calculator).
@something

Thank you always. 

"Dividend is not paid to the asset issuer (address). "、"Transaction fees should be normal."

All right. I understand clearly. I will try it again. I will use larger quantity next time.

Thanks.

Hi, I finally understood the meaning of 0.0004XCP.

Since counterpartyd v9.45.0, we have to pay dividend fee which is 0.0002 XCP per recipient. The number of recipients were two in my case. That's why it cost 0.0004XCP.

But I am very curious about the reason why the fee is needed. Regarding the 0.5 XCP issuance fee, I understand that is a good way to avoid spam. How about dividend, is there any reasons?

Thanks.

But I am very curious about the reason why the fee is needed. 


Hi @zono. It’s the same reason - to prevent spam.
See:
https://github.com/CounterpartyXCP/counterpartyd/issues/254

Thank you @something. I understand it.