diff --git a/src/dexorder/event_handler.py b/src/dexorder/event_handler.py index 06f2137..aac0155 100644 --- a/src/dexorder/event_handler.py +++ b/src/dexorder/event_handler.py @@ -146,6 +146,7 @@ def handle_order_error(event: EventData): def handle_transfer(transfer: EventData): # todo handle native transfers incl gas for token transfers + log.debug(f'Transfer {transfer}') from_address = transfer['args']['from'] to_address = transfer['args']['to'] amount = int(transfer['args']['value']) @@ -300,6 +301,10 @@ def finish_execution_request(req: TrancheExecutionRequest, error: str): tranche_trigger = triggers.triggers[tk.tranche_index] tranche_trigger.status = TrancheStatus.Filled tranche_trigger.disable() + elif error == 'Too little received': + # from UniswapV3 SwapRouter when not even 1 satoshi of output was gained + log.debug('warning: de minimis liquidity in pool') + # todo dont keep trying else: log.error(f'Unhandled execution error for transaction request {req} ERROR: "{error}"') er = execution_requests[tk]