From 57492b8846ad0145118770418d08f1bdf06d1c34 Mon Sep 17 00:00:00 2001 From: Lesigh-3100 Date: Thu, 16 Nov 2023 06:27:26 +0200 Subject: [PATCH] Update routehandler.py --- fastlane_bot/helpers/routehandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastlane_bot/helpers/routehandler.py b/fastlane_bot/helpers/routehandler.py index 00eda3759..8eedda0b1 100644 --- a/fastlane_bot/helpers/routehandler.py +++ b/fastlane_bot/helpers/routehandler.py @@ -444,7 +444,9 @@ def _extract_single_flashloan_token(self, trade_instructions: List[TradeInstruct Generate a flashloan tokens and amounts. :param trade_instructions: A list of trade instruction objects """ - flash_tokens = {trade_instructions[0].tknin_key: {"tkn": self.wrapped_gas_token_to_native(trade_instructions[0]._tknin_address), + + + flash_tokens = {self.wrapped_gas_token_to_native(trade_instructions[0].tknin_key): {"tkn": self.wrapped_gas_token_to_native(trade_instructions[0]._tknin_address), "flash_amt": trade_instructions[0].amtin_wei, "decimals": trade_instructions[0].tknin_decimals}} return flash_tokens