Skip to content
@usefarlight

Farlight

Peer-to-peer lending against tokenized stocks on Robinhood Chain. Fixed term, overcollateralised, non-custodial. Every loan public.

Farlight

Fixed-rate loans between people, secured by tokenized stocks, settled on Robinhood Chain.

Website  ·  Platform  ·  Docs  ·  Observatory  ·  @usefarlight

Robinhood Chain Settled in USDG Solidity 0.8.26 Built with Foundry MIT licence


The short version

Farlight is a lending market with no pool in the middle. A borrower locks Robinhood Stock Tokens as collateral and draws USDG from one lender or many, at a rate the two sides agreed on. The term is fixed. The rate is fixed. Every state change lands on Robinhood Chain, where anyone can read it.

Private banks have run this product for decades and call it a Lombard loan. We moved it on-chain, swapped the relationship manager for a public order book, and replaced the legal process with a Dutch auction.

How a loan runs

  1. Request. A borrower posts collateral, the USDG they want, the highest APR they will pay, a term from 7 to 90 days, and a deadline for fills.
  2. Offer. Lenders sign EIP-712 offers off-chain. No gas, cancellable at any time, aimed at one request or left standing on the book like a limit order.
  3. Originate. One transaction checks every signature and eligibility, escrows the collateral, pulls USDG from each lender and mints a slice token per lender.
  4. Accrue. Interest is simple and fixed, counted per second. After the minimum interest period, the borrower can repay whenever they like.
  5. Roll over. Before maturity the borrower can open a rising-rate auction. New lenders step in, old lenders are paid out, and there is no cliff at the end of the term.
  6. Liquidate. If the health factor drops below 1.0, anyone can start a 45 minute Dutch auction. Lenders are paid first. What remains goes back to the borrower.

One request can be filled by three lenders or thirty. Each slice is isolated, so the lender who priced the risk is the one holding it.

What we hold to

  • Collateral sits in an immutable escrow contract and is always worth more than the debt.
  • Nothing moves until a loan originates. A signed offer is only a message.
  • Losses are never shared across loans. Bad debt hits the lender who priced it, nobody else.
  • Repayment, and withdrawing collateral after repayment, cannot be paused by anyone.
  • Every change of state emits an event. The book, the loan registry, oracle status and the governance log are open.

Repositories

Repository What lives there
farlight-contracts The Foundry project. LoanDesk, IntentBook, the collateral and rollover auctions, PriceGate, AccessRegistry, SliceToken, PolicyController, Treasury, and the deployment scripts.
farlight-web The website at usefarlight.com and the lending platform at /platform. Next.js, Privy for sign-in and gasless signing, Supabase for the shared book.
farlight-docs GitBook source for the documentation: protocol mechanics, risk register, architecture, compliance model and user guides.

Contracts, relayer, indexer and keeper bots are open source with reproducible builds. Contract addresses are published on the documentation site and the website only, never in a README, an issue or a post.

Network

Chain Robinhood Chain, an Arbitrum Nitro L2, chain ID 4663
Loan asset USDG, the Paxos Global Dollar
Collateral Robinhood Stock Tokens. Tokenized treasuries and fund shares are on the roadmap.
Terms 7, 14, 30 or 90 days, fixed rate, syndicated across any number of lenders
Prices Chainlink Data Feeds and Data Streams, gated by session, staleness and move-cap checks

Run it locally

# contracts
git clone https://github.com/usefarlight/farlight-smart-contracts
cd farlight-smart-contracts
forge soldeer install
forge test -vv

# website and platform
git clone https://github.com/usefarlight/farlight-web
cd farlight-web
npm install
npm run dev

The architecture section of the docs explains how to deploy the full stack against a local Anvil node and point the platform at it.

Contributing

New here? Start with What Farlight is and the eight design rules. If you want the mechanics, read the loan lifecycle and the offers and matching pages next.

Issues and pull requests are welcome across all of the repositories above. For anything that touches the contracts, open an issue first so we can talk the change through before you spend time on it.

Security

Please do not open a public issue for a vulnerability. Send findings to security@usefarlight.com. Responsible disclosures get an acknowledgement within one business day and are eligible for the bounty described in the documentation.

Contact

General questions go to hello@usefarlight.com. We also read replies and messages on X.

Pinned Loading

  1. farlight-web farlight-web Public

    Farlight Web

    TypeScript 1

  2. farlight-docs farlight-docs Public

    Farlight Documentation

    1

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…