Open Jason-Zhangxin-Chen opened 4 days ago
Hello, this info was removed from the event log to improve gas efficiency. It can be derived from Transfer
events on the same transaction, which is done for example in getFullSwapERC20
available in @airswap/utils
.
https://github.com/airswap/airswap-protocols/blob/develop/tools/utils/src/swap-erc20.ts#L354
Thank you so much, @dmosites. Just a few more questions:
getFullSwapERC20
, the pairing of signer and sender assumes that the msg.sender
of https://github.com/airswap/airswap-protocols/blob/develop/source/swap-erc20/contracts/SwapERC20.sol#L142 equals to the recepient
of https://github.com/airswap/airswap-protocols/blob/develop/source/swap-erc20/contracts/SwapERC20.sol#L151, can this assumption be always true?
Hi, is it possible to add such info in the SwapERC20 event, thus that we can track the orderbooks and aggregate the exchange ratio of pairs from airswap network easily?