How To Stake Your On-Chain Monsters To Earn MonsterDough Tokens

On-Chain Monsters NFT
3 min readDec 16, 2021

We deployed a token called MonsterDough ($OCMD) on the Ethereum blockchain. By staking your monsters with the Smart Contract you earn MonsterDough. MonsterDough is the currency of the On-Chain Monsters universe. Currently, it can be used to mint monsters #2000 to #9999.

The Smart Contract is located here: https://etherscan.io/address/0x10971797fcb9925d01ba067e51a6f8333ca000b1

Staking On-Chain Monsters NFTs

You can stake On-Chain Monsters just like cryptocurrency. Staking means you lock your monster inside of the MonsterDough Smart Contract. While locked, your monster will create MonsterDough ($OCMD) for you. You will earn 1 MonsterDough per day per monster.

At the time locked, your monster will not be in your wallet. You can get it back any time you want and you will be automatically rewarded with the MonsterDough earned by the monster.

We assume that you have MetaMask or a similar browser extension installed. If not, install it first.

Start Earning By Staking

Step 1: Approve The On-Chain Monsters Smart Contract

  1. Go to the On-Chain Monsters Smart Contract on Etherscan: https://etherscan.io/address/0xaa5d0f2e6d008117b16674b0f00b6fca46e3efc4#writeContract
  2. Find and click “Connect to Web3”. Once you are connected, the little dot on the button will become green.
  3. Find and expand the “setApprovalForAll” function. Two input fields and a “Write” button will appear.
  4. Copy these values into the input fields (make sure they match exactly!):
    operator: 0x10971797FcB9925d01bA067e51A6F8333Ca000B1
    approved: true
  5. Click the blue “Write” button.
  6. Confirm the transaction in your wallet.
Approval: Points 3 to 5

The approval only has to be done once no matter how many monsters you want to stake!

Step 2: Stake Your Monster(s)

  1. Go to the MonsterDough Smart Contract on Etherscan: https://etherscan.io/address/0x10971797fcb9925d01ba067e51a6f8333ca000b1#writeContract
  2. Click “Connect to Web3”. Once you are connected, the little dot on the button will become green.
  3. Find and expand the “stakeByIds” function. An input field and a “Write” button will appear.
  4. Enter your monsters numbers into the tokenIds field, separated by commas. (Eg. “100,4000” if you own On-Chain Monster #100 and On-Chain Monster #4000)
  5. Click the blue “Write” button.
  6. Confirm the transaction in your wallet.
  7. Done! Each of your staked monsters will now generate you 1 MonsterDough per day.
Stake monsters: Points 3 to 5

You can stake up to 10 monsters at the same time.

See How Much MonsterDough Your Monsters Have Generated

This does not cost any gas.

  1. Go to the MonsterDough Smart Contract on Etherscan: https://etherscan.io/address/0x10971797fcb9925d01ba067e51a6f8333ca000b1#readContract
  2. Find and expand the “getAllRewards” function. An input field and a “Query” button will appear.
  3. Enter your ETH address into the input field.
  4. Click “Query”.
  5. A huge number will appear. Click on it to convert the number (wei) to ETH. That is how much unclaimed MonsterDough you have.
Balance request: Points 2 to 4

Unstake to get your gathered MonsterDough

  1. Go to the MonsterDough Smart Contract on Etherscan: https://etherscan.io/address/0x10971797fcb9925d01ba067e51a6f8333ca000b1#writeContract
  2. Click “Connect to Web3”. Once you are connected, the little dot on the button will become green.
  3. Expand the “unstakeAll” function. A “Write” button will appear.
    Note: This will unstake all of your staked monsters. To only unstake specific ones, use “unstakeByIds” and type in the monsters ids separated by commas (just like when you staked them).
  4. Click the blue “Write” button.
  5. Confirm the transaction in your wallet.
  6. Done. Your monsters are now unstaked and the MonsterDough is in your wallet. You can now mint monsters #2000 to #9999!

--

--