Skip to content

rhinofi/yield-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Steps to use:

  1. Create a new Ethereum account and fund with ETH
  2. git clone https://github.com/DeversiFi/yield-bot.git
  3. Copy config.example.js => config.js
  4. Get an Alchemy URL and enter use it to populate the config file: here
  5. Enter your Ethereum private key here (prefixed with 0x): here
  6. 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!

Example:

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!

Releases

No releases published

Packages

No packages published