This liquidator bot will constant checking the status of all the accounts in dex and liquidate positions on chain
git clone git@github.com:xiaoyu1998/mm-liquidator-rs.git --recursive
cp deployed_addresses.json /path/to/mm-liquidator-rs/crates/liquidator-contract/deployments
cp underlyAsset_addresses.json /path/to/mm-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://127.0.0.1:8545 --private-key "private-key" --deployment localnet --bid-percentage 10 --total-profit 800000000000000 --chain-id 31337 --last-block-number 1 --pool-interval-secs 10