Swap Pancake Bot
Swap Pancake Bot 旨在实现即时交易,无需在 PancakeSwap 网站上导入新 Token,从而在竞争中赢得几秒钟的优势。
安装
访问 dart 网站并在您的计算机上安装它。
交易配置
访问 lib/consts.dart 文件
将这些常量配置为您喜欢的内容。
abstract class BotConsts {
static const String privateAddr = ''; // Your private key here
static const String wbnbAddress =
'0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c';
static const int buyAmountGwei = 300000000; // 0.3 bnb
static const int minLiquidity = 3;
static const int slippage = 5; // 0.05%
static const int gasPrice = 6; // in gWei
static const int gasLimit = 215684;
}
用法
进入 bin/ 文件夹
并执行以下命令
dart swap_snipe.dart
执行后,机器人将询问您要兑换的地址
'Digite o endereço do token: '
请记住,默认情况下是 WBNB -> TOKEN,如果您想进行不同的兑换,则需要更改 BotConstants 中的合同地址。
贡献
欢迎 Pull requests。对于重大更改,请先打开一个 issue 来讨论您想进行的更改。
请确保适当地更新测试。