removed unneeded delay and resample for the final loop
This commit is contained in:
parent
12b95d4f72
commit
4bf1099d70
1 changed files with 5 additions and 7 deletions
|
|
@ -111,11 +111,9 @@ while True:
|
||||||
logging.warning("No estimated swap result from RPC")
|
logging.warning("No estimated swap result from RPC")
|
||||||
break
|
break
|
||||||
# delay if amounts remain in the list
|
# 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))
|
logging.info("Waiting for {} seconds...".format(loop_sell_delay))
|
||||||
time.sleep(loop_sell_delay)
|
time.sleep(loop_sell_delay)
|
||||||
else:
|
|
||||||
break
|
|
||||||
# resample the prices
|
# resample the prices
|
||||||
pdai_sample_result = sample_exchange_rate('PulseX_v2', pdai_address, wpls_address)
|
pdai_sample_result = sample_exchange_rate('PulseX_v2', pdai_address, wpls_address)
|
||||||
pusdc_sample_result = sample_exchange_rate('PulseX_v2', pusdc_address, wpls_address)
|
pusdc_sample_result = sample_exchange_rate('PulseX_v2', pusdc_address, wpls_address)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue