Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1 KB

README.md

File metadata and controls

41 lines (28 loc) · 1 KB

SQFSuperfluidStrategy Scripts

Strategy can be found here.

Installation

  1. Install dependencies:
yarn install
  1. Create a .env file at the root of the repository and add the following variables:
  • RPC_URL - Your Infura RPC URL
  • SIGNER_PRIVATE_KEY - The private key of the pool manager/address that will call contracts
  • ALLO_REGISTRY_ADDRESS - The address of the Allo Protocol registry
  • ALLO_MAIN_ADDRESS - The address of the Allo Protocol main contract

Scripts

  1. Create Profile To create a pool on Allo you need a Registry profile. If you don't have one yet, you can create one using this script.
  • Open src/create-profile.ts
  • Fill out the profile config params (lines 8-15)
  • save and run:
yarn run create-profile
  1. Create a pool
  • Open src/create-pool.ts
  • Fill out the initData and poolData config params
  • save and run:
yarn run create-pool