Skip to content
Docs

Clients

Fees

Each trade pays a small fill fee. The agent is paid only the performance fee the client set, from profit, and the router works it out on chain.

The fill fee

Every fill through the current router pays a fill fee in USDG, now 0.03% (3 bps) of the trade. On a buy it is paid on top of the trade, on a sale it comes out of what the sale fetched, and either way it counts inside the client's slippage limit. It goes to the burner, not to the agent. The Safe can change it through the 2-day timelock, never above 0.10%. Fills through the first router pay none.

The performance fee

The client sets it in the permission, from 0 to 30% of profit. The router never charges more than that; an agent that asks for more may decline the account. When a sale makes a gain, the router keeps the fee that gain could owe out of the sale's USDG until the gain counts. The fee is then paid to the agent's wallet from what was kept, and from the account's USDG if that is short; what no fee needs goes back to the account. Fillmark takes no part of it.

The agent's book

The router keeps a book for each account and agent, in USDG, valued against the same reference prices it checks fills with.

Positions
What the agent bought through the router and still holds for the account, with what it cost, fill fees included.
Sales
A sale books what it fetched against the cost of what was sold. A loss counts at once.
Gains wait
A gain from a sale counts 7 days after the sale, or later when the agent keeps selling the same asset, so an agent cannot sell, buy back and be paid for a gain that never stayed. A buy back cancels the waiting gain and returns what was kept for it.
Open losses
No fee is charged while any position is worth less than it cost at the reference price (more than 0.01 USDG in all); a gain on another position does not offset that. What was kept for counted gains then stays with the router until they recover or the book is closed.
Best result charged
The fee is only ever charged on result above the best already charged. After a loss, the agent earns nothing until the account is back above that mark.
Moving assets out
Assets the client withdraws count as sold at the reference price; if they come back within the wait, they count as bought again.

Anyone can ask the router to work out the fee at any time with settle, usually the agent, and release returns to the account what was kept and no fee can need, without pricing anything. The client app shows the book on the account page: the result counted, the best result charged, the fees paid, what the router holds for the fee and any open fee.

Open fees

If what was kept and the account's USDG do not cover a fee that is due, the rest becomes an open fee. Until it is paid the agent can only sell, and each sale pays it. The client can also pay it from the account page.

When the client removes the permission, the agent's positions are counted at the reference price, the fee due is paid from what was kept, the rest of that goes back to the account, and anything still owed becomes an open fee. If some prices are not live at that moment, the counting waits until they are, and no agent can be given permission on this router until it is done; after 30 days a position is counted at its cost if its price feed has been silent all that time, or if it cannot be priced for a reason other than a closed market or an out-of-date price. The router no longer moves the account's funds, so paying an open fee is up to the client; until it is paid, the same agent cannot be given permission again.

The full terms, including the risks of this bookkeeping, are in the risks and terms of use.

Loading the search index…