Gammanik / dac

decentralized voting with custom token
0 stars 0 forks source link

general_specification #2

Closed LyubomirSerafimov1 closed 5 years ago

LyubomirSerafimov1 commented 5 years ago

DAC CONTRACTS LOGIC

  1. token contract (MG)

actions: create issue (500 000 000) transfer(name from, name to, asset quantity, string memo)

burn(name account, asset quantity) — instead of burning we can distribute additional amount (?)

tables: stats (asset max_supply, asset total_supply, asset burned) accounts(name account, asset balance)

  1. voter

actions: vote(name voter, asset stake) — voting by staking some
todo: put all votes to zero every month? register(name dappname, string description) — dapp owner is requesting to register a name

tables: votes(name dappname, asset staked, string description)

  1. reward distribution contract looking in the voter contract table

Use-cases

  1. Dapp owner

    As a dapp owner I can send a request to register my dapp in a dapp’s list for the fans of my dapp (or our website users) to be able to vote for my dapp and for me getting EOS and rewards in case they are actively voting