Yield Bot: A simple bot providing liquidity around a price oracle (for example based on Compound, Aave, or staking etc)
This simple Node.js bot is for DeversiFi. This bot aims to simply keep one large sell ordre and one large buy order on any specified market, at prices determined by an oracle.
- Create a new Ethereum account and fund with ETH
git clone https://github.com/DeversiFi/yield-bot.git
- Copy
config.example.js
=>config.js
- Get an Alchemy URL and enter use it to populate the config file: here
- Enter your Ethereum private key here (prefixed with 0x): here
- Choose the market pair you want to trade and update it here
Once the above setup is complete, you can use the following instructions:
npm install
node setup
- registers and deposits your ETH to the exchange
node cusdt
- starts the bot!
This example uses an API provided by compound to give the price.
In production we are using this for the following markets:
- CUSDT:USDT
- DVF:xDVF
Both of these are run by the account: 0xbBD430c6FD183331B35Ee4Fd3BFcA7cB6437C6e4
Please fork and use!