Skip to content

Instantly share code, notes, and snippets.

@ice09
Last active November 8, 2020 21:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ice09/9bc7319dbe877bbd5e4509f4198c5687 to your computer and use it in GitHub Desktop.
Save ice09/9bc7319dbe877bbd5e4509f4198c5687 to your computer and use it in GitHub Desktop.
// 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 circles.garden profile address ('Show Profile' / browser URL (https://circles.garden/profile/) / address after /profile/)
  2. Go to https://blockscout.com/poa/xdai/address/YOUR_PROFILE_ADDRESS/tokens
  3. Find your Token address (CRC with most amount) and note down address for later.
  4. Open remix.ethereum.org
  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