GainsNetwork-org / nft-bot-v3

Bot that executes limit orders of gTrade v6, the decentralized leveraged trading platform on Polygon.
46 stars 39 forks source link

Fixes issue w/overlapping web3 client selection #18

Closed drub0y closed 1 year ago

drub0y commented 1 year ago

Bot runner reported issue where they saw multiple, overlapping client selections. This was always possible, but much less likely on Polygon. On Arbitrum, the headers come in so fast and we make async calls while switching, so it was possible another header came in while the current switch was still in progress.