0

First of all, I have already searched on Google, and I didn't find a clear answer.

What I would like to do : For example, I would like to make one swap on uniswap, and the second to sushiswap, in the same transaction, like this :

UNISWAP : ETH -> UNI

SUSHISWAP : UNI ( last output ) -> ALCX

I know it's possible by writing a smart contract, but I don't know at all how to do. Anyone has an idea ?

Thank you a lot.

1
  • @SergiJuanati , Hello, not exactly, I already saw this post before. In my mind , it should be like this : 1 - Send ETH to the contract 2 - Call UniwapRouter, to swap theses ETH against UNI ( for example ) 3 - Call SushiswapRouter to swap these UNI against ALCD ( for example ) 4 - End
    – Unimerger
    Mar 27, 2021 at 15:35

1 Answer 1

0

You cannot make two swaps in a single transaction without going through a smart contract.

Uniswap and Sushiswap are 2 different contracts and the only way to interact with both in a single transaction is through a smart contract.

2
  • hello, I know it , as I said " I know it's possible by writing a smart contract, but I don't know at all how to do "
    – Unimerger
    Mar 28, 2021 at 7:52
  • Then you have to learn how to develop smart contracts. Have a look at this answer ethereum.stackexchange.com/questions/95081/…
    – Undead8
    Mar 28, 2021 at 13:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.