Skip to content

Instantly share code, notes, and snippets.



Last active Nov 8, 2020
What would you like to do?
// SPDX-License-Identifier: AGPL
pragma solidity ^0.7.0;
abstract contract ICirclesToken {
function look() virtual public view returns (uint256);
/// @notice receive a ubi payout
/// @dev this is the method to actually update storage with new token balance
function update() virtual public;

Step-by-Step UBI Minting

Note: For this to work you have to have xDai on the XDai Mainnet and a wallet (eg. Nifty) with about the equivalent value of ~$0.1 loaded and the wallet activated.

  1. Get your profile address ('Show Profile' / browser URL ( / address after /profile/)
  2. Go to
  3. Find your Token address (CRC with most amount) and note down address for later.
  4. Open
  5. Create new file ICirclesToken.sol with content above.
  6. Load contract at address of your CRC Token (make sure xDai Mainnet is active in wallet).
  7. Call "look()" to see how much UBI you could claim.
  8. Claim you UBI by calling function "update()".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment