Open 0xbok opened 1 year ago
@0xbok I think I'm also leaning towards not supporting them for now. The other option is to move it to the front of the transaction and add a reentrency guard. But, i think we could consider that for a next iteration.
so there are 2 ways now: either we just say that users are responsible for ensuring that they dont use fee-on-transfer tokens with ditto (and frontend can also assist here), or we revert in the contract.
@calvbore this is not as easy since we transfer tokens at the very end after all the state changes. Supporting fee-on-transfer token would need to move erc20 transfer at the beginning. I'm inclining towards not supporting these kind of tokens now.