Skip to content

adrianmcli/uma-walkthrough

Repository files navigation

UMA Standalone Walkthrough

Attempting to make a standalone walkthrough repo of UMA's basic functions.

Goals:

  1. Check if collateral and price identifiers are supported
  2. Create an EMP contract
  3. Mint tokens from said contract
  4. Redeem tokens
  5. Deposit additional collateral
  6. Withdraw excess collateral

Setup

  1. npm install

  2. Make a .env file at project root with the following contents:

    PRIV_KEY=0x12345abcdef...
    KOVAN_NODE_URL=https://kovan.infura.io/v3/API_KEY_HERE
    

    Feel free to ask me for the above.

  3. npm run start-chain starts a Ganache test-chain forked off Kovan

  4. npm run start starts the script

Note

Addresses inside kovanAddresses.json are from here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors