removed unneeded delay and resample for the final loop

This commit is contained in:
Alexander 2024-07-12 14:44:51 -04:00
parent 12b95d4f72
commit 4bf1099d70

View file

@ -111,11 +111,9 @@ while True:
logging.warning("No estimated swap result from RPC")
break
# delay if amounts remain in the list
if i <= len(selling_amounts):
if i < len(selling_amounts):
logging.info("Waiting for {} seconds...".format(loop_sell_delay))
time.sleep(loop_sell_delay)
else:
break
# resample the prices
pdai_sample_result = sample_exchange_rate('PulseX_v2', pdai_address, wpls_address)
pusdc_sample_result = sample_exchange_rate('PulseX_v2', pusdc_address, wpls_address)