GitXplorerGitXplorer
m

pancakebunny-bot

public
10 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
c6c66288423df058816d77f702590339b8b2f992

fix comments, enable return

mmakevoid committed 4 years ago
Unverified
4dab28f8de41005e28fa857a2fb1de4588c352bc

cleanup // comments

mmakevoid committed 4 years ago
Unverified
ba4d6de4c9ea5edca11961536fd272aa2333e7cf

uncomment return

mmakevoid committed 4 years ago
Unverified
554850864d1e120c71d7d92944cb9e4ef2c731fa

fix await - resolvetx

mmakevoid committed 4 years ago
Unverified
6769c6bbb1cd69bba1cf1521899fa6161952e6f0

put a fixed gas amount

mmakevoid committed 4 years ago
Unverified
dafa9f8e1b22638787a2c5c963a4173bc11b0d89

better init code

mmakevoid committed 4 years ago

README

The README file for this repository.

pancakebunny-bot

A PancakeBunny bot that does automatic token claim every week, it also has a function to withdraw if a price is reached with this strategy:

Pool A) a high APY crypto pool (e.g. CAKE / BUNNY) Pool B) a more stable (but lower APY) flip pool or stablecoin (e.g. USDT-BUSD, BTC-BNB, USDT-BNB, BUSD-BNB, USDT, BUSD etc.)

e.g. Swap price set to 24-30

Assuming the bot starts with 10 CAKE and the price is 35

  • The price falls to 30
  • The bot withdraws the tokens from the CAKE pool
  • Zaps all CAKEs to USDT-BUSD
  • Deposits the USDT-BUSD to the USDT-BUSD flip pool
  • The price falls to 23 then rises to 25
  • The bot withdraws the USDT-BUSDs and zaps them to CAKEs
  • then it deposits them to the CAKE pool again

(this feature is in WIP, at the moment the bot can only claim tokens every week)

Setup

  • download the code from github to your local machine
  • make sure your local machine is safe (fresh new linux install recommended)
  • export your ethereum BSC private key from metamask and save it into a file named "~/pancakebunny-private-key.txt"
  • make sure you have sufficient BNB balance (10-20$ should be alright)
  • make sure you have sufficient Token balance (e.g. CAKE) - (if this is the first time testing the bot, please put a low amount of Tokens (CAKEs), I cannot guarantee that the bot is bug free, always check bscscan and the bot logs, if you see an error stop the bot, use this code at your own risk, end of the disclaimer, you have been warned :])
  • run npm install
  • go on https://pancakebunny.finance/zap - select Bunny on the top select box - Click the approve button to approve zapping Bunny
  • go on the pool you want to configure (e.g. https://pancakebunny.finance/pool/CAKE) and click approve (e.g. approve CAKEs on CAKE Pool)
  • make sure you have some BNBs on the account to pay for the gas fees or the transactions will fail

Run

to run the bot, execute the start command:

npm start

LICENSE

GPLv3 - use this code at your own risk

@makevoid