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.

Reviewed by Luis Medeiros, Field CTO at ProtofireLast reviewed: November 2026
On this page
Work shipped for 60+ networks and 95+ protocols, including
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.
On contracts your team deploys, you run the keeper and liquidation bots with your key and capital. On D8X's white-label route, you make the broker-lot payment that D8X requires (D8X). You also sign the trader, deadline and fee of each order you broker. Protofire's perpetual DEX development page covers perpetual futures.
Your team runs the market, its listings and its liquidation path. The market can start from Morpho Blue, from new contracts or from a fork of a lending protocol whose license you have read. White-label lending covers a market your firm owns. Aave integration covers positions in markets that exist.
On Morpho Vault V2, your Safe holds the owner role, and that role sets the curator and the sentinels. The curator configures caps, allocators and fees through timelocks it sets. Depositors keep their shares in their own wallets. You can start from an ERC-4626 vault, from ERC-7540 where redemptions settle later, or from Vault V2 through Morpho integration.
Your team runs the mint and redemption path and the issuer role, with the authorization that its regime sets. The stablecoin models guide helps you choose between collateral positions onchain and reserves held off-chain. Then read native stablecoin.
Your team runs the roles over the staking contracts from your Safe or timelock. Holders bear the price moves of what they lock. Staking modules cover stake, unbond and claim. Liquid staking adds a transferable receipt token. Vote-escrow staking locks tokens for a chosen term, with vote weight that decays.
Your team runs the distributor, and your Safe funds and owns it. An offer of tokens to the public is your firm's act, and your counsel weighs it. Airdrop development builds the claim contract and the claim page. Token launch covers the token itself.
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
- 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. - 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. - Step 3
An outside firm reviews a frozen commit
Your team picks the audit firm. Protofire fixes what the firm finds. - 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. - 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.
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 integrationMorpho
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 integrationChainlink
Oracle feeds and CCIP for cross-chain transfers.
Left to you: Choosing feeds, the contracts that read them, and monitoring.
Chainlink integrationSafe
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 pageFAQ
What is DeFi development?
Who can build a DeFi exchange, lending market or vault for our team?
Should we fork an existing protocol or write new contracts?
Who supplies liquidity when the venue launches?
Is the code Protofire writes audited?
Who maintains the product once it is live?
Which chains can Protofire build a DeFi product for?
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.
