Fusion
  • Learn and build with Fusion
  • Learn
    • Learn about Fusion
      • About Fusion
      • Fusion's vision
      • Key problems to be solved
      • How does Fusion (and AnySwap) compare?
      • Journey to Interoperability
      • Whitepaper
    • The features of Fusion
      • DCRM
        • DCRM journey
        • DCRM nodes
        • DCRM Yellow paper
      • Time lock feature
        • Infinity
        • Lock-In and Lock-Out (LILO)
        • Use-Case — Lending
        • Use-Case — Banker’s Acceptance
      • Smart contacts
        • Use cases
          • Mortgage smart contract
          • Risk-free Token Loan
          • Risk free contract market
      • Cross-chain Tokens
      • Quantum swap
      • Secure and Distributed Secret Key Sharding
      • Fusion assets and tokens
      • Ticketed Proof of Stake (TPoS)
    • Fusion blockchain
      • Short Address Notation - SAN
      • Chain data
      • FSN token
        • Uses of FSN token
        • Tokenomics
      • Gas
  • Dapps
    • Chainge finance
    • Anyswap
  • Build
    • Quick links
    • JavaScript API - web3-fusion-extend
    • JSON RPC API - fsn-rpc-api
    • Python Web3 library - web3fsnpy
    • DCRM SDK
    • Create your own FRC20
    • Github repositories
    • Developers community
  • Tutorials
    • My Fusion wallet
      • Creating a new PSN wallet
      • Generating a Short Account Number (SAN)
      • Send tokens and assets using a send function
      • Create assets
      • Quantum swaps
      • Lock-in and Lock-out feature
    • How to setup a node
    • Staking options
    • How To Setup and Use Anyswap with Metamask wallet
    • How to use MultiSwap
    • Set up DCRM Windows guide
  • Credits
Powered by GitBook
On this page

Was this helpful?

  1. Build

Create your own FRC20

PreviousDCRM SDKNextGithub repositories

Last updated 4 years ago

Was this helpful?

This is a bit more advanced (but no harder than doing it on Ethereum!) and requires you to deploy code outside an easy to use app or wallet. The current advantage is that you can easily use it to create your own LP-contract on AnySwap, which in turn ties your token to the whole crypto market, giving it actual value (assuming someone gives it liquidity).

How to deploy a FRC20 contract?

To deploy you can use while connected to . The code to deploy is easily forked from the . this code into a file and call it TheNameOfYourToken.sol. There are a couple of things you need to change in the contract. These are:

  1. "AnySwapToken" into "TheNameOfYourToken" on line 595.

  2. "AnySwap" into "YourProjectName" on line 597.

  3. "ANY" into "YourTickerName" on line 597.

  4. "1e26" on line 599 into "YourTokenSupply" (Where 1e18 = 1 token, 1e19 = 10 tokens 1e20 = 100 tokens, etc).

Once these edits are done, you can begin to reconfigure Remix to fix Fusion. 1. "Enviornment" should be "injected Web3" 2. "Compiler" should be "0.5.4" and 3. "Evm version" should be Byzantium.

After these changes are made upload put everything in TheNameOfYourToken.sol and compile this code.

Once done you're ready to deploy. Deploying will come with many options. Pick the "TheNameOfYourToken.sol" option.

​Done!

​Now, check out your deployed contract through your associated wallet. Then get yourself to AnySwap and search for this contract in the manual search fields in the "Create Exchange" option under "Pool". This is where you can create your very own LP-contract for your token.

​This won't make it automatically easy to find on AnySwap though. For this you will need AnySwap to offivcially add your token. But even without official listing you can add liquidity to the contract by manually searching for it in the manual search fields in the token choosing menus all over AnySwap. Once you search for the token, it will appear in AnySwap display without a coin icon for a limited amount of time. If it dissapears and you need to get to it again, just search for it again.

https://remix.ethereum.org/
the Fusion mainnet with Metamask
ANY-token contract
https://github.com/anyswap/anyswap-token/blob/master/contracts/AnyswapToken.solort