The redeem action does not withdraw extra pool rewards. To claim those rewards in the same transaction, add a harvest action in a Bundle, typically with the delegate routing strategy.
Definition
Redeeming exits the underlying position. Harvesting claims additional rewards that accrued on top of that position. They are different actions and must not be treated as interchangeable.
How it works
If you only need the underlying asset, a redeem (on Route or in a Bundle, as the path allows) may be enough.
If you also need extra pool rewards, include a
harvestaction in a Bundle and then route or transfer the claimed tokens if required.Use
useOutputOfCallAtwhen a later step should consume the harvested amount.Same-chain bundle actions succeed or revert together.
How Enso does this
The FAQ states that redeem does not withdraw additional pool rewards and that you should use harvest for that. Get Started and the FAQ place harvest on the Bundle API, and the Smart Wallet FAQ calls for the delegate strategy when a bundle includes harvest or redeem. See the Bundle API and Actions references for the current action inputs.
FAQ
Can I harvest with the Route API?
No. The Route quick start tells you to use Bundle for actions such as harvest, borrow, and repay.
Do I need delegate for harvest?
The FAQ says to use a smart wallet with the delegate strategy when a bundle includes harvest or redeem.
Related articles
Redeem vs harvest
How do I bundle multiple DeFi actions into one transaction?
How do I use Enso with a smart wallet?
What is useOutputOfCallAt?
When should I use the Bundle API instead of Route?
