Overview
Longbow lets anyone take a leveraged long position on the $LONG token by depositing ETH — without buying tokens up front. A depositor chooses a leverage multiplier and, as the price of $LONG rises, accrues reward tokens paid from a fixed reserve. When the position is closed the depositor reclaims their ETH equity plus any reward tokens earned. If the price falls too far, the position is liquidated and its collateral is contributed to the protocol's liquidity forever.
The design has three deliberate properties: depositors never receive tokens up front (removing immediate sell pressure), the reward pool is finite and fully pre-funded (removing dilution and insolvency risk), and every loss strengthens the liquidity pool (aligning individual risk with protocol health). Short positions are not supported.
The $LONG token
$LONG is a fixed-supply ERC-20. The entire supply is minted once at deployment and split 50 / 50:
- 0150% seeds the $LONG / WETH liquidity pool on a Uniswap V2-style DEX, establishing the market price.
- 0250% is transferred to the position contract, where it forms the reward reserve that pays profitable longs.
No further tokens can ever be minted. Because rewards are only ever paid from the pre-funded reserve, the protocol can never inflate the supply to cover payouts.
Architecture
The protocol is a small set of focused contracts plus an off-chain keeper:
- 01
LongToken— the fixed-supply ERC-20. Mints once at genesis; no mint function thereafter. - 02
PositionManager— the core contract. Holds the reward reserve, opens/closes positions, computes rewards, equity and liquidation prices, and processes liquidations. - 03
UniswapV2TwapOracle— a time-weighted price oracle returning ETH per $LONG, resistant to flash-loan manipulation. - 04
UniswapV2LiquiditySink— receives forfeited collateral and locks it into the liquidity pool permanently. - 05Keeper — an off-chain bot that refreshes the oracle and liquidates unhealthy positions for a bounty.
The PositionManager never holds $LONG for users and never mints; it only ever transfers reward tokens out of its own pre-funded balance.
Opening a position
To open a long, a user sends ETH as collateral and selects a multiplier m between 1x and the protocol maximum. The contract records the entry price P0 (ETH per $LONG, from the oracle) and reserves the maximum reward the position could ever earn:
The user receives no tokens at this point. Their ETH is held as collateral inside the position contract; it is never swapped or lent out while the position is healthy. A minimum collateral amount is enforced to prevent dust and griefing.
Rewards
A position accrues reward tokens as the price rises above its entry. At any price P ≥ P0 the claimable reward is:
This is zero at entry, grows as the price climbs, and asymptotically approaches maxReward but never reaches it — so the earmarked reserve is always sufficient. Below the entry price the reward is zero; rewards never go negative.
Solvency & earmarking
When a position opens, exactly maxReward tokens are earmarked from the reserve, and the open is rejected unless the unearmarked reserve can cover it. Because every position's lifetime payout is strictly bounded by its earmark, the following invariant always holds:
The sum of all possible payouts can therefore never exceed the reserve. There are no global loops and no dilution of existing positions: each long is independently pre-funded at the moment it opens.
Closing a position
A healthy position can be closed by its owner at any time. The payoff is a smooth leveraged long. First, mark-to-market equity is computed:
- 01In profit: the ETH returned is capped at the original deposit, and the upside is delivered as reward tokens. You get your ETH back plus $LONG.
- 02Underwater: the ETH returned equals your reduced equity, and the shortfall (deposit − equity) is donated to the liquidity pool. No reward is paid below entry.
This makes losses continuous rather than all-or-nothing: an underwater exit realises exactly the loss the price implies, and that loss feeds liquidity immediately.
Liquidation
If the price falls far enough that a position's equity drops to its maintenance margin, the position becomes liquidatable. The liquidation price is deterministic:
where mm is the maintenance margin fraction. Higher multipliers push P_liq closer to the entry price, leaving less room for the price to fall. Anyone may call liquidate: the caller receives a bounty (a percentage of collateral) and the remaining collateral is donated to the liquidity pool. The position's reward is forfeited and its earmark released back to the reserve.
The liquidity sink
Forfeited collateral — from liquidations and from the shortfall on underwater closes — is routed to a liquidity sink. The sink swaps half the ETH for $LONG, adds both legs as liquidity, and sends the resulting LP tokens to a burn address. The liquidity can therefore never be withdrawn by anyone, exactly matching the rule that a lost deposit permanently supports the pool.
Worked examples
Assume an entry price of P0 = 0.001 ETH per $LONG and a maintenance margin of mm = 25%. A user deposits 1 ETH.
collateral = 1 ETH m = 3x P0 = 0.001 ETH → maxReward = 1 × 3 / 0.001 = 3,000 LONG exit price P = 0.0014 ETH (+40%) reward = 3000 × (0.0014 − 0.001) / 0.0014 ≈ 857 LONG equity = 1 × (1 + 3 × 0.40) = 2.2 ETH → ETH back capped at 1.0 ETH RESULT = 1 ETH returned + ~857 LONG claimed
exit price P = 0.0009 ETH (−10%) equity = 1 × (1 + 3 × (−0.10)) = 0.70 ETH ETH back = 0.70 ETH (shortfall 0.30 ETH donated to the pool) reward = 0 (below entry)
P_liq = 0.001 × (1 − (1 − 0.25) / 3) = 0.00075 ETH (−25%) at/below P_liq the position is liquidatable keeper bounty = e.g. 5% of collateral = 0.05 ETH to the caller donation = 0.95 ETH permanently added to liquidity reward = forfeited
Price oracle
All prices come from a Uniswap V2 time-weighted average price (TWAP) oracle, which averages the pool price over a fixed window and returns ETH per $LONG as an 18-decimal fixed-point value. Averaging over time makes the price resistant to single-block and flash-loan manipulation that could otherwise trigger unfair liquidations. The oracle must be refreshed periodically; keepers perform this alongside liquidations.
Fees
Longbow charges no protocol fee, no funding rate, and no interest. The only value transfer beyond your own payoff is the liquidation bounty — paid by a liquidated position to whoever triggers its liquidation, never by healthy positions. Standard network gas applies as on any transaction.
Keepers & incentives
Two upkeep tasks are permissionless and incentivised so the protocol stays healthy without a privileged operator:
- 01Liquidations — anyone can liquidate an unhealthy position and earn the bounty, so under-margined positions are cleared promptly.
- 02Oracle updates — the TWAP must be poked to advance its window; keepers do this while scanning for liquidations.
A reference keeper bot is provided, but the incentives mean any independent party can perform these tasks.
Trust assumptions & admin
The owner role is intentionally narrow. It can:
- 01Update the oracle and liquidity sink addresses.
- 02Adjust parameters (max multiplier, maintenance margin, liquidation bounty, minimum collateral) within hard-coded safety bounds.
The owner cannot:
- 01Mint new $LONG or withdraw the reward reserve.
- 02Touch user collateral, or change the entry price or earmark of an already-open position.
- 03Seize, pause, or confiscate positions.
Parameter changes only ever affect positions opened after the change. This bounds what a compromised or malicious owner could do.
Protocol parameters
The owner configures a small set of parameters, within safety bounds:
- 01Maximum multiplier — the highest leverage a position may select.
- 02Maintenance margin (bps) — the equity fraction at which a position becomes liquidatable.
- 03Liquidation bounty (bps) — the keeper's cut of a liquidated position's collateral; bounded by the maintenance margin.
- 04Minimum collateral — the smallest deposit accepted.
Live values are shown on the dashboard. Parameter changes never affect the earmark or entry price of already-open positions.
Risk factors
- 01Price risk: a falling $LONG price reduces equity and can lead to liquidation and total loss of collateral.
- 02Leverage risk: higher multipliers accelerate both rewards and losses and move the liquidation price closer to entry.
- 03Smart-contract risk: the protocol is experimental software; bugs or economic exploits may exist.
- 04Oracle risk: extreme or sustained market conditions could still affect the TWAP.
- 05Liquidity risk: reward-token value depends on the depth of the $LONG liquidity pool.
Disclaimer
This document is for informational purposes only and is not financial, investment, or legal advice. $LONG is a utility token with no promise of profit. Leveraged positions can lose their entire collateral. Nothing here is an offer or solicitation to buy or sell any asset. Interact with the protocol only after understanding the risks and, where appropriate, seeking independent advice.