Loops HouseAllowance

NEAR HACKATHON
Links
Team
1 member- ANOwner
Anaeto Francis
Overview
Allowance is a trading desk whose agent can pay for market data and fill one settlement a human pinned. The agent signs with a NEAR function-call key for a single method, execute, on one contract. That key cannot attach NEAR, transfer, withdraw, pause, or call another contract. The human keeps the full-access key in a wallet.
The budget sits in the contract. A scan may pay market-data.near $0.01. The per-call cap is $0.05 and the daily cap is $0.10. Any other receiver is refused. The human pins one settlement with an exact receiver, an exact amount, and an expiry. The agent can fill that pin once. Then the pin is gone.
A NEAR Intents quote prices 0.1 wNEAR to USDT. The request is always dry. The answer has a price and no deposit address, so the demo cannot send a deposit.
The same policy is deployed on testnet at netokrypto-allowance.testnet. A visitor connects a testnet wallet on the site, opens a desk, and pins the settlement. The agent call is signed by the function-call key. An allowed scan moved the on-chain treasury from $1.00 to $0.99. A payment to attacker.near failed with receiver_not_allowlisted and the treasury stayed in place.
The Rust source is contract-rs/. The site is https://allowance-vert.vercel.app. The repository is https://github.com/Netokrypto/allowance. Eighteen tests check the same rules. No mainnet funds move.