Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 944f761

Browse files
authored
Merge pull request #297 from bancorprotocol/prodtest
Bugfixes for production environment
2 parents 1768770 + 3673cca commit 944f761

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

fastlane_bot/events/async_event_update_utils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
from fastlane_bot.events.async_utils import get_contract_chunks
1515
from fastlane_bot.events.exchanges import exchange_factory
1616
from fastlane_bot.events.utils import update_pools_from_events
17-
17+
import nest_asyncio
18+
nest_asyncio.apply()
1819

1920
async def get_missing_tkn(contract: AsyncContract, tkn: str) -> pd.DataFrame:
2021
try:
@@ -387,8 +388,9 @@ def async_update_pools_from_contracts(mgr: Any, current_block: int, logging_path
387388
"y_1",
388389
"liquidity",
389390
]
390-
if not os.path.exists(dirname):
391-
os.mkdir(dirname)
391+
if not mgr.read_only:
392+
if not os.path.exists(dirname):
393+
os.mkdir(dirname)
392394
start_time = time.time()
393395
# deplicate pool data
394396

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def run(
671671
async_update_pools_from_contracts(mgr, current_block, logging_path)
672672
mgr.pools_to_add_from_contracts = []
673673

674-
674+
675675
# Increment the loop index
676676
loop_idx += 1
677677

0 commit comments

Comments
 (0)