Skip to content

DeFi Development for Exchanges, Lending, Perps and Stablecoins

Protofire helps a team launching a new DeFi product choose the product type and a codebase whose license permits its use. Then we build the contracts, price adapters, indexer and app. In 2021 we built the DEX core for Swarm Markets. Your team operates the product.

Luis Medeiros

Reviewed by Luis Medeiros, Field CTO at ProtofireLast reviewed: November 2026

On this page
  1. Overview
  2. Why it matters
  3. Codebase licenses
  4. Why Protofire
  5. By product type
  6. What you get
  7. How it runs
  8. How work starts
  9. Who needs a license
  10. Not the right fit
  11. Platforms
  12. Related services and industries
  13. FAQ

Work shipped for 60+ networks and 95+ protocols, including

  • Chainlink
  • Ethereum
  • Solana
  • Safe
  • Ripple
  • Aave

DeFi development starts with the license of the code

The first question in DeFi development is whether the license of the code you plan to copy lets you run it for users. The answer decides which product type and which codebase you can launch.

For example, your team has settled on a product. In the first planning call, someone says to fork the code that already works. Someone else asks whether its license lets you run it for users.

A copied codebase keeps its license and lacks price feeds and liquidity

A copied codebase comes with the license of the original.For example, Uniswap's v4-core license allows copying and non-production use. Until a change date, production use needs a grant listed at v4-core-license-grants.uniswap.eth or a commercial license (license, read November 2026). The change date is no later than 15 June 2027, and MIT applies from then. Some repositories grant no license at all.

A copied codebase also has no price feed for your chain's assets, no liquidity and nobody assigned to its admin roles. If you find a license problem after deployment, the choices left are a grant, a rewrite or a relaunch. Protofire settles the release and its license before the first change.

Licenses of four codebases teams start from

The table states each license as the codebase's owner states it.

Balancer v2 and v3
The license is GPL-3.0. BAL holders approved an orderly wind-down of Balancer in Snapshot vote BIP-928, which closed on 29 September 2026 (Snapshot). Balancer archived both monorepos as read-only on 25 October 2026 (v3 repository).
Curve stableswap-ng
Swiss Stake AG says the code "has been published for informational purposes only" (license). Swiss Stake AG reserves all rights in the code, except where a source file's header provides otherwise.
Liquity V2
Liquity AG licenses the core protocol logic under BUSL 1.1. Until 1 September 2027, production use is allowed under the Additional Use Grant that the license points to, or under a commercial license. GPL-2.0-or-later applies from that date (license).
GMX Synthetics
The license file on the main branch sets the change from BUSL 1.1 to GPL-2.0-or-later. The change takes effect on 31 August 2026 or on a date set at synthetics-contracts-license-date.gmxresearch.eth, whichever is earlier. The file says the date "may vary" by version (license, read 13 November 2026). The 31 August 2026 date has passed, so read the license file of the version you copy.

These licenses were checked in November 2026 against each owner's license file, repository and Snapshot space.

Our DeFi record: Uniswap v3, Kyber, ve8020 and Swarm Markets

Third parties name Protofire's DeFi work on their own pages.

  • Uniswap v3 deploymentsUniswap governance's official list of v3 deployments names Protofire as the deployer on Redstone, Zero, Cyber, Ink, Shape, Abstract, Flow and Stable. These deployments were recognized between May 2024 and April 2026.
  • Kyber NetworkIn May 2020 Kyber Network announced the pool master proxy contract that Protofire built. The contract let KyberDAO pool operators run non-custodial KNC staking and voting delegation.
  • ve8020 LaunchpadIn 2023 and 2024 Protofire built the open-source ve8020 Launchpad, a vote-escrow staking framework. Certora audited the Launchpad's Solidity contracts and published its report in March 2024.
  • Swarm MarketsIn 2021 Protofire built the DEX core, a Balancer fork, and the subgraph for Swarm Markets, and contributed to dOTC. Swarm Markets was a BaFin-licensed DEX at launch where only KYC-verified wallets trade. Swarm held the license and ran KYC and permissioning.
  • LandXProtofire built the LandX Credit Gateway on Arenas.

The work around a DeFi product has its own record. From 2020 to 2024, Protofire was a top-3 Graph indexer by indexing rewards. Protofire is a Chainlink core contributor and helps maintain Chainlink CCIP. We deployed Safe on 120+ EVM networks, where it secures $2B+. Solhint, our Solidity linter, has 25M+ npm downloads. The Ethereum Foundation funded Solhint in Q4 2022, Q4 2023 and Q1 2025.

What each DeFi product type leaves your team to run

Your team runs the venue, its interface and terms, and the capital in the first pools. If your product is a hook over pools in an existing Uniswap v4 deployment, you run the hook. Protofire's DEX development page covers spot exchanges.

What DeFi development with Protofire delivers before launch

A document naming the release, commit and license

Your team decides with a document in hand. The document names the repository and the commit, and it lists the planned changes. It also states the license, read against your planned use.

Admin rights held by your Safe or timelock

Your team can show who upgrades, lists or pauses, and behind which delay. Protofire writes the role table and the deployment scripts, and your engineer runs the scripts with your key. After the run, the deployer has no role.

Contracts that reject stale prices

The contracts reject a stale or out-of-range price instead of using it. Protofire builds one adapter per asset, with a maximum age and bounds. We also build a sequencer check on rollups that publish an uptime feed, and keeper code that your engineers run on your hosts.

One index for the app and your reports

The app and your reports read positions, trades and parameter changes from one index. Protofire builds the subgraph and the web app for deposits, trades and positions.

Code ready for the audit firm you pick

The reviewers get a frozen commit, and the deployed bytecode matches the code they read. Protofire answers the auditors and writes a fix or a risk acceptance for each finding.

How a DeFi build runs, from pinned release to first deposit

  1. Step 1

    The proposal pins the release

    The proposal names the repository and the commit or tag. It also states the release's license and lists the planned changes.
  2. Step 2

    Changes go onto your branch

    Protofire makes the changes in a repository your team owns. The changes come with a diff against the upstream commit and tests for each changed path.
  3. Step 3

    An outside firm reviews a frozen commit

    Your team picks the audit firm. Protofire fixes what the firm finds.
  4. Step 4

    Your engineer deploys with your key

    Your engineer runs Protofire's scripts in your environment. Protofire holds no key, role or capital in the product. Your team owns the product.
  5. Step 5

    The product opens

    The price adapters, the subgraph and the app switch to the deployed addresses. Your treasury or market maker adds the first liquidity. Outside liquidators can act where the design opens liquidations to them.

How work with Protofire starts

Protofire starts from your written product goal, the target chain and a codebase you already favor.Specs or transaction exports from a comparable product also help. They are sent under NDA, with user addresses taken out.

Proposal
In writing, one business day after the discovery call: findings, a plan in phases and the first step we recommend.
Price
Fixed per phase when you commission it, against written acceptance criteria. Overruns inside them are ours to absorb, invoices follow delivered milestones, and you can stop at any phase boundary. Anything we operate after launch is priced in the proposal as its own recurring line, with the notice to end it.
Ownership
Code we write for you, contracts, the keys and credentials this work creates and the accounts your infrastructure runs in are yours by contract, within the license of any third-party software involved. Keys that a custody platform or a staking provider holds under its own key model stay with it under your contract; every other custody key stays with you or the custodian you appoint. Where the scope places something on servers we rent, it says what moves to you and when. An NDA is available from your first message, and we sign a data processing agreement (DPA) together with it.
After launch
Delivery closes with a hypercare window and a defect warranty, with their terms written into the proposal. A service we operate continues under its written scope until that scope ends.
Access
Read-only by default. A role that can start requests only if your written scope names one; never a signer, approver, administrator, key holder or recovery role on your contracts, wallets or custody platform. Services we build call each platform on credentials your staff issue and keep in your vault. Anything that approves or moves funds runs in your environment, and a scope under which we operate a service lists every write call it makes. Where the scope has us operate nodes, validators, monitors, explorers or indexers, it names the role and any key we hold on those servers, and in your own cloud account you can remove it.
Licenses
Protofire is an engineering firm and holds no financial or crypto-asset license; licensed activity stays with you and your providers.

How we work shows a worked proposal.

Who operates the product, and who needs authorization

The team that launches a DeFi product operates it and holds whatever authorization the activity needs.In the EU, MiCA lists the "operation of a trading platform for crypto-assets" as a crypto-asset service (MiCA). MiCA limits that service to providers authorized under MiCA and to the firms named in Article 60 (Article 59).

In the US, the GENIUS Act makes it unlawful for anyone other than a permitted issuer "to issue a payment stablecoin in the United States". The Act's effective date is 18 January 2027 or, if sooner, 120 days after final rules (Section 20 of Public Law 119-27).

Protofire holds no license and gives no legal opinion. Your counsel decides how each text bears on your product.

A DeFi service’s claim that it is or plans to be “fully decentralized” does not impact its status as a financial institution under the BSA.
U.S. Department of the Treasury, Illicit Finance Risk Assessment of Decentralized Finance, US Treasury department · Risk assessment, Executive Summary, April 2023

When a DeFi product build with Protofire does not fit

  • A protocol that already runs. The roles, oracle guards and keeper code of a running protocol are the work of DeFi protocol engineering.
  • Contracts with no product decision behind them. Such contracts are the work of smart contract development.
  • Capital and risk settings. Your treasury or a market maker you contract provides the liquidity and the funds that liquidation bots spend. Protofire provides neither. Your risk team sets collateral limits, caps and funding curves, and our scripts include those values.
  • Running the venue. Your firm onboards users and holds their funds. A waiver or commercial license for a release comes from the release's licensor.

Platforms we integrate for a new DeFi product

Lending, perpetuals and collateral-backed stablecoins read prices from an oracle network.A Safe can hold the admin roles of the contracts your team deploys.

Aave

Lending protocol with a permissioned market for RWAs.

Left to you: Lenders and borrowers: the signing wallet, client attribution, interest and liquidation booking, and watching health factors and steward changes. Horizon borrowers: qualification with each fund's issuer, which keeps a role over the position.

Aave integration

Morpho

Isolated lending markets, variable and fixed rate, with curated vaults.

Left to you: Keys to any vault role you take and any allocator bot you run, checking each market's oracle, watching the curator's pending changes, your wallet structure, booking shares, in-kind exits and realized losses, the Powered by Morpho notice with its acknowledgment, and your own licensing.

Morpho integration

Chainlink

Oracle feeds and CCIP for cross-chain transfers.

Left to you: Choosing feeds, the contracts that read them, and monitoring.

Chainlink integration

Safe

Multisig smart accounts.

Left to you: Deployment on networks where Safe is not live yet, the Transaction Service that collects signatures, owner and threshold setup, Safe modules and guards, and monitoring.

Safe service page

All 76 platforms we integrate

FAQ

What is DeFi development?
DeFi development builds financial products that run on smart contracts. The products include exchanges, lending markets, vaults, stablecoins, perpetual futures and staking. At Protofire, DeFi development starts with choosing a product type and a codebase whose license fits the planned use. Then Protofire builds the contracts, price adapters, indexer and app. The team that launches the product operates it.
Who can build a DeFi exchange, lending market or vault for our team?
Protofire can build them for a team with a product goal and an EVM target chain. We pin the release and its license and change the code in your repository. We build the price adapters, subgraph and web app and prepare the code for an outside audit. Your team holds the roles and funds the liquidity.
Should we fork an existing protocol or write new contracts?
Fork an existing protocol when a released codebase does what your product needs and its license allows your use. Write new contracts when no release meets both tests. Upstream audit reports cover the upstream code at the commits they name. So your changes and your deployment need their own review.
Who supplies liquidity when the venue launches?
Your team supplies the liquidity. The liquidity can come from your treasury, from a market maker you contract, or from outside providers drawn by incentives your team funds. Protofire builds the pool and incentive contracts and the subgraph that shows depth. Protofire provides no capital and makes no markets.
Is the code Protofire writes audited?
The code Protofire writes is audited by an outside audit firm that your team picks. Protofire prepares the code, answers the auditors and fixes the findings. An audit does not guarantee that the code has no bugs.
Who maintains the product once it is live?
Your team operates the product once it is live. Under a written scope, Protofire maintains the contract, keeper, subgraph and app code in your repository. Your engineers deploy each release with your key.
Which chains can Protofire build a DeFi product for?
Protofire builds DeFi products for EVM networks. The choice of chain turns on three checks. Price feeds have to exist for the assets you list. An indexer has to support the chain. The release you start from has to run on that chain's EVM version.

Get a proposal

Tell us what you are building. An engineer reads it, we have a short call, and the written proposal follows within one business day.

Luis MedeirosField CTO, reads every request · LinkedIn

A demo or repository link also works.