How to Interact with Contribute from Etherscan
One of the most secure ways to interact with any Ethereum smart contract is directly through Etherscan using MetaMask.
This tutorial will assume you already have MetaMask installed on your browser and that you know how to use it.
In order to interact with the Contribute set of smart contracts, the first thing we suggest is for you to always keep the addresses of the contracts saved in your favourites in the browser. That way you know that you are not being subject to any phishing attack when you search for it.
In order to make your life easier, below is the list of all the relevant smart contracts that you will interact with:
Contribute: 0x0DdfE92234b9DCA2de799736bBBa1D2F25CFC3b8
Genesis: 0xf48d1FfBed1D9b87cC0B4410d16230B35BdFC28A
TRIB: 0xe09216F1d343Dd39D6Aa732a08036fee48555Af0
mUSD: 0xe2f2a5C287993345a840Db3B0845fbC70f5935a5
How to participate in the Genesis Mint Event (GME)
This assumes you already have mUSD. If you don’t you can learn about how you can obtain mUSD from here.
In order to participate in the Genesis Mint Event directly through the smart contracts you will need to do 2 actions.
- Approve the Genesis contract address to spend your mUSD.
- Deposit the mUSD to the Genesis contract from Etherscan.
ATTENTION: Never send mUSD directly to any of the contracts directly. You will not be able to get your mUSD back if you do this.
Approving mUSD
Just go to the mUSD smart contract address in Etherscan, this link will take you directly to the Write Contract tab where you can interact with the blockchain.
Make sure you are signed in to MetaMask and just click Connect to Web3.
The first option you will see is the approve method, which will allow the Genesis contract to spend your mUSD in order for you to be able to participate in the GME.
Under spender (address) enter the address of the Genesis Contract: 0xf48d1FfBed1D9b87cC0B4410d16230B35BdFC28A
Under amount (uint256) you can enter a very large number like so 1000000000000000000000000
This number actually represents 1 million Ether in Wei, the unit that the contract takes. Don’t worry, the contract won’t be able to spend all your mUSD, it will only be able to spend what you specify on the next step. The approval is just so you don’t have to do it again in case you want to add more funds later on.
So after you have entered the correct information the input fields should look like the image below.
Now just click on the Write button and your MetaMask will popup for you to confirm the transaction. Once the transaction goes through you can head over to the Genesis Smart Contract and invest in Contribute like a pro!
Depositing to the Genesis contract
The first thing you need to figure out before you deposit mUSD into the Genesis is what is the correct amount in Wei. As you probably know by now, the ERC20 token standard uses 18 decimal places for its amount. So when you interact with the smart contract directly you need to put the amount in Wei. Which means that, if you want to invest 1 unit of Eth you should actually put 1000000000000000000 to represent it in WEI, which is the number 1 followed by 18 zeroes.
The good thing is that there are online tools that do the conversion for you. Below is an example of what 1,789 USD would look like in Wei.
After calculating the amount in Wei that you want to invest, head over to the Genesis Smart Contract, connect to Web3, and find the function number 3. called deposit.
If you would like to invest 1,789 USD in the smart contract, just converted to Wei with the online converter and copy the Wei amount into the value (uint256) field.
Once you’ve done that, all you need to do is click the Write button again and confirm the transaction in MetaMask.
Give yourself a nice pat on the back. You are now able to interact with smart contracts even when the Contribute website is down.
To learn more about Contribute just visit our website.