XY Finance
Search
⌃K

Provide / withdraw liquidity

How to add / remove liquidity on primitive model

Set up Virtual Environment

$ python3.9 -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt

Add Numbers Chain to Brownie Network Config

$ brownie networks add numbers numbers host=https://mainnetrpc.num.network chainid=10507

Set Environment Variables

$ export PRIVATE_KEY=""
$ export DEPOSIT_AMOUNT="" # no need to pad the zeroes
$ export WITHDRAW_AMOUNT="" # no need to pad the zeroes

Accept new treasury for Numbers Chain

$ brownie run acceptNewTreasury --network numbers

Accept new treasury for Etheruem Chain

$ brownie run acceptNewTreasury --network etheruem

Add Liquidity for Numbers Chain

$ brownie run deposit --network numbers

Add Liquidity for Etheruem Chain

$ brownie run deposit --network etheruem

Withdraw Liquidity for Numbers Chain

$ brownie run withdraw --network numbers

Withdraw Liquidity for Etheruem Chain

$ brownie run withdraw --network etheruem