-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deposits don't work with fee-on transfer tokens #152
Comments
I think balancedBooks modifier should handle this? Of course it means we are unable to use such tokens, but that is ok |
oh, trying the same one again..? 😁 I'll fight this one though, I'd argue that we are using ERC20 tokens and according to the ERC20 spec for transferFrom:
A deflationary token therefore isn't compliant to ERC20 as it doesn't transfer the full |
If you plan not to support these tokens it should be very clearly documented. Keep in mind that "we don't support that" still has massive impact on the users involved. See: imBTC / ERC777 on Uniswap v1. The issue is valid and should stand in the audit report, in part so that future users see it. |
Interesting ...haha |
Handle
cmichel
Vulnerability details
Vulnerability Details
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()
ortransferFrom()
.Impact
The
deposit()
function will introduce unexpected balance inconsistencies when comparing internal asset records with external ERC20 token contracts.Recommended Mitigation Steps
One possible mitigation is to measure the asset change right before and after the asset-transferring routines
The text was updated successfully, but these errors were encountered: