Recurve Docs
Website GitHub Open app

Reference

Errors

Every custom revert across the four contracts, what it means, and what to do about it.

Every name here is a custom error. Through the app they arrive as a sentence; through the SDK they arrive as an undecoded selector, because its trimmed ABIs carry no error entries — decode with the full ABI from the protocol repo to see the name.

RecurveVault

ErrorMeaning
OnlyGovernorCapital moves only through the governor. Also what everyone sees before setGovernor has run.
OnlyDeployersetGovernor and raiseDepositCap are for whoever deployed the vault.
GovernorAlreadySetThe governor is set once. Also raised for a zero address.
CapCannotDecreaseraiseDepositCap only goes up. The new cap must exceed the current one.
FloatTooLowThe proposal moves more than the vault holds idle.
RequestNotReadyThe idle balance cannot cover the queued exit at today's price. It rises when the strategy returns assets, independently of settle.
RequestAlreadyClaimedAlready withdrawn.
NotRequestOwnerThat queue position belongs to another address — the one that owned the shares, not the receiver.

Also from the vault, inherited from OpenZeppelin: ERC4626ExceededMaxDeposit / ERC4626ExceededMaxMint above the deposit cap, ERC4626ExceededMaxWithdraw / ERC4626ExceededMaxRedeem, ERC20InsufficientBalance and ERC20InsufficientAllowance, and a plain Panic(0x32) for a claimRedeem on a request id that does not exist.

RecurveGovernor

ErrorMeaning
OnlyAgentWrong key. Caller is not in the agent set; check isAgent.
OnlyAgentAdminOnly agentAdmin can add or remove agents or hand the role on.
AlreadyAgentaddAgent on an address already in the set.
NotAnAgentremoveAgent on an address that is not in the set.
UnknownProposalNo proposal with that id — from veto and execute. settle on an unknown id says WrongState instead.
WrongStateProposal is not in the state that call needs: veto and execute need Pending, settle needs Executed. Read stateOf first.
VetoWindowOpenToo early to execute. executableAt says when.
VetoWindowClosedToo late to veto.
AlreadyVetoedOne veto per address per proposal.
NoVotingWeightNo shares at the snapshot, or never delegated.
WatchersBlockedEnough watchers blocked. The proposal stays Pending on chain forever and can never execute; propose again rather than retrying.
ExecutionFailedThe target call reverted — on a strategy, usually a floor the market moved past.
FeeTooHighConstructor rejects anything above 1500 bps.

settle also surfaces the fee token's ERC20InsufficientAllowance or ERC20InsufficientBalance when the calling agent has not approved the governor, or does not hold, the fee.

WatcherRegistry

ErrorMeaning
OnlyGovernorconvict is called by the registry's governor address, not by watchers.
BelowMinStakeStake under the minimum, the minimum was raised, or the stake was slashed. Stake again to re-activate.
AlreadyVotedVerdicts are final.
AlreadyConvictedA conviction cannot be replayed.
NothingStakedNo stake to withdraw.
UnstakeNotReadyDelay has not elapsed.
NoPendingUnstakeNo open request, or a conviction cleared it.
ZeroAmountstake(0), or requestUnstake for zero or for more than the stake.
StakeTokenAlreadySetThe stake token is named once. setStakeToken cannot change it.
ZeroTokensetStakeToken was given the zero address.

Admin calls revert with OpenZeppelin's OwnableUnauthorizedAccount.

PortfolioStrategy

ErrorMeaning
OnlyGovernorEvery call that moves tokens is governor-only, which means it has to be an executed proposal.
TokenNotAllowedNot in the basket fixed at construction.
SlippageTooHighThe floor is more than maxSlippageBps below the stated quote, or the quote is zero. At construction: a cap above 10%.
WeightsMustSumToBpssetWeights must sum to exactly 10,000.
WeightCountMismatchOne weight per token; at construction, one fee tier per token.
NoTokensAn empty basket.
DuplicateTokenThe same token twice in the basket.

A swap that fills below the floor reverts inside the router with Uniswap's "Too little received", which the governor reports as ExecutionFailed.