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.

Runs on these networks and services
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.
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.
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%.
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.
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.
40% static LTV × $55,500 = $22,200
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.
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.
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
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 fee | 1.8% + 0.5% |
| Units sold | 124.05 |
| Units kept, debt-free | 175.95, about $40,644 |
Example Note drawn from the on-chain template, not read from the chain.
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
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.
Health falls below 1
Any keeper calls trigger_preliquidation(position_id) with a function-call key. No deposit, no price, no hash.
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.
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.testnetThe 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.
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))}
// Nectar Feed MCP toolopen_protected_stock_loan({ account_id: "agent1.testnet", collateral: "NVDAx", units: 50, borrow_usd: 4000, shield: "weekend", referrer: "agent1.testnet"})// returns an unsigned ft_transfer_call and a preview:// limits, fees, health at -5%, -10%, -20%
// Weekend guard: fails closed, reopens only on its own calendarfn session_open(&self, a: &Asset) -> bool { let now = env::block_timestamp_ms(); let fresh = now - a.price_ts_ms <= 15 * 60_000; // 15 minutes self.nyse.is_open(now) && fresh && a.conf_ok()}// No method lets a keeper or owner force a session open.
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.