Fulcrum

Buy $1,000 of ETH with $100. Real spot, no perps, no funding rate. Lenders are paid first.

Fulcrum

Created At

ETHGlobal Mumbai

Project Description

Fulcrum is decentralised prop trading with spot-funded leverage. Buy $1,000 of ETH with $100.

Lenders deposit USDC into an ERC-4626 vault. Traders put down a margin deposit and borrow up to 9x of it to buy real spot ETH or BTC. It is not a perp and has no funding rate: the trader holds actual spot assets, bought on Uniswap v4. Every position sits in its own isolated TraderProxy wallet, so one trader's position never touches another's. The first week of borrowing is free, then 8% APR.

The loss order is what makes it work for lenders. The trader's deposit takes losses first, then the insurance fund. On close, lenders are repaid first. Profit is split automatically by the contract.

Example (Trader level, $100 at 10x, $900 borrowed). If ETH rises 10%, the position is worth $1,100. Lenders get $910 (the loan plus 10% of the profit), insurance gets $1.50, Fulcrum gets $1.50 and the trader gets $187, against $10 unlevered. If ETH falls 8%, the contract sells at $919.08. Lenders get their $900 back in full, the keeper earns $0.50, insurance receives $18.58, and the trader loses their $100 and nothing more.

Traders start small and earn their way up. Starter allows 5x on up to $50 of margin, Trader allows 10x on $250, Pro allows 10x on $1,000. Better traders keep more of their profit (80%, 87%, 91%). Levels are on-chain and owner-configurable.

Lenders earn from borrowing fees (80% of the 8% APR goes to them), a cut of winning trades, and idle USDC yield. They never earn from trader losses, so they want skilled traders at size, and the levels are the filter.

We replayed seven real crashes (COVID, May 2021, LUNA, FTX, Yen carry, Tariffs, Oct-10 2025) on 6.8 years of Binance 1-minute data, with 6,967 real Hyperliquid long positions from 342 traders. Lenders lost $0 in all seven crashes in every scenario, including all-10x stress with a thin pool and a 30-minute oracle outage. With lenders free to enter and leave, at a 10% lender return today's real trader demand supports an ~$86k vault (7.5% supports ~$169k, 5.5% ~$557k), and bear-year 2022 still made 10.0%. All results are published to Arkiv and the landing and /backtest pages read them live. Backtests are not guarantees.

How it's Made

Contracts (Foundry, Solidity 0.8.28, Base mainnet). PositionManager holds the position lifecycle: open, close, lazily accrued weekly rollover debt, oracle-gated liquidation, and the profit/loss waterfall. LPVault is an upgradeable ERC-4626 vault with deposit caps and an ERC-7540-style withdrawal queue. InsuranceReserve is the second-loss buffer. PositionManager and LPVault sit behind OpenZeppelin ERC-1967 proxies. All contracts are verified on Basescan.

TraderProxy isolation. Each position gets its own TraderProxy wallet, an EIP-1167 clone of a shared implementation. The bought ETH or BTC lives there, not in a shared pool, so a bad position cannot drain another and settlement is a clean sweep of one wallet. We moved the proxy implementation out of PositionManager to fit under the EIP-170 size limit.

Uniswap v4. Every trade and every liquidation executes on Uniswap v4. We wrote V4SwapRouter (100 lines), a router implementing IUnlockCallback. It calls PoolManager.unlock, does an exact-input swap with a slippage floor, syncs, settles and takes deltas, and sends the output straight to the position's TraderProxy. It holds no funds. Pools: WETH/USDC 0.30% and cbBTC/USDC 0.05%. We also built UniV4TwapOracle, a 10-minute TWAP of the v4 pool price recorded by keepers.

Chainlink. The Base deployment marks positions with a ChainlinkOracle (ETH/USD and BTC/USD feeds, 3600s max staleness, round-completeness check, L2 sequencer uptime check with a 1-hour grace period). We compared it with our v4 TWAP in the sim: TWAP lag blocked 117 liquidations in the COVID crash replay, Chainlink blocked 0. That is why Chainlink is the mark and v4 is the execution venue.

Keeper. Liquidation is permissionless. A keeper bot (viem) liquidates, rolls epochs and fires stop-loss/take-profit triggers for a $0.50 bounty.

Python sim. sim/ (Python, numpy) replays Binance 1-minute ETH/BTC from 2020-01 to 2026-11 through a model of the contracts, with pool depth and pool fees. Demand comes from 6,967 real Hyperliquid long positions at their real arrival rate (38.56 trades/day). Lenders enter and exit against a return hurdle, so the sim finds how big a vault the demand supports. It runs seven crash replays across three scenarios (base, stress, stress plus 30-minute oracle outage) and ships as a Docker image with the data embedded: docker run --rm -v "$PWD:/out" ghcr.io/niraj-kamdar/fulcrum-sim

Arkiv and the app. A publish script using @arkiv-network/sdk writes results and the frozen trader dataset to Arkiv (Rabdi testnet) as indexed entities: fulcrum.results, fulcrum.crash, fulcrum.year, fulcrum.dataset. The Next.js 15 app (React 19, Tailwind, TanStack Query, lightweight-charts, viem, wagmi) reads the latest run live from Arkiv. Anyone can check "did lenders lose money in any crash" with one query.

Hacky bits. PositionManager is close to the EIP-170 size limit, so we compile with via_ir and optimizer_runs = 1 and moved the TraderProxy implementation out into its own contract. The v4 router is hand-rolled around the unlock callback. The sim image embeds its datasets, so it is large but reproducible offline. Arkiv is on a testnet. Level thresholds are a calibration, not a proof.

background image mobile

Join the mailing list

Get the latest news and updates