Skip to content
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

Merged

Conversation

RyanRHall
Copy link
Contributor

No description provided.

_onlyFinanceAdminAllowed();
if (to == ZERO_ADDRESS) revert InvalidRecipient();
uint256 available = asset.balanceOf(address(this)) - s_reserveAmounts[asset];
if (amount > available) revert InsufficientBalance(available, amount);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

shileiwill
shileiwill previously approved these changes Mar 25, 2024
@RyanRHall RyanRHall enabled auto-merge March 26, 2024 12:33
@RyanRHall RyanRHall force-pushed the AUTO-9427-withdraw-erc-20-fees-does-not-check-reserve-amount branch from b9d23be to a4feec2 Compare March 26, 2024 12:49
@RyanRHall RyanRHall force-pushed the AUTO-9427-withdraw-erc-20-fees-does-not-check-reserve-amount branch from a4feec2 to b546312 Compare March 26, 2024 13:46
@cl-sonarqube-production
Copy link

@@ -4636,7 +4636,7 @@ describe('AutomationRegistry2_3', () => {
describe('#withdrawOwnerFunds', () => {
Copy link
Contributor

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?

@RyanRHall RyanRHall added this pull request to the merge queue Mar 26, 2024
Merged via the queue into develop with commit 684afa4 Mar 26, 2024
115 checks passed
@RyanRHall RyanRHall deleted the AUTO-9427-withdraw-erc-20-fees-does-not-check-reserve-amount branch March 26, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants