SWAP-AGGREGATOR-A

Swap integration for DEX Aggregators.

Swap-Aggregator-v1 connector triggers methods like swap. You can view details like source code, ABIs on Etherscan.

  • Use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to indicate ETH.
  • use -1 or dsa.maxValue for the maximum amount in function.
  • If not sure about the arguments getId and setId, pass 0.

Swap

Swap tokens from exchanges like 1INCH, 0x etc, with calculation done off-chain.

spells.add({
  connector: "SWAP-AGGREGATOR-A",
  method: "swap",
  args: [_connectors, _datas]
});
Parameter Type Description
_connectors string[] The name of the connectors like 1INCH-A, 0x etc, in order of their priority.
_datas bytes[] Encoded function call data including function selector encoded with parameters.

If you still can't find something you're looking for or have any questions, ask them at our developers community on Discord or simply send an Email.

Our team is excited about assisting you to build an application using Instadapp Developer Platform. Your questions and feedback help us make a better development environment for future developers.