Main Menu

about UIA issuing shares

Started by qun, September 14, 2017, 11:45:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pc

Quote from: attente on September 16, 2017, 04:16:18 PM
Could anybody please explain me how can I issue shares for distributing dividends on a regular basis? I issued a UIA at testnet but there is no such an option anywhere at my wallet to pay dividends to token holders.

There is currently no easy way to do this. We're discussing ways to make this possible, though, see https://github.com/bitshares/bsips/blob/master/bsip-0020.md .

Right now the easiest way to do it would probably to use cryptofresh to get a list of token holders, and then write a program to pay out individual dividends using the API.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 [url="http://bitcoin.quisquis.de"]http://bitcoin.quisquis.de[/url]

attente

Could anybody please explain me how can I issue shares for distributing dividends on a regular basis? I issued a UIA at testnet but there is no such an option anywhere at my wallet to pay dividends to token holders.

qun

Quote from: pc on September 15, 2017, 03:49:16 PM
Quote from: qun on September 15, 2017, 03:44:23 PM
Thank you! It gives me some clues, but I need to figure out what the correct bitasset options I should set...

None. Bitassets are market-issued assets, but you want a user-issued asset.

Just write "null" instead of "{}".

Wow. This works! Thanks a lot.

pc

Quote from: qun on September 15, 2017, 03:44:23 PM
Thank you! It gives me some clues, but I need to figure out what the correct bitasset options I should set...

None. Bitassets are market-issued assets, but you want a user-issued asset.

Just write "null" instead of "{}".
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 [url="http://bitcoin.quisquis.de"]http://bitcoin.quisquis.de[/url]

qun

Quote from: pc on September 14, 2017, 03:44:00 PM

You have specified empty bitasset options instead of null. The presence of bitasset options implies that you want to create a market issued asset.

Thank you! It gives me some clues, but I need to figure out what the correct bitasset options I should set...

qun

Quote from: erizo on September 14, 2017, 05:01:07 PM
It is complicated to do these things well, if Bitshares wants to compete with new platforms like Waves (bitshares is the best, but is not very user friendly) there should be at least one video showing the creation of an UIA. How can I create a UIA MPA? Where can it be used? in the DEX? It would be interesting to see a clear example developed. It is not always good to let the user have fun.

Totally agree, I just recently started to look at BTS, I can see it has lots of potentials, but to be honest, it lacks a lot of serious documentations, it's hard to figure out the details easily.

severo

#3
It is complicated to do these things well, if Bitshares wants to compete with new platforms like Waves (bitshares is the best, but is not very user friendly) there should be at least one video showing the creation of an UIA. How can I create a UIA MPA? Where can it be used? in the DEX? It would be interesting to see a clear example developed. It is not always good to let the user have fun.

pc

Quote from: qun on September 14, 2017, 11:45:59 AM
I created an asset in my local testnet by using cli_wallet, something like this:


create_asset nathan HELLO 3 {"max_supply": "1000000000000000","market_fee_percent": 0.1,"max_market_fee": "1000000000000000","issuer_permissions": 79,"flags": 0,"core_exchange_rate    ": { "base": { "amount": 1, "asset_id": "1.3.0" }, "quote": { "amount": 1, "asset_id": "1.3.1" } }, "whitelist_authorities": [], "blacklist_authorities": [], "whitelist_markets"    : [], "blacklist_markets": [], "description": "", "extensions": [] } {} true


What's wrong here? Totally no idea...


You have specified empty bitasset options instead of null. The presence of bitasset options implies that you want to create a market issued asset.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 [url="http://bitcoin.quisquis.de"]http://bitcoin.quisquis.de[/url]

qun

I created an asset in my local testnet by using cli_wallet, something like this:


create_asset nathan HELLO 3 {"max_supply": "1000000000000000","market_fee_percent": 0.1,"max_market_fee": "1000000000000000","issuer_permissions": 79,"flags": 0,"core_exchange_rate    ": { "base": { "amount": 1, "asset_id": "1.3.0" }, "quote": { "amount": 1, "asset_id": "1.3.1" } }, "whitelist_authorities": [], "blacklist_authorities": [], "whitelist_markets"    : [], "blacklist_markets": [], "description": "", "extensions": [] } {} true



issue_asset nathan 10000.0 HELLO memo true


But when I'm trying to issue shares, it says it's a maket issued asset?


Assert Exception: !a.is_market_issued(): Cannot manually issue a market-issued asset.


What's wrong here? Totally no idea...

Thanks,