Skip to main content
Note on Routing Strategy: Collateral swaps use routingStrategy: "delegate", so the new collateral is deposited from the user’s own account. With router, the new collateral would be left in the shared Enso contract, and the API rejects the bundle.
To swap the collateral, we need four actions:
  • redeem a part of exising WETH collateral for the aWETH position
  • route to swap the redeemed collateral (WETH) to a different position (WBTC)
  • deposit the swapped position (WBTC) as collateral for the existing debt
  • slippage to check the received aWBTC amount against 0.5% slippage