Skip to main content

Redeem vs harvest

Redeem exits the underlying position. Harvest claims additional pool rewards. They are different Bundle actions, and redeem does not include those extra rewards.

J
Written by Javier Diaz

Redeem exits the underlying position. Harvest claims additional pool rewards. They are different actions. A redeem does not withdraw those extra rewards.

Definition

If a pool pays extra rewards on top of the position token, leaving the position and claiming those rewards are two separate operations.

How to choose

  • Use redeem when you want the underlying asset back from the pool or vault.

  • Use harvest when you want to claim additional rewards, on their own or in the same transaction as other steps.

  • If you need both, put harvest and redeem in a Bundle, typically with the delegate strategy, and chain amounts with useOutputOfCallAt when needed.

  • Route can redeem a tokenized position as part of a path, but the Route quick start sends harvest (and borrow or repay) to Bundle.

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 call for delegate when a bundle includes harvest or redeem. See the Actions reference for current inputs.

FAQ

Can I harvest with Route?

No. Use POST /api/v1/shortcuts/bundle.

Will a withdraw-and-swap route also harvest rewards?

Not by itself. If you also need extra pool rewards, add a harvest action in a Bundle.

Related articles

  • How do I harvest or claim rewards in the same transaction?

  • How do I withdraw from a vault and swap in one transaction?

  • When should I use the Bundle API instead of Route?

  • How do I use Enso with a smart wallet?

  • What does “Could not build shortcuts for route” mean?

Sources

Did this answer your question?