aggregators
. The first thorchain aggregator
will use Sushiswap only and use ETH as the base asset. Aggregators need to follow a spec for compatibility with THORChain. Any THORChain ecosystem project can launch their own aggregator and get it whitelisted into THORChain. They can add custom/exotic routing logic if they wish.User -> Call Into Aggregator -> Swap Via AMM -> Deposit into THORChain -> Swap to Base Asset
to, asset, limit
are what is passed by THORChain in the SwapOut call for further execution.User -> Deposit into THORChain -> Swap to Base Asset -> Call into Aggregator -> Swap Via AMM
User -> Swap In -> THORChain -> Swap Out
MsgExecuteContract
, then call a MsgSend
into THORChain vaults with the correct memo. MsgExecuteContract
which then sends the final asset to the user. If failed, THORChain will execute the fallback and send the member the base asset instead.