Comment on page
Adding liquidity manually
for farm bots with low existing liquidity (making zap-ins infeasible)
If, however, you're hoping to add liquidity for a farm bot that *isn't yet listed on our zap page* (probably due to low existing liquidity), then you've come to the right place!
For these instructions I will use the PACT-CELO farm bot as an example. However, they should generalize well to other kinds of farm bots.
Self-explanatory. Just decide how much $$ you want to spend on adding liquidity. Consider the risks.
For this step, use the DEX for the farm you want to add liquidity for. (For now, this is probably Ubeswap, though we'll add Sushi and others soon.)
First, take half the $ you want to invest. Swap half of this (so about a quarter of your total investment) for token A in your underlying pool-- for the example, this is PACT. Swap the other half (again, a quarter of the total) for token B (Celo).
When you're done adding liquidity, you should have LP tokens for the pair. Yipee!
Here's the fun part, you get to deposit your LPs in an auto-compounding rewards contract.
First locate the LP token address of your liquidity pool. One easy way of finding this is to look at the Celo explorer page for your wallet address and find the address of the ULP you just received (should be under "token transfers"). Or if you're following along the PACT-CELO example, you can find it here. (More generally, you can use the
pairFormethod on a Router contract to find the pair, such as Ubeswap's router here.)
We don't yet have a UI for the deposit step yet, but there's a script that should make it easy. It lives here. To avoid the hassle of getting the build to work (hardhat/typechain makes this painful), I recommend running it with ts-node. Also, you'll need to paste in your LP token address and FP token address here (lame, I know-- working on it). Also, remember to define
LP_AMOUNTas environment variables.
The next step is to add your RFP to a liquidity pool. Currently, all Revo zap-in pools consist of mcUSD plus an RFP token. We chose mcUSD because it's interest-bearing but relatively stable in value, and has good liquidity to most other tokens on Ubeswap.
First, swap the half of $$ you set aside for adding liquidity for mcUSD.
Then navigate to your DEX's add liquidity page again. Tap "add liquidity", select mcUSD for one side, and type in the amount. Then hit the selection dropdown for the other side of the pair. You'll need to add a custom token for this part, since RFP's are not listed on any DEX. To do this on Ubeswap, tap "manage", then "tokens", and paste in the Farm Bot address (that is the same as your RFP address).
Select "max" for the RFP. If it leaves you with a lot of RFP left over, contact a Revo developer on discord and alert them to this (or conduct arbitrage yourself!).
If you added enough liquidity to get us to about $6,500 in total in the liquidity pool, we'll consider adding the farm bot to our homepage to let other users zap in! (With $6500 in the pool we can support zap-ins for up to $100 for less than 3% price impact.)