diff --git a/src/dexorder/bin/mirror.py b/src/dexorder/bin/mirror.py index 1a6b94d..d57bc91 100644 --- a/src/dexorder/bin/mirror.py +++ b/src/dexorder/bin/mirror.py @@ -126,8 +126,8 @@ async def main(): mirrorenv = ContractProxy(mirror_addr, 'MirrorEnv') log.debug(f'Mirroring pools {", ".join(pools)}') pool_infos = await asyncio.gather(*[get_pool_info(pool) for pool in pools]) - tx = await mirrorenv.transact.mirrorPools(pool_infos) - await tx.wait() + txs = await asyncio.gather(*[mirrorenv.transact.mirrorPool(info) for info in pool_infos]) + await asyncio.gather(*[tx.wait() for tx in txs]) mirror_pools = [] for pool in pools: mirror_addr, mirror_inverted = await mirrorenv.pools(pool)