Bot that executes limit orders on Gains.farm, the decentralized leverage trading platform on Polygon.
- We recommend creating a specific address/wallet, otherwise it might create problems if you use the address the bot uses while it's running (nonce errors).
-> You can send all your NFTs to this new wallet using the block explorer, using the "transferFrom" function.
Links to the NFTs:
https://polygonscan.com/token/0xf9a4c522e327935bd1f5a338c121e14e4cc1f898#writeContract https://polygonscan.com/token/0x77cd42b925e1a82f41d852d6be727cfc88fddbbc#writeContract https://polygonscan.com/token/0x3378ad81d09de23725ee9b9270635c97ed601921#writeContract https://polygonscan.com/token/0x02e2c5825c1a3b69c0417706dbe1327c2af3e6c2#writeContract https://polygonscan.com/token/0x2d266a94469d05c9e06d52a4d0d9c23b157767c2#writeContract
- Your wallet needs to hold a small amount of the Wrapped ERC677 LINK token
Because the "normal" LINK token on Polygon is an ERC20, and oracles only support the ERC677 version, you will need to convert your LINK tokens here: https://pegswap.chain.link/
Each request to trigger an order will cost 0.008 LINK (to pay our node operators for our real-time feed).
git clone https://github.com/GainsFarm/nft-bot.git
npm install
- Set WSS_URLS to your dedicated WSS endpoints (recommended, but ignore if you don't have any)
- Set PRIVATE_KEY to your account's private key (needed to sign the transactions)
- Set PUBLIC_KEY to your account's public key
npm start
Fork this repo to make your own one.
In heroku: New > Create new app > ...
Then use the following buildpacks (in Settings):
- heroku/nodejs
In Heroku: Settings > Reveal Config Vars > Add
- Connect Github to your account
- Deploy your main branch