From 5c7820ef41071504a9cc1cbbd00a1ae674ecf6a0 Mon Sep 17 00:00:00 2001 From: 9qeklajc <9qeklajc> Date: Tue, 5 Aug 2025 23:51:32 +0200 Subject: [PATCH] add prints --- router/wallet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/wallet.py b/router/wallet.py index 95cadfec..812c24ce 100644 --- a/router/wallet.py +++ b/router/wallet.py @@ -29,6 +29,7 @@ async def get_balance(unit: CurrencyUnit) -> int: async def recieve_token( token: str, ) -> tuple[int, CurrencyUnit, str]: # amount, unit, mint_url + print(token) token_obj = deserialize_token_from_string(token) if len(token_obj.keysets) > 1: raise ValueError("Multiple keysets per token currently not supported") @@ -39,8 +40,10 @@ async def recieve_token( load_all_keysets=True, unit=token_obj.unit, ) + await wallet.load_mint(token_obj.keysets[0]) + print(token_obj.mint, TRUSTED_MINTS) if token_obj.mint not in TRUSTED_MINTS: return await swap_to_primary_mint(token_obj, wallet)