Skip to content

Commit 65ffde8

Browse files
committed
contract description
1 parent a448c67 commit 65ffde8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

contracts/UBI.sol

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ interface IProofOfHumanity {
2222
);
2323
}
2424

25+
/**
26+
* @title Universal Basic Income
27+
* @dev UBI is an ERC20 compatible token that is connected to a Proof of Humanity registry.
28+
*
29+
* Tokens are issued and drip over time for every verified submission on a Proof of Humanity registry.
30+
* The accrued tokens are updated directly on every wallet using the `balanceOf` function.
31+
* The tokens get effectively minted and persisted in memory when someone interacts with the contract doing a `transfer` or `burn`.
32+
*/
2533
contract UBI is Initializable {
2634

2735
/* Events */
@@ -257,6 +265,4 @@ contract UBI is Initializable {
257265
function balanceOf(address _human) public view returns (uint256) {
258266
return getAccruedValue(_human).add(balance[_human]);
259267
}
260-
261-
262268
}

0 commit comments

Comments
 (0)