Submitted by Ch_301
The protocol is designed to ensure it is compatible with fee-on-transfer tokens (Fee-on-transfer is in scope). For example, the erc20TransferInLiquidity() function checks the balance before and after, and calculates the difference between these values to measure the tokens received
But at the end of the logic, it has a required check if the contract received the exact intended amount
these two features are not compatible If the asset is Fee-on-transfer tokens the requirement will keep revert
Example:
Any function/feature that calls:
in VaultLogic.sol will revert if the asset is Fee-on-transfer tokens.
When fee-on-transfer tokens should be supported, you need to check the actual balance differences but dont expect to receive the exact amount. If they are not supported, this should be documented.
ERC20
thorseldon (BendDAO) disputed and commented:
0xTheC0der (judge) commented:
