Skip to main content

What is a routing strategy?

A routing strategy chooses which account executes a Route or Bundle transaction. Enso’s public strategies are router, delegate, and ensowallet-v2.

J
Written by Javier Diaz

A routing strategy chooses which account executes a Route or Bundle transaction, and where intermediate assets and protocol state live. Enso’s public strategies are router, delegate, and ensowallet-v2.

Definition

The strategy is not the path between tokens. It is the execution client: who submits the shortcut, and how approvals and intermediate balances are handled. Submitting the returned tx as-is still applies to every strategy.

How it works

  • Use router when an EOA submits through the Enso router. This is the standard choice for token-based Route and Bundle flows. Submit any required approval first.

  • Use delegate when the supplied fromAddress should be the execution context — including compatible smart-wallet integrations, or when protocol state must remain at that address. Do not send router approvals unless the response requires them. Some actions, including borrow, harvest, and repay, must use delegate.

  • Use ensowallet-v2 when the flow uses the EnsoWallet V2 smart-account client.

Legacy strategy values may still exist for older integrations but should not be selected for new implementations.

How Enso does this

Set routingStrategy on the Route or Bundle request. See Routing Strategies. Always use the tx.to and spender returned in the response, not a hardcoded address.

FAQ

Does every strategy need a token approval first?

No. router often does when spending an ERC-20 and allowance is too low. delegate is built so a prior router approval is not required.

Can I change the strategy after I get a quote?

Request a new quote with the strategy you need. Do not edit the returned transaction.

Related articles

  • How do I handle token approvals in a routing flow?

  • Should I hardcode Enso contract addresses?

  • How do I use Enso with a smart wallet?

  • What is signer-ready transaction data?

  • What if token allowance is too low?

Sources

Did this answer your question?