Kept

Crypto calls with a real stop. Pull it, and the group sees it, on Base, Arkiv and ENS.

Kept

Created At

ETHGlobal Mumbai

Project Description

The most dangerous thing in a trading group isn't a bad call. It's a caller who can delete the evidence.

Telegram channels with tens of thousands of followers post trades with a stop loss attached. Followers buy. When the price turns, the caller quietly cancels the stop, sells into the people who copied them, and deletes the post. Only the winning screenshots stay.

Kept makes the stop real. Every call is a market buy on Base through Definitive Flash, with the stop-loss and take-profit attached as one bracket order that rests from the first second. Followers ride the same call from their own wallets: their own size, their own signatures, the same exits.

Then Kept watches. Cancel the stop, widen it, or move the tokens out while it is live, and the call reads PULLED. A signed cancel flipped the Telegram card to PULLED 7 seconds later. A sale under a live stop was caught 1 min 53 s after its block, with the exact Base transaction on the call page.

Every ending lands where nobody can quietly edit it. @KeptCallsBot posts each call as its own card and edits that card to KEPT or PULLED, so deleting the caller's message hides nothing. Arkiv holds each call and its outcome, extended to a 180-day record window when the call ends. ENS carries the caller's reputation: riya.kept.eth reads kept:2;pulled:4, and every call has its own name, <callId>.riya.kept.eth, with its terms, status, fill and exit. Only Kept's attester can write them, and any app that resolves ENS reads them. All 7 of riya's calls read back from ENS match Kept's own record.

Callers can also put money behind a call. KeptBond locks USDC on Base: keep the stop and it comes back, pull it and it pays the riders, weighted by what each of them actually filled.

You can delete a post. You cannot delete the trade.

How it's Made

Archiv is the backend with ENS as the social layer. The order engine is a Cloudflare Durable Object with a 30-second alarm. Shared logic lives in one TypeScript core package: the Flash client, the Arkiv store and queries, the exit detector, the ENS client and zod schemas. KeptBond is a Solidity contract built and tested with Foundry, including Base fork tests.

Definitive Flash is the execution layer. Every call and every ride is a Flash quote with an attached bracket, signed twice over EIP-712 and posted to the order API; fills settle on Base through Flash's settlement contract. The part we're proudest of: a cancelled stop is a signed message, not a transaction, so it never appears onchain. Only the app that placed the order sees it. Kept holds Flash's org-level Orders WebSocket open and turns fills, stop hits, take-profits, expiries and signed cancels into the public record. Raising a stop is one signature: we rebuild Flash's bracket update message byte for byte, the owner signs it, and PATCH /orders replaces the stop leg while the target stays untouched. Riders get a Match button that copies the raise.

The hacky bit is catching a dump without watching every block. Every 30 seconds, one multicall reads every live position's balance. Only a wallet holding less than its fill triggers a newest-first log search for the Transfer or WETH unwrap. The worker waits 45 blocks and reads the Flash stop order before writing, so a bracket's own stop sale is never counted as a dump.

Arkiv is the database. Profiles, calls, rides, outcomes, alerts and seals are entities with indexed attributes, and the feed, call pages, leaderboard and live pull radar are all Arkiv queries. One executeBatch ends a call: it patches the status and extends the call and its outcomes to a 180-day record window, so waiting out a short horizon erases nothing. Sealed calls use Arkiv's $creator and $owner split: the caller's wallet creates the terms and hands the entity to Kept's attester in the same batch, so neither side can rewrite them alone.

ENS is the reputation layer. Each caller gets a non-transferable <name>.kept.eth with a dedicated resolver. kept.record, kept.history and kept.stats sit on the caller's name, and every call gets its own <callId>.<name>.kept.eth carrying kept.call, kept.status, kept.fill and kept.exit. Only Kept's attester can write them. The worker mints a call's name when it posts and updates it on every outcome, and /ens/<name> reads the whole history back through the Universal Resolver and checks each call against Kept's own record.

The Telegram bot runs inside the same worker and edits its own cards with editMessageText, driven by the same events that write Arkiv and ENS. KeptBond settles from a dedicated settler key that refuses to run if it matches the Arkiv or ENS key, and weights each rider by the USDC their Flash entry order actually filled.

background image mobile

Join the mailing list

Get the latest news and updates