- the frontend app receives user payload, aka a list of transactions they want to perform along with their parameters.
- ex) swap 25 $ETH to $USDC on Ethereum -> bridge output $USDC to Solana -> swap output $USDC to $WETH -> bridge $WETH back to $ETH Ethereum
-
the xHolas contract executes transactions in a loop through delegate calls
-
each call gets routed to a handler contract based on the corresponding strategy (swap, bridge, borrow, lend)
- for cross-chain txs, the remaining tx function names and parameters are encoded and sent over to the target chain as a Wormhole VAA payload to be executed at the target chain's receiving contract.
Soon^TM