Sell and cash out
HolosRouter.sell({coinIn, path, amountIn, minUsdcOut, recipient, deadline}) swaps the coin to HYPE, then HYPE to USDC, takes the fee from the USDC and sends the rest to recipient.
- Stay on Elysium:
recipientis your wallet. - Cash out to a chain: Holos asks Relay for a deposit address for that chain and amount (
useDepositAddress), and sets it asrecipient. The sale and the hand-off happen in one Elysium transaction; Relay's solver pays you on the other chain. If the deposit is under Relay's minimum or the quote expired, Relay refunds to your Elysium address (refundTo).
You sign two transactions on Elysium: the coin's approve and the sale. Gas is paid in HYPE; Gas Included on your first buy covers it.