webhook in webui

This commit is contained in:
Dobromir Popov
2024-10-27 22:59:38 +02:00
parent e56f007082
commit 800cbede4d
5 changed files with 55 additions and 101 deletions

View File

@ -228,7 +228,7 @@ async def follow_move(move):
token_info = SAPI.dex.TOKENS_INFO.get(move['token_in'])
token_name_in = token_info.get('symbol') or await SAPI.get_token_metadata(move['token_in'])
token_name_out = SAPI.dex.TOKENS_INFO[move['token_out']].get('symbol') or await solanaAPI.get_token_metadata_symbol(move['token_out'])
token_name_out = SAPI.dex.TOKENS_INFO[move['token_out']].get('symbol') or await SAPI.get_token_metadata_symbol(move['token_out'])
if not your_balance:
msg = f"<b>Move not followed:</b>\nNo balance found for token {move['symbol_in']}. Cannot follow move."
@ -406,7 +406,7 @@ app = init_app()
asgi_app = WsgiToAsgi(app)
async def main():
global solanaAPI, bot, PROCESSING_LOG, pk
global bot, PROCESSING_LOG, pk
pk = await get_pk()
await telegram_utils.initialize()