Explore shortcuts for common DeFi workflows.
shortcuts/route
API calculates optimized multi-step paths for entering/exiting DeFi positions or swapping ERC20 tokens. It automatically creates a path between two positions specified in the request.shortcuts/bundle
API lets you orchestrate DeFi workflows by composing multi-step sequences of Actions of your choosing.route
do the job? route
API might be the simpler way to route your assets.
Before using the bundle API, check if route
would work using happypath.EnsoShortcutRouter
for execution.
route
API is suitable for single-path operations with automatic optimization.
0xc1fc3492f7b9c64871389d2a223eef6ccc165fb0
.
Example: Going from 1 ETH to Morpho USDC position
/v1/shortcuts/bundle
) excels at orchestrating complex sequences of operations.
NonfungiblePositionManager
that mints and manages NFT-based receipts for provided liquidity.enso.split
action takes the input AAVE and swaps the optimal amount for WETH to create a balanced pair required by the Uniswap pool.uniswap-v3.depositclmm
action takes the resulting WETH and AAVE from the previous step.25320
to 25980
).ETH
+ 30% USDC
to 50% ETH
+ 50% USDC
across Aave positions
Updated