Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1 KB

README.md

File metadata and controls

20 lines (13 loc) · 1 KB

xHolas-contract

Videos

xHolas Demo

xHolas Contract Flow

Smart Contract Architecture

  1. 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
  1. the xHolas contract executes transactions in a loop through delegate calls

  2. 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.

Deployment addresses

Soon^TM