Both a lending deposit and a vault deposit can be Route destinations when the position is tokenized: set that position token as tokenOut and let Enso find the path. The product chooses the destination; Enso does not treat the two as different APIs when both are tokens.
Definition
A vault deposit typically mints a share token. A lending deposit typically mints a receipt or balance token representing collateral. If that destination is tokenized, the Route API can take the user there from the asset they already hold.
How to choose
If the destination is a token, use Route with that token as
tokenOut(a zap).If the destination is not tokenized, use the nontokenized route endpoint instead.
If you also need to borrow, repay, harvest, or loop in the same transaction, use Bundle, generally with
delegate.Discover the destination token with protocol and token data rather than hardcoding a venue.
How Enso does this
Get Started and the Route guide treat zaps into a vault, LP, or other tokenized position as Route use cases, and they assign borrow, repay, and leverage to Bundle. Confirm the current destination in token and protocol data. This article does not name lending markets or vaults.
FAQ
Is a lending deposit always tokenized?
No. If the position is not represented by a token, use the nontokenized endpoint and a smart wallet as documented.
Can one zap also borrow?
A Route zap enters one destination token. Borrowing is a Bundle action.
Related articles
How do I add a one-click zap into a vault?
What is a zap in DeFi?
Tokenized route vs nontokenized route
How do I borrow or repay through Enso?
How do I discover tokens, vaults, and protocols from the API?
