-
Build and Deploy the Program:
anchor keys sync anchor build -- --features "development" anchor deploy
-
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>
-
Initialize Futarchy Authority and Pair Config:
yarn init-futarchy
-
Initialize the Pair:
yarn initialize
-
Mint Test Tokens:
yarn faucet-mint
-
Bootstrap Liquidity:
yarn bootstrap
-
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>