This trading bot will constant checking the status of all the accounts in dex and liquidate positions on chain
git clone [email protected]:xiaoyu1998/up-liquidator-rs.git --recursive
cp deployed_addresses.json /path/to/up-liquidator-rs/crates/liquidator-contract/deployments
cp underlyAsset_addresses.json /path/to/up-liquidator-rs/deployments
cd crates/liquidator-contract
npx hardhat run scripts/deployLiquidator.ts --network localnet
usdt.transfer("liquidator contract address", amount);
cp deployed_addresses.json /path/to/up-liquidator-rs/deployments
cargo run -- --rpc http://192.168.2.106:8545 --private-key "private-key " --deployment localnet --bid-percentage 10 --liquidator-address 0xa58FEa4CAD0e8D14294d861c54cCa3606820A871 --chain-id 1998 --last-block-number 1000 --pool-interval-secs 10