Live on Ethereum Mainnet

The Most Trustless DeFi Protocol Ever Built

Peer-to-peer options and lending with zero owners, no admin keys, no proxy, no pause, and no upgrade mechanism. Immutable smart contracts that run forever.

Options Created
Loans Created
1%
Fee Per Side
0
Admin Keys
🔒
Zero Owner
🧊
Fully Immutable
📡
No Oracle
⛓️
On-Chain Forever
🛡️
No Proxy / No Pause

P2P Options

Write or buy fully collateralized covered calls and puts on WETH and WBTC. No oracle, no liquidation.

Connect wallet to interact
Open Options
📋

No open options found. Be the first to write one.

P2P Lending

Fixed-rate, fixed-term loans with no liquidation, no oracle, no margin calls. Lender sets all terms.

Connect wallet to interact
Open Loan Offers
💰

No open loan offers found. Be the first to create one.

Whitepaper

The philosophy, mechanics, and security model of Onchain DeFi.

1. Philosophy

Onchain DeFi is a protocol built on a single principle: once deployed, no one can change anything, ever.

There is no owner. No admin keys. No multisig. No proxy contract. No pause mechanism. No upgrade path. No governance token controlling parameters. The smart contracts are deployed to Ethereum mainnet and they run forever exactly as written.

This is the most trustless form of DeFi possible. You don't trust us. You don't trust a DAO. You don't trust a multisig committee. You trust the code, which is immutable and verifiable on Etherscan.

2. Protocol Overview

Onchain DeFi consists of two independent smart contracts:

Onchain Options — A peer-to-peer covered options protocol supporting fully collateralized calls and puts on WETH and WBTC, with premiums and settlement in USDC, USDT, or DAI.

Onchain Lending — A peer-to-peer fixed-rate lending protocol with no liquidation mechanism, no oracle dependency, and no margin calls. Lenders set all terms including collateral requirements, interest rate, and duration. Borrowers can never be liquidated before expiry.

3. Supported Assets

Both contracts have a hardcoded whitelist of exactly 5 Ethereum mainnet tokens. These addresses are constants in the contract code and cannot be changed:

WETH 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 (18 decimals) WBTC 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 (8 decimals) USDC 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 (6 decimals) USDT 0xdAC17F958D2ee523a2206206994597C13D831ec7 (6 decimals) DAI 0x6B175474E89094C44Da98b954EedeAC495271d0F (18 decimals)

4. Options Mechanics

Covered Call

A writer deposits underlying tokens (WETH or WBTC) as collateral and sets a strike price in quote tokens (USDC/USDT/DAI), a premium, and an expiry date. A buyer pays the premium and receives the right to purchase the underlying at the strike price before expiry. On exercise, the buyer sends the strike amount and receives the collateral. If the option expires unexercised, the writer reclaims their collateral.

Covered Put

A writer deposits quote tokens as collateral and sets a strike amount in underlying tokens. A buyer pays the premium and receives the right to sell underlying at the agreed price. On exercise, the buyer sends underlying tokens and receives the quote collateral.

No Oracle

There is zero oracle dependency. The buyer decides whether to exercise based on their own market view. The buyer's economic incentive IS the oracle — they will only exercise if it's profitable for them. This eliminates an entire category of attack vectors (oracle manipulation, stale prices, flash loan attacks on price feeds).

5. Lending Mechanics

A lender creates an offer by depositing loan tokens and specifying the collateral token, required collateral amount, annual interest rate, and loan duration. A borrower fills the offer by depositing the required collateral and receiving the loan tokens (minus a 1% lender-side fee).

At any time before expiry, the borrower can repay the principal plus full interest plus a 1% borrower-side fee to reclaim their collateral. Early repayment is allowed but full interest is still owed. If the borrower does not repay by expiry, the lender claims the collateral.

No Liquidation

There is no mid-term liquidation mechanism. If the collateral drops 90% in value during the loan, the borrower still cannot be liquidated. The lender accepted this risk when they set the collateral requirements. This is how lending worked for thousands of years before algorithmic liquidation engines. Two parties agree on terms, and the contract enforces them.

6. Fee Structure

Both contracts charge a flat 1% fee (100 basis points) per side on every transaction. The fee rate and fee recipient address are hardcoded at deployment and immutable.

Options — Premium: 1% from buyer + 1% from writer Options — Exercise: 1% from buyer's strike payment + 1% from writer's collateral Lending — Fill: 1% of loan amount (lender-side, deducted from borrower's receipt) Lending — Repay: 1% of loan amount (borrower-side, added to repayment)

7. Security Model

The security of this protocol derives from its simplicity. The contracts have:

No owner or admin variable. No proxy pattern or delegatecall. No selfdestruct. No pause mechanism. No external oracle calls. No flash loan integration. No pool-based liquidity. No variable parameters. No governance. Hardcoded token whitelist preventing interaction with non-standard ERC-20 tokens. ReentrancyGuard on all state-changing functions. SafeERC20 for all token transfers. Checks-effects-interactions pattern throughout.

Each position is completely isolated. A problem with one option or loan cannot affect any other position in the contract.

8. Immutability Guarantees

Owner: None Admin functions: None Proxy/Upgrade: None Pause mechanism: None Fee rate: 1% per side, hardcoded constant Fee recipient: Set at deployment, immutable forever Token whitelist: Hardcoded constants, 5 tokens All parameters: Constants or immutables, unchangeable

These are permanent, deliberate design decisions. There is no mechanism to change any parameter after deployment. This contract will run on Ethereum for as long as the chain produces blocks.

9. Contract Addresses

Onchain Options: [TO BE UPDATED AFTER DEPLOYMENT] Onchain Lending: [TO BE UPDATED AFTER DEPLOYMENT] Chain: Ethereum Mainnet (Chain ID: 1)

— onchaintoshi

Deployed on Ethereum. Immutable forever. No keys to lose, no admin to corrupt, no governance to capture. Just code.