Skip to content

An automated bot for managing token liquidity on DEX. Supports Uniswap, PancakeSwap, price control, protection from manipulation, multichain.

Notifications You must be signed in to change notification settings

yilmazgun/liquidity-management-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquidity Management Bot for DeFi Tokens | Uniswap, PancakeSwap, DEX

Liquidity Management Bot is a powerful tool for automating token liquidity management on decentralized exchanges (DEX) such as Uniswap, PancakeSwap and others. The bot maintains price stability, minimizes volatility and protects against manipulation (MEV attacks, sandwich bots).

Automated bot for token liquidity management on DEX. Maintains price stability, minimizes volatility and protects against manipulation. Integrations: Uniswap v3/v4, PancakeSwap, Chainlink, Ethereum/BSC/Solana.

To get access to GUI version DM me on Telegram

License: MIT Python 3.10+

📌 Features

  • Autobalization of pools on Uniswap, PancakeSwap and other DEX.
  • Price control within a specified range (±1-10%).
  • Protection from MEV attacks (sandwich bots, frontrunning).
  • Adaptive strategies: TWAP, VWAP, threshold triggers.
  • Multichain: Ethereum, BSC, Solana, Layer 2.
  • Dashboard for real-time monitoring.

Requirements

  • Python 3.10+
  • Node.js (to work with web3.js)
  • Blockchain node (Infura/Alchemy for Ethereum, QuickNode for Solana) or public RPC.

⚙️ Parameter setting

'general:

token: "YOURTOKEN"

base_currency: "USDT"

blockchain: "ethereum"

dex: "uniswap_v3"

liquidity:

min_liquidity: 10000  # USD

max_liquidity: 500000 # USD

rebalance_threshold: 5%  # Unbalance for rebalancing

price_control:

target_range: [0.97, 1.03]

volatility_threshold: 3%  # Max. deviation in 1 hour

strategy: "twap"  # Or "vwap."

security:

max_order_size: 5%  # From liquidity

new_address_filter: 24h  # Blocking of new wallets

multisig: true  # Require 2/3 of the signatures'

🛡️ Security

Recommendations

  1. Never use the private key of the main wallet. Use a hardware wallet (Ledger/Trezor) or multisig (Gnosis Safe).

  2. Transaction limits: Set the daily limit in config.yaml.

  3. Backup: Save configuration files and cid-phrases on a regular basis.

  4. Auditing Code and smart contracts should be audited by independent auditors before use in mainnet.

🌐 Example scenarios

  • Scenario 1: Token launch

price_control:

target_range: [0.90, 1.10]

strategy: "twap"

twap_interval: 30m  #  Stretching orders for 30 minutes
  • Scenario 2: Panic protection

security:

max_order_size: 2%

new_address_filter: 48h

alert_threshold: 10% # Notification when liquidity drops by 10%

Releases

No releases published

Packages

No packages published

Languages