Skip to content

Instantly share code, notes, and snippets.

@ice09

ice09/ICirclesToken.sol

Last active Nov 8, 2020
Embed
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 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
You can’t perform that action at this time.