Users can deposit funds into the Unified Pool to earn funding fees from perpetual contracts, leverage fees from margin trading, and cross-chain transaction fees.
curl -L https://foundry.paradigm.xyz | bashexport PATH="$PATH:/from/path/.foundry/bin"git clone git@github.com:xiaoyu1998/up-contracts.git --recursivenpm installnpx hardhat nodenpx hardhat ignition deploy ignition/modules/deployExchangeRouter.ts --network localhostnpx hardhat run scripts/01createUsdtUniV3.ts --network localhost
npx hardhat run scripts/01createPools.ts --network localhost
npx hardhat run scripts/02oracleKeeper.ts --network localhost
npx hardhat run scripts/03executeSupply.ts --network localhostnpx hardhat run scripts/11executeLong.ts --network localhost
npx hardhat run scripts/12executeShort.ts --network localhostnpx hardhat run scripts/13executeClosePosition.ts --network localhost