Attempting to make a standalone walkthrough repo of UMA's basic functions.
Goals:
- Check if collateral and price identifiers are supported
- Create an EMP contract
- Mint tokens from said contract
- Redeem tokens
- Deposit additional collateral
- Withdraw excess collateral
-
npm install -
Make a
.envfile at project root with the following contents:PRIV_KEY=0x12345abcdef... KOVAN_NODE_URL=https://kovan.infura.io/v3/API_KEY_HEREFeel free to ask me for the above.
-
npm run start-chainstarts a Ganache test-chain forked off Kovan -
npm run startstarts the script
Addresses inside kovanAddresses.json are from here.