Directly Calling CrocSwapDex
Solidity
// Ethereum
address dex = 0xAaAaAAAaA24eEeb8d57D431224f73832bC34f688
uint16 SWAP_PROXY = 1
CrocSwapDex(dex).userCmd(SWAP_PROXY, abi.encode(
base,
quote,
poolIdx,
isBuy,
inBaseQty,
qty,
tip,
limitPrice,
minOut,
settleFlags));
------------------------------------------------------------
// Scroll
address dex = 0xAaAaAAAaA24eEeb8d57D431224f73832bC34f688
uint16 SWAP_PROXY = 1
CrocSwapDex(dex).userCmd(SWAP_PROXY, abi.encode(
base,
quote,
poolIdx,
isBuy,
inBaseQty,
qty,
tip,
limitPrice,
minOut,
settleFlags));Javascript
ABI
Last updated