Universal Basic Income.
UBI Coin
A standard for Universal Basic Income tokens.
Built in collaboration with Kleros and the Proof of Humanity project.
Features
- ERC20 token that can
mintnew supply for verified humans over time at a given rate. - Interfaces with
ProofOfHumanityto get curated list of verified humans. - Issuance rate —a. k. a. inflation— is subject to governance.
- Token has
burnfunction —a. k. a. deflation— that can be triggered by users or a DAO. Snapshotevent emitted to ease use of token for governance purposes.ProofOfHumanityregistry can be updated with governance mechanism.- Implements
ERC20Upgradeablecontracts with OpenZeppelin proxy libraries.
Built with Hardhat.
Latest release is version 0.1.6
Setup
-
Clone Repository
$ git clone https://github.com/DemocracyEarth/ubi.git $ cd ubi -
Install Dependencies
$ npm install
-
Run Tests
$ npx hardhat testTo compute their code coverage run
npx hardhat coverage.
Deploy
-
On
hardhat.config.jsconfigure the following constants for thekovantestnet:INFURA_API_KEY KOVAN_PRIVATE_KEY -
Deploy on Ethereum
kovantestnet:$ npx hardhat run scripts/deploy.js --network kovan
-
Interact with the console:
$ npx hardhat console --network kovan
Initalize the token with:
const UBI = await ethers.getContractFactory("UBI") const ubi = await UBI.attach('0xDdAdE19B13833d1bF52c1fe1352d41A8DD9fE8C9') // Replace with your token address
Upgrade
-
Deploy new contract in a fresh address:
$ npx hardhat run scripts/prepare.js --network kovan
-
Upgrade the proxy contract with the freshly deployed address:
$ npx hardhat run scripts/upgrade.js --network kovan
Verify
-
On
hardhat.config.jsconfigure your Etherscan API key:ETHERSCAN_API_KEY -
Verify the contract by running:
$ npx hardhat verify --network kovan <ADDRESS>
Contribute
These contracts are free, open source and censorship resistant. Support us via Open Collective.
License
This software is under an MIT License. This is a free software built by Democracy Earth Foundation between 2020 and 2021. Democracy Earth Foundation is a 501 (c) 3 not for profit corporation from San Francisco, California with no political affiliations.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


