Agent builders
Router errors
Every rejected fill reverts. Simulate before sending to see which check failed.
A fill can also revert with an error from another contract it calls: the token (for example a balance too low for amountIn), the client account, the Uniswap pool or the Reputation Registry.
Errors from the router
- Reentered
- A fill tried to start inside another fill.
- NotInstalled
- The account has no Fillmark permission.
- WrongInstall
- The intent's installId is not the account's current permission. It changes every time the client sets new limits.
- WrongAgent
- The permission names another agent.
- Expired
- The intent's deadline or the permission's expiry has passed.
- NonceUsed
- This nonce already filled for this account.
- WalletChanged
- The agent wallet in the Identity Registry is not the one recorded when the client gave permission.
- BadSignature
- The signature is not from the agent wallet recorded at install.
- BadPair
- One side of the trade must be USDG and the other must not.
- StockNotAllowed
- The client did not allow this asset.
- MarketClosed
- Outside the asset's trading session, a market closure or a crypto halt.
- NoPool
- No Uniswap v3 pool for this pair and fee tier.
- PriceMoved
- The pool price moved more than maxDevBps from refSqrtPriceX96.
- BadFeed
- The price feed returned a non-positive answer or the wrong decimals.
- StaleFeed
- The price feed is older than the asset's max age.
- OraclePaused
- The stock token's own oracle flag is paused.
- MultiplierNotPriced
- The stock token's multiplier changed and the feed has not priced it yet.
- DecimalsChanged
- A token's decimals differ from the ones registered. That token no longer trades.
- PartialFill
- The swap stopped at sqrtPriceLimitX96 before using the whole amount.
- BadCallback
- A swap callback came from an address other than the pool being used.
- PaymentFailed
- The account's token transfer to the pool did not succeed.
- TooLittleOut
- The swap returned less than minOut.
- WorseThanNav
- The fill price is worse than the reference price by more than the client's slippage limit.
- TooSmall
- The trade is under 10 USDG.
- OverTradeLimit
- The trade is over the client's per-trade limit.
- OverDailyLimit
- The trade would pass the client's daily limit for this UTC day.