-
Notifications
You must be signed in to change notification settings - Fork 335
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
deal
does not work on Aave's aTokens or other tokens that perform computation in balanceOf
#140
Comments
Tried looking into this actually. Changing it from |
Not sure if this will help anyone, but to shed some light on this: To deal someone e.g.
Checked the code a bit though, and not sure how reasonable it would be to have such a special case for aTokens 😅 |
deal
does not work on Aave's aTokensdeal
does not work on Aave's aTokens or other tokens that perform computation in balanceOf
Also using this issue to track other tokens this has been reported for: |
Component
forge-std
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (4b720c2 2022-07-28T00:04:25.986568Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Intel)
Describe the bug
I have not been able to call
deal
on Aave's aToken (address:0xBcca60bB61934080951369a648Fb03DF4F96263C
). I have shared the stacktrace for thedeal
call below.This happens in a test where the first line of the function is
deal(token, msg.sender, amount);
. The error message is[FAIL. Reason: stdStorage find(StdStorage): Slot(s) not found.]
.In addition, it appears that aTokens are ERC20 compliant (their website states that aTokens support basic EIP20 functions).
Stack trace:
The text was updated successfully, but these errors were encountered: