
In this guide
The decisions and working steps ahead.
Walk one position through a price move
Decide whether to integrate or build the protocol
Run a pilot that produces evidence
On this page
If customers only need to deposit or swap through a service that already exists, ask for a quote to connect your product to it. A new protocol makes sense when you need to set a rule that the existing service cannot enforce. A lender that needs to accept a different kind of collateral, for example, is making a much larger purchase than a team that needs a branded deposit screen.
Give prospective suppliers the same transaction. Ask what the customer sees, where the funds go and what evidence your support team will have if the wallet disconnects halfway through.
Walk one position through a price move
Imagine a treasury team deposits 100 units of a collateral asset and opens a loan of 40 units of a second asset in a product. The interface shows a health measure calculated from the collateral value, the borrowed amount, and rules set by the product. On a volatile morning, the price source is late. The customer submits a repayment, but the wallet loses connection before it shows a confirmation.
Ask the supplier to explain exactly what happens at each point.
Before the transaction. Which price source is accepted? How old may it be? What confidence range is acceptable? What does the product show if there is no valid price? A price feed includes a price and confidence interval, so a read is not automatically a permission to take a risk-sensitive action. Read Pyth’s price-feed properties.
During the transaction. Can the interface simulate the repayment, explain a rejected transaction, and avoid showing a completion before the transaction is confirmed? Ask what counts as final and which receipt support will use when the wallet and the dashboard disagree.
After the transaction. What updates the position view? What happens if an indexer is delayed? If the product can sell collateral to repay a loan, who can trigger the sale, under which conditions, and what prevents a stale or missing price from being treated as valid?
Decide whether to integrate or build the protocol
Use an existing protocol when its asset support, risk rules, wallet flow, and operating model match the product you actually want to run. Your team still owns the user experience, errors, monitoring, and support boundary. Write down the protocol dependency, supported assets, quote or price source, and what customers see during an outage.
Commission a new program only when the product has a rule that an existing protocol cannot safely enforce. Examples include a defined collateral policy, settlement path, permission model, or accounting model that must be independently owned. “We want our own DeFi app” is a starting hypothesis. The product brief needs to turn it into a specific state transition and failure rule.
For either path, include a decision owner for the following.
- The assets, accounts, and wallet actions the first release supports
- The accounting rules, rounding choices, fees, and maximum exposure
- Price sources, staleness limits, and the action for an unavailable or disputed price
- The wallet, program, indexer, and RPC dependencies
- Pause, upgrade, recovery, and customer communication authority
- The evidence that lets a reviewer say the pilot is ready to advance
Run a pilot that produces evidence
Pick one supported asset pair and one complete customer journey. A pilot could let a selected group connect a wallet, read an existing position, submit a simulated transaction, make one supported deposit, then download the transaction record and contact support. Keep borrowing, liquidation, a broad token list, and automated keepers out of the first milestone unless they are the core outcome being tested.
Use the same scenario for every candidate supplier. Send them an expired price, an interrupted wallet session, a delayed indexer update, and a repeated submit. Ask for the customer-facing result, the on-chain state, the operational alert, and the person who resolves it. A serious proposal will identify which result is acceptable and which stops the release.
At handover, the team should own the source repository, deployment records, program IDs, authority inventory, monitoring instructions, and a readable explanation of the accounting and price rules. An independent security review is most useful once the program and its invariants have stopped changing every week. Explore Solana DeFi development · Compare a DeFi swap integration against acceptance tests
