-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Auto 9427 withdraw erc 20 fees does not check reserve amount #12582
Auto 9427 withdraw erc 20 fees does not check reserve amount #12582
Conversation
_onlyFinanceAdminAllowed(); | ||
if (to == ZERO_ADDRESS) revert InvalidRecipient(); | ||
uint256 available = asset.balanceOf(address(this)) - s_reserveAmounts[asset]; | ||
if (amount > available) revert InsufficientBalance(available, amount); |
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.
👍
b9d23be
to
a4feec2
Compare
a4feec2
to
b546312
Compare
Quality Gate passedIssues Measures |
@@ -4636,7 +4636,7 @@ describe('AutomationRegistry2_3', () => { | |||
describe('#withdrawOwnerFunds', () => { |
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.
should we update this test name?
No description provided.