Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: user issued bitassets dividend question  (Read 398 times)

0 Members and 1 Guest are viewing this topic.

Offline yak

user issued bitassets dividend question
« on: January 15, 2015, 08:05:26 PM »

Hey, I'm wondering if there is a way to set up an asset that pays out dividends to all of the people who have shares, based on how many shares they have?
for example if i have a user issued asset called BLAH that has 10,000 shares unevenly distributed to 5 users:
user1 6000
user2 1500
user3 1000
user4 1000
user5 500

is there a way to get this information by querying the bitshares client?

Offline pc

  • Hero Member
  • *****
  • Posts: 1131
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: user issued bitassets dividend question
« Reply #1 on: January 16, 2015, 09:30:51 AM »
Due to TITAN it is not possible to see which *user* owns specific assets.

But the assets are stored in the chain database with balance_ids, and these belong to an address. I. e. from a snapshot of the chain database you can compile a list of addresses and BLAH amounts and then pay out dividends to these addresses.

See also this thread: https://bitsharestalk.org/index.php?topic=13327.0
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: user issued bitassets dividend question
« Reply #2 on: January 16, 2015, 09:56:50 AM »
Dividends are nothing else than "increasing the market cap" ... which can be performed by simply buying up your own assets on the market ..

future UIA will have features that allow to identify holders ...
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline yak

Re: user issued bitassets dividend question
« Reply #3 on: January 16, 2015, 05:02:43 PM »
Due to TITAN it is not possible to see which *user* owns specific assets.

But the assets are stored in the chain database with balance_ids, and these belong to an address. I. e. from a snapshot of the chain database you can compile a list of addresses and BLAH amounts and then pay out dividends to these addresses.

See also this thread: https://bitsharestalk.org/index.php?topic=13327.0

yea, i guess i should have clarified that i personally dont need to know the users, i just would need to know an address + balance and be able to send to them

thanks for the info reading that other link now ;)

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: user issued bitassets dividend question
« Reply #4 on: January 16, 2015, 05:49:57 PM »
go through toast's recent posts and read about the balanceid of each UTXO that is NOT a address to send funds to but can be used to identify an address where you could send dividends to .. topic was opened by monsterer and is called sth with refund or so .. cant xpost atm
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline yak

Re: user issued bitassets dividend question
« Reply #5 on: January 17, 2015, 01:43:34 AM »
go through toast's recent posts and read about the balanceid of each UTXO that is NOT a address to send funds to but can be used to identify an address where you could send dividends to .. topic was opened by monsterer and is called sth with refund or so .. cant xpost atm

yup i think i've figured it out, i've tested it with bts and bitusd, now all i have to do is write something that can log all of the various send/receives of that specific asset in order to tally them up, then i can just send the right amount of whatever to the 'owner' of each
wallet_transfer_to_address 1 USD myaccount ownerspublicaddress
unless this is not the proper way to do it? (it worked, but not sure if there is a better way?)

Offline clayop

Re: user issued bitassets dividend question
« Reply #6 on: February 12, 2015, 09:40:05 AM »
Is there a snapshot tool for UIAs?
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

 

Google+