Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eteissonniere/araconubi
Proposing Aragon 2019 participants to participate in a UBI demo
https://github.com/eteissonniere/araconubi
aracon ethereum solidity truffle ubi
Last synced: 5 days ago
JSON representation
Proposing Aragon 2019 participants to participate in a UBI demo
- Host: GitHub
- URL: https://github.com/eteissonniere/araconubi
- Owner: ETeissonniere
- Created: 2019-01-28T12:47:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T00:31:49.000Z (almost 3 years ago)
- Last Synced: 2023-03-10T05:51:01.756Z (over 1 year ago)
- Topics: aracon, ethereum, solidity, truffle, ubi
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aracon UBI
A cool opt-in UBI proof of concept for Aracon 2019.
## Flow
The contract flow is splitted in two periods:
- contribution
- collection### Contribution period
Anyone can give ETH to the contract to be collected later by token holders.
People making money from Aracon are encouraged to contribute.
> Other functions are disabled
### Collection period
- We don't accept ETH anymore (though we have to consider the fact that the contract may still receive some, for example via `selfdestruct` calls)
- Token holders can claim a percentage of the contract's balance1. Token holder calls contract
2. We compute the share as `toSend = this.balance / (tokenSupply / tokenBalance)` which equals to `toSend = (this.balance * tokenBalance) / tokenSupply`
3. We `burn` the tokens of the holder, tokens vanishes!
4. We send him its reward