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.
parameter | type |
orders | array of Order struct |
signatures | array of bytes |
givenAmount | uint256 |
givenToken | address |
receivedToken | address |
referral | address |
Last updated