Web3 · Engineering

DeFi Protocol Development

Most DeFi protocols fail at the mechanism, not the code: an interest-rate curve that runs insolvent, an AMM that bleeds liquidity to arbitrage, a liquidation path that never fires. DeFi protocol development services turn that mechanism design into a live, audited product. We engineer the lending markets, AMM pools, perpetual exchanges, and yield vaults that hold real money, plus the keepers and oracles that keep them solvent.

  • 1 monthYield + banking module
    OrbitXpay
  • 4Hacken audit rounds
    Neemo Finance
  • EVM · Solana · CosmosChains we ship on

In short

What is DeFi Protocol Development?

DeFi protocol development services are an on-chain financial engineering practice for protocol founders that ships audited lending, AMM, perpetual, and yield-vault mechanisms with the keepers and oracles that keep them solvent. Our Neemo Finance lending and AMM contracts cleared four separate Hacken audit rounds on Astar. For OrbitXpay we delivered yield protocols and a banking module in one month.

What we deliver

Concrete artefacts, not capabilities

  • 01

    Core mechanism contracts: lending, AMM, perp, or vault logic.

  • 02

    Oracle integration with fallback feeds and circuit-breaker thresholds.

  • 03

    Keeper infrastructure for liquidations, settlements, and rebalancing.

  • 04

    Subgraph or indexer powering health metrics and frontend data.

  • 05

    Mainnet deployment scripts, multisig handover, and a parameter runbook.

Key concepts

Key terms, defined

Constant-product market maker
A constant-product market maker is an automated market maker that prices a swap so the product of its two pool reserves stays constant: x times y equals k. Each trade moves reserves along the curve, and the price is the ratio of reserves. Larger trades against a thin pool incur more slippage, which is the basis of AMM price discovery.
Health factor
A health factor is the ratio of a borrower’s collateral value, weighted by its liquidation threshold, to the value they have borrowed. A health factor above one means the position is solvent; at or below one the position becomes liquidatable. Lending protocols read this value continuously to decide when keepers may seize and repay collateral.
Liquidation
Liquidation is the process by which a lending or perpetual protocol closes an undercollateralised position to protect solvency. A keeper or liquidator repays part of the debt and seizes collateral plus a bonus. Reliable liquidation depends on a fresh oracle price and a keeper that fires before the position goes underwater.
Yield vault
A yield vault is a smart contract that pools deposits and routes them into a strategy that earns return, then distributes that return to depositors as share appreciation. Vaults abstract gas and rebalancing away from the user. The core risks are strategy failure, oracle manipulation on the share price, and the keeper that triggers compounding.

How we work

Engagement phases

  1. Mechanism spec

    We translate the economic intent into a written specification: interest-rate curves, collateral factors, the constant-product or stableswap invariant, funding-rate logic, liquidation incentives, and fee splits. Each parameter carries a stated range, a rationale, and a failure mode. The spec becomes the engineering brief and the first document the external auditor reads.

  2. Contracts & off-chain

    We build the mechanism contracts against the spec while the keepers, indexer, and oracle layer go in parallel. Property-based tests assert the invariants that matter: solvency, accounting conservation, and role isolation. Fork tests replay the protocol against historical mainnet state, so liquidation and settlement paths are exercised before mainnet, not after.

  3. Audit & hardening

    The contract suite goes to a firm chosen with you. We respond to findings within 48 hours and ship fixes against a second-round review. Our Neemo Finance lending and AMM contracts cleared four separate Hacken audit rounds on Astar. Oracle assumptions, keeper failure modes, and admin-role boundaries are documented for the auditor before review opens.

  4. Launch & operate

    Mainnet deployment runs from a reviewed script. We verify sources on the explorer, transfer admin to your multisig, and start keeper and indexer services under monitoring. After launch we run incident response on a defined SLA, ship parameter changes through governance, and hand over runbooks. For OrbitXpay we delivered yield protocols and a banking module inside one month.

Tech stack

What we build on

  • SolidityLanguage
  • VyperLanguage
  • FoundryTesting
  • ChainlinkOracles
  • PythOracles
  • The GraphIndexing
  • GelatoKeepers
  • TenderlyMonitoring
  • SlitherStatic Analysis
  • SolidityLanguage
  • VyperLanguage
  • FoundryTesting
  • ChainlinkOracles
  • PythOracles
  • The GraphIndexing
  • GelatoKeepers
  • TenderlyMonitoring
  • SlitherStatic Analysis

Scope

When this fits and when it doesn't

When this engagement fits and when it does not.
This fits whenThis doesn't fit when
You have a lending, AMM, perp, or vault mechanism and need the contracts, keepers, and oracles built together.You want to fork an existing AMM or lending market and rebrand it without economic review.
External audit is part of the launch budget, and solvency under stress is a hard requirement.The token needs a launchpad or sale mechanic, not an operating financial protocol.
The protocol has a definable oracle source, liquidation model, and admin-role boundary.Off-chain keeper and indexer work is expected to be handled by a separate vendor.
FAQ

Frequently asked questions

DeFi protocol development services build the on-chain financial mechanism a protocol runs on: lending markets, AMM pools, perpetual exchanges, or yield vaults. The work covers the mechanism specification, the contracts that enforce it, the oracles that price collateral, and the keepers that handle liquidations and settlements. We engineer for third-party audit from the first commit rather than retrofitting it later.

Last reviewed · Reviewed by Metaborong engineering team

Got a project in mind?

Tell us what you are building.

We build what large agencies under-deliver and freelancers can't architect, across Web3 protocols, AI agents, and SaaS products. Tell us what you are building. We will tell you how we would approach it, no pitch deck, no fluff, no commitment required.

Start a conversation
Reply within 12hNo pitch deck. No commitment.contact@metaborong.com