Open contracts/pool-templates/base/pooldata.json
and fill the coins array.
For example:
{
"lp_contract": "LPToken",
"lp_constructor": {
"symbol": "O3LP-USD",
"name": "o3pool-usdt-usdc-dai"
},
"swap_constructor": {
"_A": 200,
"_fee": 4000000
},
"coins": [
{
"decimals": 6,
"name": "USDT",
"underlying_address": "0xCfEB869F69431e42cdB54A4F4f105C19C080A601"
},
{
"decimals": 6,
"name": "USDC",
"underlying_address": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"
},
{
"decimals": 6,
"name": "DAI",
"underlying_address": "0x254dffcd3277C0b1660F6d42EFbB754edaBAbC2B"
}
]
}
Back to project root path and run
python generate_base.py usd
-
Open
scripts/deploy.py
. -
Set the address for
DEPLOYER
andPOOL_OWNER
. -
Run
pip install -r requirements.txt
. -
Install
brownie
if not installed already:pip install eth-brownie
. -
Add fullnode rpc info for brownie:
brownie networks add <category> <id> host=<host> chainid=<chainid>
Example:
brownie networks add test testing-server host=http://xxx.node:8545 chainid=123
-
Deploy usd pool contract and lp token contract to the network:
brownie run deploy --network testing-server -I