Skip to content

omnipair/omnipair-rs

Repository files navigation

omnipair-rs

Local and Devnet flow for get up and running

  1. Build and Deploy the Program:

    anchor keys sync
    anchor build -- --features "development"
    anchor deploy
  2. Create Development Token Pair (with the new deployed program id as the mint authority):

    yarn deploy-tokens

    Update .env with the new token mint addresses:

    TOKEN0_MINT=<new_token0_mint_address>
    TOKEN1_MINT=<new_token1_mint_address>
    
  3. Initialize Futarchy Authority and Pair Config:

    yarn init-futarchy
  4. Initialize the Pair:

    yarn initialize
  5. Mint Test Tokens:

    yarn faucet-mint
  6. Bootstrap Liquidity:

    yarn bootstrap
  7. Pubish IDL

 anchor idl init --filepath target/idl/omnipair.json [program.id] --provider.cluster devnet

After completing these steps, you can:

  • Add and remove liquidity
  • Add and remove collateral
  • Borrow and repay loans

For production run:

anchor keys sync
anchor build --verifiable -- --features "production"
anchor deploy --verifiable
anchor idl init --filepath target/idl/omnipair.json <program-id> --provider.cluster mainnet
anchor verify -p omnipair <program-id>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages