This function fires an event after a token is successfully swapped
Every trade on Bancor will emit this event with information on the trade itself.
Token indexed pool,
Token indexed sourceToken,
Token indexed targetToken,
Unique identifier for the specific transaction (can be used for grouping multiple events)
the address of the pool utilizing the trade
The source token address
The target token address
The amount of source tokens
The amount of target tokens
Amount of BNT tokens that were reallocated from sourceToken to targetToken trade liquidity
The trading fee amount for target tokens
The trading fee amount for BNT tokens
The senders wallet address
Trades on the Bancor Network are represented by a single-hop in all cases. TokensTraded event tracks the key information. The sourceAmount is provided by the trader in exchange for the targetAmount (which already has the targetTokenFee subtracted from it).
Behind the scenes, the bntAmount is the BNT volume that facilitates the trade and has the bntFee subtracted from it.