Skip to main content

Introduction

Farmenta is a lending protocol on Robinhood Chain. It accepts a Uniswap v4 liquidity position as collateral, so a liquidity provider can borrow USDG without first closing the position and selling what is inside it.

Think of a pawn shop that accepts a working vending machine. You hand over the machine, you receive cash, and the machine keeps selling drinks for you while it sits in the shop. When you repay, you get the machine back. In Farmenta the machine is your liquidity position, the cash is USDG, and the drinks money is the trading fees your position keeps earning.

A small example​

Budi provides liquidity to the ETH/USDG pool on Uniswap v4. His position is worth $20,300. He needs $12,000 for a few months, but he does not want to close the position and stop earning fees.

  1. Budi deposits his position into Farmenta. The position is now held by the market contract as collateral.
  2. He borrows 12,000 USDG. The Blue-chip market lets him borrow up to 65% of the position's value, which is $13,195.
  3. While the loan is open, the position keeps earning Uniswap fees, and those fees still belong to Budi.
  4. Budi repays the 12,000 USDG plus interest, and takes his position back.

The USDG that Budi borrowed came from lenders such as Lina, who supplied USDG to the market to earn interest.

Who takes part​

RoleWhat they doWhat they get
LenderSupplies USDG to a marketInterest paid by borrowers
BorrowerDeposits a Uniswap v4 position and borrows USDGLiquidity without closing the position
LiquidatorRepays part of an unhealthy loanA slice of the collateral plus a bonus
OwnerLists pools, sets risk parameters, can pauseNothing from users directly. See owner powers

What makes Farmenta different​

  • The collateral is the position itself. Farmenta uses the position NFT issued by Uniswap's own PositionManager. There is no wrapper token and no Farmenta NFT.
  • Positions are valued at the oracle price. Token amounts are computed at the oracle price, not at the pool's current price. In the Blue-chip market that price comes from Chainlink, so moving the pool price does not change what a position is worth. In the Meme market the price comes from the pool itself, as the lower of the current price and the 30 minute average. See how positions are valued.
  • Going out of range does not trigger liquidation. Only the health factor does.
  • Two isolated markets. A loss in the Meme market cannot reach lenders in the Blue-chip market. See markets.
  • Every pool is reviewed before it is accepted. Nothing is listed automatically. See pool listing.
  • Two fees, and no others. A share of borrower interest, and a small fee paid by liquidators. See protocol fees and reserves.

Current status​

Deployed on Robinhood Chain

Farmenta's contracts are deployed on Robinhood Chain (chain id 4663). Their addresses are on the contract addresses page.

Before you supply or borrow, read risk and security. It explains who carries which risk and what limits it.

Where to start​

If you want to...Read
Understand the whole flow in ten minutesHow it works
See every step with numbersWorked example
Know when your loan can be liquidatedHealth factor, LTV and liquidation threshold
Supply USDG and understand your riskInterest rates and bad debt
Run a liquidation botGuide for liquidators and keepers
Integrate with the contractsContract architecture
Look up a termGlossary