Submitted by cmichel.
There are ERC20 tokens that may make certain customizations to their ERC20 contracts.
One type of these tokens is deflationary tokens that charge a certain fee for every transfer() or transferFrom().
Others are rebasing tokens that increase in value over time like Aaves aTokens (balanceOf changes over time).
The PoolCommiter.commit() function will store the entire amount in the commitment but with fee-on-transfer tokens, fewer tokens will be transferred which leads to inconsistencies with the pool.longBalance() and in uncommit.
One possible mitigation is to measure the asset change right before and after the asset-transferring routines
rogue developer (Tracer) disputed:
Alex the Entreprenerd (judge) commented:
