How to Fork $ONE

  1. Start by copying the ONE contract code from Etherscan (https://etherscan.io/address/0xf77354885369027bbe59d26dafb4a1b12122d03e#readContractarrow-up-right) or download it from our public repo.

  2. Open (or copy) OneToken.sol inside of Remix or your preferred deployment software.

  3. Modify the decimals() function in line 390 to suit your token's needs.

$ONE uses 8 decimals like Bitcoin for increased scarcity. Most ERC-20 tokens use 18 decimals (as is the case with Ethereum).
  1. Modify the constructor for your OneToken contract. You must replace the address inside of the _mint() function, with the address to which you'll mint your STS-20 (line 722).

    The _mint function inside of the constructor is an internal ERC20 function, this means it can only be called inside the constructor. Please remember STS-20 tokens can't have any mint() or burn() upon deployment.

  2. Compile & deploy the contract to your EVM network of preference.

  3. You just created your first STS-20.

Last updated