Borrow against stocks without fire-sales.

Market makers escrow USDC behind time-committed quotes on NEAR. Your limit follows that commitment and holds up over the weekend. If a loan goes bad, the collateral goes to a committed buyer at a bounded discount.

Testnet only, with mock collateral. Unaudited software.

The Nectar mark: three mint hexagons
Committed quotes$80,000
Weekend limit57.7%
Example position on testnet: 300 mock NVDAx

Runs on these networks and services

NEARhub, testnetChain SignaturesMPC signingOutLayerverifiable TEE pricingNEAR Intents1Click quotes, dry runPythprice feedSolanaspoke, devnetx402paid API callsNEAR AI Cloudcopilot

Lenders price the exit, not the asset.

Example. Follow one position through four states. The numbers are the example from the hero: 300 mock NVDAx at $185, with $28,000 already drawn against the asset.

  1. A tokenized stock can trade at fair value all week and have no buyer on Saturday night. Lenders price that exit, so the limit stays low.

  2. Market makers escrow USDC behind quotes that can't leave without notice. Add the Reserve and verified DEX depth, and the same 300 shares support up to 70%.

  3. When the market closes or the price is older than 15 minutes, DEX depth drops to zero and the haircut widens to 25%. Nothing outside the contract can switch the session back on.

  4. If health falls below 1, collateral goes to a committed quote at no more than its stated discount. The Reserve fills only after every quote is used.

Example: 300 NVDAx at $185 = $55,500Static lender
$22,20040%Borrow limit with DEX exit only
Exit backing$12,000
Quotes Q $0Reserve R $0DEX depth D $12,000Haircut h n/a

40% static LTV × $55,500 = $22,200

CollateralCommitted quotesReserveOrder book
nectar-core on NEAR testnet

Read it from the contract.

The same rule, with today's numbers for the first collateral. Every figure here comes from a view call; nothing is cached or estimated.

Committed quotesNVDAx · NEAR testnet
Effective limitNVDAx · NEAR testnet
QuotesNVDAx · NEAR testnet
Market sessionNVDAx · NEAR testnet
NVDAx · mock collateral · NEAR testnettestnet
Fri 16:00Mon 09:3065.5 h, limit fixedweekend haircut25%
For borrowers

Borrow for the weekend at a limit that won't move.

A Shield opens your loan at the weekend limit for a fixed window, so the limit can't be cut halfway through Saturday. If the price gaps, committed buyers take collateral at their stated discount.

Weekend Gap Shield
15 bps flat, from $5
Window
Fri 16:00 to Mon 09:30 ET
Event Shield
25 bps flat, up to 72 h
Zap and borrow
From $10, testnet faucet

A Shield is a weekend-safe limit with committed buyers behind it.

Quote B$30,000Quote A$50,000Q = $80,000escrowedUSDC
For market makers

Get paid to stand behind a price.

Escrow USDC behind a quote with a discount ceiling, a size and a notice period. Borrowers' limit premiums fund your commitment fees. The OutLayer TEE makes the discount computation verifiable: a pinned, attested program, clamped on-chain. In this testnet build it prices with operator-set demo parameters (published in the docs), and each settlement's discount reveals their product.

Escrow
USDC, held by nectar-core
Exit
After the notice period
Paid from
Borrower limit premiums
Your quote
A transferable Note
from $107-day noticeRR, from viewsfills after every quote, at 400 bps
For the Reserve

Stand behind the loans from $10.

Pool USDC per asset. The Reserve earns a share of every borrower premium and buys collateral at the Reserve discount only after every committed quote is used. Your deposit is a Note you can hold or transfer.

Minimum
$10 USDC
Fills
After all quotes, at 400 bps
Notice to exit
7 days
Realised APR
Shown once premiums settle

Use the loan and keep the stock.

Profit-Lock

Stock rallied? Sell just enough collateral to committed buyers who opted in, at their discount, clear the debt, and keep the rest debt-free. Example:

Debt$28,000
NVDAx after a 25% rally$231.00
Buyer discount plus fee1.8% + 0.5%
Units sold124.05
Units kept, debt-free175.95, about $40,644
nectarLOAN NOTE · p-1NVDAx · MOCK COLLATERAL · EXAMPLELTV50.5%HEALTH1.59DEBT$28,000COMMITTED Q$80,000OPEN · IN SESSIONtestnet · nectar-core (example)

Example Note drawn from the on-chain template, not read from the chain.

Position Notes, NEP-171

Transfer the note, transfer the position.

  • Every quote, loan and Reserve deposit is a Note on NEAR. Its owner is the one who can withdraw, claim fees or receive leftover collateral.
  • The contract draws the picture from its own state: LTV, health, backing, multiplier.
  • Transfers are blocked while a position is settling, so a payout can't be redirected mid-flight.
  • Share a Note to X from its page. Nothing posts without you.

NEAR holds the book. Solana holds the stock.

A remote loan pays out only after an attested read proves the collateral sits in the vault under the key NEAR derives for that position. The Base leg runs on a local fork of Base Sepolia, not on Base Sepolia itself.

NEAR testnet, the hub

nectar-core
  • Quotes, Reserve, loans and Notes
  • Limits, weekend guard, multiplier
  • Builds every message it asks the MPC to sign
Ed25519

Solana devnet

xStocks-style mock collateral, Ed25519 · devnet, round trip verified
  • nectar_vault program
  • Verifies the signature through the Instructions sysvar

Each link carries a message nectar-core built and NEAR Chain Signatures signed: a settlement to a buyer, or a release back to the borrower.

01 Flag

Health falls below 1

Any keeper calls trigger_preliquidation(position_id) with a function-call key. No deposit, no price, no hash.

nectar-core on NEAR testnet
02 Price

A TEE computes the discount, verifiably

A pinned, attested OutLayer program returns disc_bps, so the computation can be verified, and the contract clamps it to the quote's ceiling. In this testnet build it prices with operator-set demo parameters (published in the docs); each settlement's discount reveals their product.

OutLayer, attested
03 Sign

Chain Signatures signs

The contract builds the settlement message and asks the MPC signer for Ed25519 (Solana) or secp256k1 (the Base Sepolia local fork). The keeper never holds a key.

v1.signer-prod.testnet
04 Settle

The vault verifies, then pays

Solana checks the Ed25519 instruction before settle. On the Base Sepolia local fork, NectarVaultBase checks EIP-712 with ecrecover. Then the buyer is paid and the result is relayed home.

nectar_vault, NectarVaultBase
Open by default

Anyone can recompute a limit.

The rule is short enough to read in one sitting.

Agents get the same surface: the Feed MCP server returns the exact transaction to sign, and an agent that refers a borrower earns half of the 0.3% origination fee.

// Borrow limit for one asset (spec §4.2). Integers only: _e6 USD, bps.pub fn borrow_limit_e6(&self, a: &Asset) -> u128 {    let weekend = !self.guard.session_open(a);    let h_bps = if weekend { a.h_weekend_bps } else { a.h_session_bps }; // 2500 / 1000 on testnet    let d = if weekend { 0 } else { a.dex_depth_e6 };    let backing = a.quotes_e6 + a.reserve_e6 + d;           // Q + R + D    let by_exit = backing * (10_000 - h_bps) / 10_000;    let by_ltv  = a.value_e6() * a.ltv_max_bps / 10_000;  // 70% on testnet    // the exit term is shared by every loan in the asset    by_ltv.min(by_exit.saturating_sub(a.total_debt_e6))}
Simplified from the specification, PRD §4.2 and §8Source opens with the release, MIT

What you don't have to trust

The keeper

A function-call key limited to a few methods. It cannot attach deposits, choose prices or supply hashes, and it holds no remote-chain authority.

The price

Stale or wide prices are rejected and the weekend guard fails closed. TEE output is verifiable: accepted only from a pinned, attested program and clamped on-chain.

Remote deposits

No remote loan pays out until an attested read of the vault matches the key NEAR derived for that position.

Every deployment and test run is recorded with commands, outputs and explorer links on the Evidence page.

Questions market makers and borrowers ask

Can't find yours? Write to the address below.

Is any of this on mainnet?

No. NEAR testnet and Solana devnet, with mock tokens. Mainnet needs an audit, a DAO owner with a timelock, and issuer approval for real tokenized stocks.

Why mock collateral?

No tokenized equity exists on NEAR testnet. The mock token has the same interface (NEP-141, 6 decimals), and every page says "mock" where you would first meet it.

What does a Shield guarantee?

It opens your loan at the weekend limit for a fixed window so the limit can't be cut mid-weekend. If the price gaps, committed buyers take collateral at no more than their stated discount. It does not cover a fall in the stock's price.

What happens on weekends and holidays?

When the market is closed or the price is older than 15 minutes, the contract sets DEX depth to zero and widens the haircut on its own. It reopens only with a fresh price inside its own NYSE calendar.

Who buys my shares in a Profit-Lock?

Committed buyers who opted into voluntary fills, at their discount, under a daily cap. You see the units sold and kept before you sign.

How does the Reserve earn?

A share of borrower premiums. The Reserve page shows realised trailing APR and never promises a rate; exiting takes 7 days' notice.

What if the verifiable TEE pricing or the oracle is down?

Settlement prices at the quote's ceiling and says so. The oracle falls back to an owner price with a visible badge. Both paths are tested and disclosed.

Can the keeper steal anything?

No. It cannot attach deposits or pass prices or hashes, and holds no remote-chain authority. The contract builds every message and re-checks the trigger against its own oracle state.

Where is the code?

Open source under MIT once released. pnpm demo:testnet reads the testnet contract without any keys, and the docs cover the contract, the Feed REST and MCP endpoints and the runbook.

Keep the shares. Use what they're worth.

Open a weekend shield on testnet with demo NVDAx and watch the limit hold through Saturday.

Market maker, curator or issuer? Talk to us.

kunal@nectarnetwork.fun