Defituna connects spot trading and liquidity provision with lending on Solana
Defituna combines spot trading, liquidity provision, and lending on Solana, with borrowing available for leveraged trading and liquidity positions. Its Fusion AMM integrates limit orders with pool liquidity. The activity you choose determines whether your tokens fund a trade, earn swap fees, or supply credit to borrowers.
Last updated
Rising prices of borrowed tokens can erode a leveraged liquidity position's gains even while it earns swap fees.
Trading Liquidity and Borrowing in One Protocol
Spot trades draw on pool liquidity, while lending pools supply the borrowed tokens used to enlarge trading and liquidity positions.
A swap changes the tokens a trader holds. A liquidity provider (LP) commits assets to a pool, where they help execute trades and can earn trading fees. A lender supplies assets borrowers use, earning interest from that borrowing activity. Those returns arise from different mechanisms, so a lending deposit and a liquidity position need different assessments.
Fusion AMM supplies the native trading engine, and supported liquidity markets also include Orca integration. A market's liquidity venue matters because its trading mechanics and position configuration determine the available activity.
The client SDK gives software integrations access to market and position management.
Fusion AMM and Price-Specific Orders
Fusion AMM places limit orders inside pool liquidity, allowing the trading engine to process orders as swaps move through price levels. An automated market maker, or AMM, uses pooled assets to execute exchanges. Here, the pool also tracks orders between ticks, the price increments used by its liquidity system. For the pool price to move past an order's level, trading must consume the liquidity and orders at that level. A maker order therefore contributes trading liquidity at a chosen price. A taker order trades against available liquidity immediately, subject to execution conditions.
A limit order specifies a price or better; it doesn't promise when a trade will happen. Filled maker orders can also earn a rebate from trading fees. The order's Solana Program Library (SPL) token represents the claim, and closing the order releases the claimable funds.
How Does Leverage Change a Spot Trade?
Leverage adds borrowed tokens to a spot position, increasing its exposure relative to the margin committed from your wallet. Borrowing also creates interest costs and repayment obligations.
The leveraged spot interface supports buy and sell directions, with optional Jupiter routing when opening a position. Price impact describes the price change your trade causes. Slippage tolerance sets the acceptable deviation during execution. Neither figure represents the interest cost of keeping the borrowed exposure open.
The Funding display shows interest over a 24-hour period, with an annualized view available separately. Each market has its own maximum leverage and borrowing limits. A position's size limit also belongs to its market configuration, so one leverage figure shouldn't serve as a protocol-wide promise.
Liquidity Ranges and Borrowed Token Exposure
Liquidity positions combine a selected price range with a deposit composition, and optional borrowing changes the exposure of that combination. Leverage isn't required for liquidity provision.
The Selected Price Range
Concentrated liquidity commits assets within chosen price boundaries. Trading within those boundaries can generate fees for the position. When the price leaves a finite selected range, the position stops earning new swap fees. The Full-Range option spreads liquidity across the entire price range instead. A broader range changes where capital participates; it doesn't remove changes in token composition or value.
Token prices can also leave a liquidity position worth less than holding the same starting tokens. This divergence, often called impermanent loss, belongs in the assessment alongside fees earned. Borrowing adds another cost to that comparison.
Margin and Borrow Ratio
Margin is your own initial contribution, while position size combines that margin with the value of borrowed tokens. Borrow Ratio controls the mix of tokens owed. Repayment remains denominated in those borrowed tokens, so their changing prices affect debt value. The selected range also determines what the position holds, making its assets and liabilities relevant together.
Lending Pools and Withdrawal Availability
Lenders supply tokens used as leverage, and the lending market they select determines which borrowing activity their deposit supports. Pool selection also affects their exposure to bad debt.
Main and Isolated Markets
The lending interface distinguishes Main pools from Isolated markets. An isolated deposit supplies tokens only to borrowers in its selected market. This separation contains that market's bad-debt exposure rather than spreading it across unrelated lending pools. It doesn't eliminate losses within the selected market. For the same supplied token at equal utilization, isolated pools may offer higher supply yields than Main pools because they carry additional market and token risk.
Utilization and Interest
Utilization measures borrowed funds as a share of pool supply. The interest model adjusts borrowing rates as utilization changes, which also affects lenders' returns. Supply APR derives from the borrow APR, utilization, and any lending protocol fee. APR means annual percentage rate; APY, annual percentage yield, includes compounding.
At full utilization, borrowers have used all the supplied funds. Withdrawals can then remain unavailable until liquidity returns to the pool. Higher interest rates encourage repayment and additional deposits, but that incentive doesn't create an immediate withdrawal balance.
Costs Beyond the Trading Quote
Position costs combine the charges for the selected action with any continuing borrowing interest; the applicable fee schedule varies by pool. LP fees on collateral and borrowed funds use separate rates and apply at opening or closing. Executed LP trigger orders carry their own fee on position notional value. Liquidation also pays a fee to the liquidator. Opening a position requires a refundable deposit, which returns when the position closes. That refundable amount differs from a charge the protocol retains.
LP yield projections use trading activity from the previous 24 hours within the selected range. That history estimates fee production, while borrowing creates an ongoing expense. A projected percentage doesn't establish net profit: token price movements and divergence loss also affect the outcome. Lending interest and LP fee income therefore need separate interpretation, even when both appear as annualized returns.
Reinvesting Fees With or Without More Debt
LP compounding reinvests earned fees, and its leverage setting determines whether that reinvestment also increases the position's borrowing.
Keep Leverage combines accumulated yield with additional borrowed funds to maintain the leverage ratio. Reduce Leverage adds the yield as margin without increasing the borrowed amount. That increases the position's own capital relative to its debt. Pool fees also affect compounding costs, particularly when the operation adds borrowing. When enabled, auto-compounding uses the selected mode once reinvestment, including any added borrowing, reaches the documented minimum of about $16. Execution isn't guaranteed.
Lending earnings compound automatically without a separate claim. This automatic treatment of lending interest is distinct from choosing how an LP position reinvests trading fees.
Price Triggers and Liquidation Boundaries
LP price triggers request an exit at a selected price, while liquidation enforces the market's debt constraint on an unhealthy leveraged position.
Lower and Upper Triggers
A lower trigger activates at or below its selected price; an upper trigger activates at or above its price. When executed, these LP triggers close the full position, with an option to swap the proceeds into the selected token. Jupiter processes the trigger orders. Network congestion and rapid price movement can delay execution, so a trigger near a liquidation boundary may fail to close the position before liquidation becomes possible.
Debt Thresholds and Forced Closure
A leveraged position becomes unhealthy when its debt exceeds the share of its balance allowed by the market's liquidation threshold. Liquidation closes exposure to repay debt to the lending pool. A full closure returns any balance left after repayment and applicable fees. Execution may involve partial liquidation attempts when a full closure fails. Liquidation timing also depends on network conditions and available execution.
Pyth supplies the protocol's primary oracle feeds, and inaccurate prices can distort valuations for positions relying on them. Smart-contract failures add a separate risk, which price triggers don't resolve.
TUNA Staking and Protocol Revenue
TUNA staking gives token holders a proportional share of protocol revenue, creating a return tied to protocol activity and their staking share. The revenue distribution converts proceeds into SOL, and the Earned balance tracks accrued SOL rewards. Holders can claim those rewards or compound them into staking. The displayed staking APR averages daily snapshots over the previous 30 days, so it reflects recent revenue history.
A lending deposit earns interest from borrowing, while staking participates in revenue distribution. Holding TUNA also exposes its holder to the token's market price. Revenue sharing therefore has a different return mechanism from supplying credit or earning fees through an LP position.
Activity Choice and Position Commitments
- For an exchange at a selected price, consider a maker order and its conditional fill.
- For swap-fee income, assess the liquidity range and how token composition changes within it.
- When borrowing, compare debt exposure and funding costs with the margin supporting the position.
- For lending interest, distinguish Main from isolated exposure and consider available withdrawal liquidity.
- For revenue sharing, distinguish TUNA staking rewards from changes in the token's market value.
Holding unborrowed tokens retains direct price exposure without an LP's range-dependent token conversions or interest expense.
Quick answers about Defituna
Can I Supply a Single Token to an LP Position?
A single-token deposit is possible when position setup allows the protocol to swap funds into the required deposit ratio. Enabling Disable Swap requires the deposit to match that ratio already. The required mix follows the chosen liquidity range and position configuration, so a single-token balance won't satisfy every setup unchanged.
What Happens If I Burn the Token Representing My Limit Order?
Manually burning the SPL token representing a limit order makes that order unrecoverable. Closing the order through the supported operation burns the token as part of returning its claimable funds. Keep the order token intact while the order remains open.
Does Transferring an Order Token Move Its Withdrawal Rights?
Transferring the order token can give another wallet the ability to close the order, but the interface doesn't support this transfer workflow. A transfer alone doesn't establish that the receiving wallet can complete a claim through the interface.
Where Do Limit Order Rebates Appear?
A filled limit order's rebate forms part of its claimable amount. Closing the order pays the rebate alongside the filled token amount. There isn't a separate rebate claim operation.
Is the LP Position Lock Reversible?
The Lock option permanently locks the liquidity position in the protocol. Accessing it requires enabling Allow Position Locking in Settings first. It removes the ordinary expectation of later closing and withdrawing that position.
When Can Unstaked TUNA Be Withdrawn?
Unstaked TUNA enters a 24-hour cooldown before withdrawal. Newly staked tokens begin generating revenue immediately, while the cooldown applies after unstaking. Reward claims and withdrawing the unstaked tokens are different actions.
Which Programming Languages Have a Defituna SDK?
The client SDK has Rust and TypeScript packages for interacting with the Solana program. Rust uses defituna-sdk-client and defituna-sdk-core, replacing the older defituna-client and defituna-core names. TypeScript retains @crypticdot/defituna-client and @crypticdot/defituna-core. These packages support software integration with markets and positions.
Is Defituna Available to Users in the United States or United Kingdom?
The access rules exclude people or entities located, incorporated, or established in the United States or United Kingdom, and citizens or residents of either country. Other prohibited jurisdictions and sanctions restrictions also apply. Users must be at least 18 and have legal capacity to accept the terms.