Loops HouseNectar Labs

NEAR HACKATHON
Links
Team
1 member- KUOwner
Kunal
Overview
Nectar: the buyer behind every loan.
Problem: a lender's limit depends on who buys the collateral if a loan goes bad. For tokenized stocks that answer gets thin at night and on weekends, so lenders cut limits or sell into empty markets.
What we built (NEAR testnet, mock collateral): market makers escrow USDC as buy quotes with a notice period and a maximum discount. A borrower deposits a tokenized stock and borrows up to the lower of a price-based limit and what those committed quotes, a Reserve and owner-set DEX depth can absorb, after a haircut that widens when the market is closed. A Weekend Shield sizes the loan at the weekend limit, and until the open only committed buyers can settle it. If a position breaks, a keeper triggers the sale and escrowed USDC repays the loan.
Architecture: one Rust contract, nectar-core-v2, holds the quote escrow, positions and limit math. It takes collateral through NEP-141 ft_transfer_call, emits NEP-297 events and records each loan as a NEP-171 Position Note. A Feed service indexes those events and serves REST and MCP, so agents can read limits and open loans signed with their own keys (so far a scripted agent); paid data uses x402 with NEP-366 meta-transactions. A price refresher holds a function-call key that can call only update_owner_price. Cross-chain settlement uses Chain Signatures; the Base leg is tested on a local fork of Base Sepolia.
Mock: NVDAx and USDC are mock tokens, the price is an owner oracle, and the market makers are our own test accounts.
Next: this build becomes the cross-chain layer of Nectar, a protocol for credit sized to a sale arranged before the loan. NEAR coordinates settlement on Solana and Base through Chain Signatures and, when a lender or grant funds it, native BTC held under a NEAR-derived key. Before mainnet: real market makers on testnet, a production oracle and an audit.
Try it: testnet.nectarlabs.io (Get test assets, then borrow). Code and evidence: github.com/NectarLabsio/nectar-labs