Protocol mechanism design
The pricing curve, interest rate model, collateral factors or reward schedule, written as formulas with explained assumptions rather than buried in code.
Service · Blockchain
Commission us to design and build decentralised finance protocols where the maths and the incentives matter as much as the code. We work through pricing curves, collateral rules, oracle feeds and liquidation paths before any contract is written.
Economic model simulated before coding
Oracle failure paths tested
Risk parameters documented per asset
Deliverables
The pricing curve, interest rate model, collateral factors or reward schedule, written as formulas with explained assumptions rather than buried in code.
Scripts that replay historical prices and stress scenarios against the model, showing how pools, reserves and positions behave in crashes and liquidity droughts.
Price feeds from providers such as Chainlink or time-weighted on-chain prices, with staleness checks, deviation limits and a defined behaviour when a feed stops.
Health checks, liquidation incentives and the off-chain bots that call them, designed so positions are closed before they become bad debt.
Per-asset limits, caps and factors with the reasoning behind each, plus the governance process for changing them after launch.
Early decisions
Constant product, concentrated liquidity, stable-swap curves or an order book, chosen by the assets traded and how much capital efficiency liquidity providers expect.
External feeds, on-chain TWAPs or a combination. Spot prices from a single pool are the classic route to manipulation and are ruled out early.
Which assets are accepted, at what loan-to-value, with what supply caps, and how thin-liquidity or rebasing tokens are excluded or contained.
Which external protocols yours depends on, and how a pause, exploit or upgrade in one of them would propagate into your users’ positions.
Whether a multisig, token vote or risk committee adjusts parameters, and the timelock that gives users time to react.
Engagement
We write the protocol’s rules as maths and plain English, identify who earns and who pays in every action, and list the economic attacks the design must resist.
The model runs against historical and synthetic price paths, including flash crashes and oracle delays, until parameters hold up under scenarios you agree are plausible.
Contracts are built to the specification with invariant tests on solvency and accounting, alongside the keeper and monitoring services that keep the protocol healthy.
Deployment with supply caps and limited assets, external audit, live dashboards for utilisation and health factors, and caps raised only once real behaviour matches the simulations.
Fit
Swaps, lending, vaults or derivatives where the rules themselves are novel and need testing as economics, not just code.
Your protocol works but you are unsure how it behaves under oracle failure, mass withdrawals or a depegged asset.
Bad debt is the main risk, and you need keepers, incentives and monitoring designed together.
Alternatives
Access rules, registries or escrow without pricing or leverage are better served by general contract engineering.
Open registerIf users deposit with you and you match orders off-chain, that is an exchange build with custody and compliance at its core.
Open registerWhen the protocol already exists and the gap is usability, a dApp front end is the right scope.
Open registerMany large losses involved code that did exactly what it was written to do. An attacker borrowed heavily, moved a thin pool’s price, and used that price as collateral. The bug was in the economics: trusting a manipulable price.
That is why we specify and simulate the mechanism before treating it as a coding task.
Every lending market and derivative depends on knowing a price. We decide the source, the update frequency, the acceptable delay and the fallback for each asset, and we test the protocol with feeds that freeze, jump or disagree.
The liquidation function only works if someone calls it in time. That depends on incentives large enough to attract keepers, gas conditions during volatility, and enough market depth to sell seized collateral. We model all three and run our own keeper as a backstop.
Supply caps, a short asset list and conservative factors make the first weeks dull, which is the point. Real usage reveals behaviour no simulation predicted, and caps keep any surprise affordable.
FAQ
No honest team can. We reduce risk through specification, simulation, invariant testing, internal review and external audits, and we design caps and pauses so that an unknown bug has a limited blast radius.
We design the protocol’s fee, reward and incentive flows where they affect its mechanics. Token issuance and distribution raise legal questions that need specialist advice outside our service.
Chainlink feeds are common, along with on-chain time-weighted prices and other providers depending on the chain. The design always defines what the protocol does when a price is stale or out of bounds.
Increasingly, and differently by jurisdiction, particularly where there are identifiable operators or front ends. We build with that in mind, but you should obtain legal advice on your own position.
Related services
Dashboards for utilisation, reserves and liquidations that risk teams and users can both trust.
Open registerSmart-account or embedded wallets that make multi-step DeFi actions possible in one signature.
Open registerResilient hosting for keepers, indexers and price monitors that must never quietly stop.
Open registerPrimary sources
Dated official documentation, standards, and research that support the factual claims on this page.
How to read this page
Scope, cost and timeline figures are planning guidance until confirmed in a written proposal. Diagrams and screens are illustrations, not client deliverables, and source-code rights and handover follow the signed agreement. See the delivery process and the full disclaimer.
Next decision
Define outcomes, constraints, evidence, rights and handover before delivery begins.
Commercial rights, repositories, environments, documentation, acceptance and handover remain contract-defined.