Skip to content

Instantly share code, notes, and snippets.

@transferAndCall
Last active February 3, 2021 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save transferAndCall/b3eb574bebbb81461b341445f456da80 to your computer and use it in GitHub Desktop.
Save transferAndCall/b3eb574bebbb81461b341445f456da80 to your computer and use it in GitHub Desktop.

Testing Metavault V2 on Kovan

Use the documented contract addresses from the metavault repo.

Each token has a faucet function which can be called by anyone in order to obtain funds (there's no need to ask for tokens).

For example, DAI:

  • Navigate to the Write Contract page of the token on Etherscan
  • Connect your web3-enabled wallet to the site
  • Expand the faucet function
  • Type the value for the amount to be sent (1000000000000000000000 for 1000 DAI)
  • Click the Write button
  • Confirm the transaction in your wallet (a gas price of 1 is good on Kovan)

You will need to manually add the token addresses to your wallet. In Metamask, this means adding a custom token, then pasting the address of the token in, where the name, symbol, and decimals will automatically be detected.

Once you have funds, navigate to the v2 staging site to begin testing.


Notes/FIXME:

You will need to first approve the Metavault contract to spend the token(s) you're wanting to deposit. Otherwise your deposit transaction will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment