Sup, over the past months I got more and more interested in ‘DeFi-Farms’, well in most cases they are shitcoins that will dump in value relatively quickly.
But until they dump they might deliver some profitable yield
So I wrote a Bot which automatically ‘harvests’ and sells earnings from those sites. It was relatively easy because most sites use a minimal(if at all) changed MasterChef.
The bot has settings such as:
– Target Token
The Bot follows this basic procedure:
1. Check PendingRewards (function has to be defined in the config)
2. Harvest Rewards (function has to be defined in the contract, in most cases its ‘deposit’)
3. Swap Rewards to desired Token (Token and Slippage needs to be set in config)
Source can be found [here](https://github.com/Z8pn/defi-auto-farm)
I included a example for iron.finance in the repo
The bot can be set up that it posts every harvest/swap into a discord server(webhook needed)
Here is an example of how the output can look like
if you need any help with this (i wont set it up for you), you can throw me a DM or message me on discord 0xZ8pn#0101