SellBaseTokenare the two logs you want to pay attention to. As of now, DODO has 12 trading pairs and each one of them is a smart contract. In each pair, there is a base token and a quote token. Using the "WETH-USDC" pair as an example, WETH is the base token and USDC is the quote token. When you buy or sell a base token, you will pay or be paid in the quote token.
log.address"0xCa7b063" is the contract address of the trading pair
receiveBaseparameter shows the amount of SNX token that was bought and the
payQuoteparameter shows the amount of USDC that was paid. You can find the whole list of the trading pairs here.
Withdrawlogs are the ones to pay attention to. Each trading pair has its own liquidity pool. The
logs.addressattribute shows you which trading pair sent this log. In the below examples, both
Withdrawlogs are from the same contract "0x0D04146" which is the "COMP-USDC" trading pair.
isBaseTokenis the key to tell whether it's COMP (base token) or USDC (quote token).
amountparameter of "Donate" log is 4031233500000000000 and the
isBaseTokenparameter is true. That means 4.0312 LINK tokens (18 decimals) were paid as a fee. In the "BuyBaseToken" log, 1151.781 LINK tokens were purchased. So that's roughly 0.3% trading fee collected.