-
Notifications
You must be signed in to change notification settings - Fork 27
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
refactor(reallocate): use sum of assets #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw it seems that we're not testing that INSUFFICIENT_IDLE
is logged
I'm in favor of this implementation. I think it saves a lot of gas |
It depends on what you consider "a lot of", see this PR's description ^^ |
…into refactor/no-balanceOf
Yes mb I hadn't read it. It's weird that the savings are that low thought |
This solution has the benefit of not relying on
balanceOf
Besides that, it saves 1.4k gas on avg in hardhat tests. It's ridiculous though: <= 0.3% of tx cost