Fix/update letsbonk fun instructions in the bot (#142)

* feat(core): support multiple initialize instruction variants in LetsBonkEventParser

* feat(core): add creator and platform fee vault derivation methods and update account handling in buy/sell instructions

* feat(letsbonk): add global_config and platform_config to TokenInfo and update address provider logic
This commit is contained in:
Anton
2025-10-26 16:21:58 +01:00
committed by GitHub
parent 7377e1757e
commit 68cac87aad
5 changed files with 211 additions and 28 deletions
+3
View File
@@ -186,6 +186,9 @@ class LetsBonkCurveManager(CurveManager):
"real_quote": decoded_pool_state.get("real_quote", 0),
"status": decoded_pool_state.get("status", 0),
"supply": decoded_pool_state.get("supply", 0),
"creator": decoded_pool_state.get("creator"), # Creator pubkey (as base58 string)
"base_vault": decoded_pool_state.get("base_vault"), # Base vault pubkey
"quote_vault": decoded_pool_state.get("quote_vault"), # Quote vault pubkey
}
# Calculate additional metrics