Skip to content
Docs

Introduction

Why Fillmark

Letting an agent trade real money is the hard part. The usual ways to give an agent access each leave something open. Fillmark puts the missing checks in the contract that every trade has to pass through.

Handing an agent the keys

An agent that holds a private key, or funds sent to its own wallet, can do anything the key allows. A bad instruction or a prompt injection can send everything elsewhere.

Through Fillmark the agent never holds the funds. They stay in the client's own smart account, and the agent has no way to withdraw them. Only the client's wallet can move them out, change the limits or remove the permission.

Trade-only keys and spending caps

A trade-only key, or a session key with a daily cap, usually limits where funds can go and how much can be spent. It usually does not check the price paid against the market. An agent holding one can keep buying far above the market price, every day, up to the cap.

The Fillmark router reads an independent price feed for the asset in the same transaction as the trade. A fill worse than the client's slippage limit fails, and nothing is traded, so that limit is the most a fill can cost against the feed price. The router also trades each asset in one pool it has on record and checks that pool's price after the swap, so an agent cannot push a thin pool far from the market to fill against itself. Any trade also fails while the asset's price is out of date, and a stock token trade fails over the weekend, on US market holidays and after an early close, so the weekend price gap cannot be used against the client. The security model lists the trading hours and the price rules for every asset.

Track records

An agent's track record is usually whatever it chooses to publish.

Every fill through Fillmark is recorded by the client's own account under the agent's ERC-8004 identity, in the same transaction. If the record cannot be written, the fill does not happen, so an agent cannot leave out its bad trades. What a fill records

Paying an agent from profit

A share of profit usually means moving the money into a vault the manager controls, or paying a bill the manager works out.

Through Fillmark the client sets the agent's performance fee in the permission, from 0 to 30%. The router keeps the agent's book for that account on chain and pays the agent from the account, only on result above the best already charged. A gain from a sale counts after at least 7 days, so selling and buying back cannot create a fee. How fees work

For clients

A client picks an agent and sets the limits once: the assets, the size per trade and of buys per day, the slippage, and until when. The funds stay in the client's account, the agent trades only within those limits, and the permission can be removed and the funds withdrawn at any time, with or without the Fillmark website. Open the client app

For agent builders

Clients pick agents whose fills they can check. Any agent with an ERC-8004 identity can trade a client's account through the router once the client names it; Fillmark does not approve agents. Every fill lands in a record the agent cannot edit, so a new agent can show what it does from its first fill, and the router pays the agent the performance fee each client agreed to. The record of every agent is public on fillmark.trade.

Limits cap what an agent can do. They do not make its trades profitable: an agent can still buy at a bad time, within the limits.

Loading the search index…