mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-17 17:28:05 +00:00
fix(pump): derive associated bonding curve
This commit is contained in:
@@ -177,7 +177,15 @@ class PumpFunAddressProvider(AddressProvider):
|
|||||||
Returns:
|
Returns:
|
||||||
Associated bonding curve address
|
Associated bonding curve address
|
||||||
"""
|
"""
|
||||||
return get_associated_token_address(bonding_curve, mint)
|
derived_address, _ = Pubkey.find_program_address(
|
||||||
|
[
|
||||||
|
bytes(bonding_curve),
|
||||||
|
bytes(SystemAddresses.TOKEN_PROGRAM),
|
||||||
|
bytes(mint),
|
||||||
|
],
|
||||||
|
SystemAddresses.ASSOCIATED_TOKEN_PROGRAM,
|
||||||
|
)
|
||||||
|
return derived_address
|
||||||
|
|
||||||
def derive_creator_vault(self, creator: Pubkey) -> Pubkey:
|
def derive_creator_vault(self, creator: Pubkey) -> Pubkey:
|
||||||
"""Derive the creator vault address.
|
"""Derive the creator vault address.
|
||||||
|
|||||||
Reference in New Issue
Block a user