Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 705 Bytes

exchangeswap.sol.md

File metadata and controls

23 lines (17 loc) · 705 Bytes

ExchangeSwap.sol

Functions

swapFill()

This function is used to spaw ETH/TOKEN, TOKEN/ETH or TOKEN/TOKEN using off-chain signed messages. The flow of the function is Desposit --> Trade --> Withdraw to allow users to directly take liquidity without the need of manual deposit and withdraw.

function swapFill(Order[] memory orders, bytes[] memory signatures,
uint256 givenAmount, address givenToken,address receivedToken,
address referral) public payable
parameter type
orders array of Order struct
signatures array of bytes
givenAmount uint256
givenToken address
receivedToken address
referral address