Getting test tokens

As you must have known before now, Scopefi is deployed on Meter, and in this guide i'm going to walk you through everything you need to know to mint your first scope tokens, so you would be able to buy and sell assets on the scopefi platform and do other cool things.

Step 1

Create a file on the remix ide and paste the code below

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract ScopeToken is ERC20, Ownable {

    constructor(
    ) ERC20("ScopeToken", "SCPT") {
    }

    function mint(address to, uint256 amount) public {
        _mint(to, amount);
    }
}

Step 2

Save the file, make sure it compiles successfully, now go to the deploy and run transaction tab, make sure the Environment is set to Injected Provider and you're already connected to meter testnet on metamask.

Step 3

Input the Scope token address (0xbDf80c68E29697a2EB9893Eab8F3539305F135F2) on the At Address input and click on the At Address button.

Step 4

After step 3, you'll notice a deployed contract had appeared close to the bottom of the screen, scroll down and locate the mint function, input your wallet address and amount of tokens ,now click on transact to sign the transaction.

There you go, you've successfully mint your first scope tokens, you can now start playing around with the demo

Last updated