fixed transaction import
This commit is contained in:
@@ -4,13 +4,8 @@ Configuration for the pump.fun trading bot.
|
||||
|
||||
from typing import Final
|
||||
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from solders.pubkey import Pubkey
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# System & pump.fun addresses
|
||||
PUMP_PROGRAM: Final[Pubkey] = Pubkey.from_string(
|
||||
"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
|
||||
@@ -45,9 +40,9 @@ BUY_AMOUNT = 0.0001 # Amount of SOL to spend when buying
|
||||
BUY_SLIPPAGE = 0.2 # 20% slippage tolerance for buying
|
||||
SELL_SLIPPAGE = 0.2 # 20% slippage tolerance for selling
|
||||
ENABLE_DYNAMIC_PRIORITY_FEE = (
|
||||
True # getRecentPriorityFee is used to get current priority fee
|
||||
True # TODO: getRecentPriorityFee is used to get current priority fee
|
||||
)
|
||||
EXTRA_PRIORITY_FEE = 0.1 # 10% increase in dynamic priority fee
|
||||
EXTRA_PRIORITY_FEE = 0.1 # TODO: 10% increase in dynamic priority fee
|
||||
|
||||
TOKEN_DECIMALS: Final[int] = 6
|
||||
MAX_RETRIES: int = 5
|
||||
@@ -55,6 +50,6 @@ WAIT_TIME_AFTER_BUY: int = 20
|
||||
WAIT_TIME_BEFORE_NEW_TOKEN: int = 5
|
||||
WAIT_TIME_AFTER_CREATION: int = 15
|
||||
|
||||
# RPS of your node to avoid rate limit errors
|
||||
# TODO: RPS of your node to avoid rate limit errors
|
||||
# You can also get a trader node https://docs.chainstack.com/docs/solana-trader-nodes
|
||||
MAX_RPS = 25
|
||||
|
||||
Reference in New Issue
Block a user