I noticed since few days that NFTX “Buy and Redeem” Method has a BUG where redeemed token gets reported as ethSpent instead of actual ethSpent.
False Data (Log event 293):
This was picked up in the discord as well but we’ll also copy over the reply so it’s covered here too.
This will have happened during the deployment of the 0xMarketplaceZap.
In buyAndRedeem , _fillQuote returns quoteAmount in terms of vTokens bought, which is being incorrectly emitted in Buy event as ethSpent
A quick fix for the bot could be to subtract ethAmount from DustReturned event, from the eth value sent in that txn.
The misnaming probably isn’t worth redeploying an entire new zap, but can be flagged and will be updated if there are any substantial upgrades in the future.