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,15 +111,13 @@ 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:
|
# resample the prices
|
||||||
break
|
pdai_sample_result = sample_exchange_rate('PulseX_v2', pdai_address, wpls_address)
|
||||||
# resample the prices
|
pusdc_sample_result = sample_exchange_rate('PulseX_v2', pusdc_address, wpls_address)
|
||||||
pdai_sample_result = sample_exchange_rate('PulseX_v2', pdai_address, wpls_address)
|
affection_sample_result = sample_exchange_rate('PulseX_v2', affection_address, wpls_address)
|
||||||
pusdc_sample_result = sample_exchange_rate('PulseX_v2', pusdc_address, wpls_address)
|
|
||||||
affection_sample_result = sample_exchange_rate('PulseX_v2', affection_address, wpls_address)
|
|
||||||
else:
|
else:
|
||||||
logging.info("AFFECTION™ price is not within targeted range for selling")
|
logging.info("AFFECTION™ price is not within targeted range for selling")
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue