Contract architecture
The Farmenta contracts, what each one does, how they depend on each other, and the rules that hold across all of them.
FarmentaMarket
Function reference for the Farmenta market, covering lenders, borrowers, liquidators, the owner, and the pause and freeze rules.
MarketLens
Read-only views for one Farmenta market, including health factor, borrowing capacity, liquidation checks and reserve availability.
CollateralPolicy
Reference for the contract that lists pools, stores their lending terms, and enforces the tier presets, freezes and LT ramps.
PriceOracle
Reference for the Farmenta price oracle, covering Chainlink prices for ETH and USDG and TWAP based prices for meme tokens.
TwapRecorder
Reference for the permissionless tick recorder that produces the 30 minute TWAP used to price meme tokens.
PositionValuer
Reference for the stateless view contract that values a Uniswap v4 position at oracle prices and reports its uncollected fees.
InterestRateModel
Reference for the contract that turns market utilization into a borrow rate per second, with the curves of both tiers.
LiquidatorHelper
Reference for the periphery contract that combines a Morpho flash loan, a Farmenta liquidation and a collateral swap in one transaction.
Events
Every event emitted by the Farmenta contracts, with exact signatures, indexed arguments and when each one is emitted.
Errors
Every custom error of the Farmenta contracts, what it means in plain words, and what the caller can do about it.
Risk parameters
Every risk parameter of the Blue-chip and Meme markets, with units, plain-language meanings, and the values a pool listing can tighten.
Contract addresses
Addresses of the Farmenta contracts and of the Uniswap v4, Chainlink, Morpho and token contracts Farmenta uses on Robinhood Chain.
Network: Robinhood Chain
Chain id, RPC endpoints, block explorers and the rollup properties of Robinhood Chain that matter when you use or integrate Farmenta.
Indexer data
Tables, HTTP routes and reading rules of the Farmenta indexer, which records on-chain events and serves the list of pools, positions and loans.