Skip to content

xHolas-Pit/xHolas-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published