-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": patch | ||
--- | ||
|
||
fix bug in auto2.3 withdrawERC20Fees |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@chainlink/contracts": patch | ||
--- | ||
|
||
fix bug in auto2.3 withdrawERC20Fees |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4636,7 +4636,7 @@ | |
describe('#withdrawOwnerFunds', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we update this test name? |
||
it('can only be called by finance admin', async () => { | ||
await evmRevert( | ||
registry.connect(keeper1).withdrawLinkFees(zeroAddress, 1), | ||
registry.connect(keeper1).withdrawLink(zeroAddress, 1), | ||
'OnlyFinanceAdmin()', | ||
) | ||
}) | ||
|
@@ -4693,7 +4693,7 @@ | |
// Now withdraw | ||
await registry | ||
.connect(financeAdmin) | ||
.withdrawLinkFees(await owner.getAddress(), ownerRegistryBalance) | ||
.withdrawLink(await owner.getAddress(), ownerRegistryBalance) | ||
|
||
ownerRegistryBalance = await registry.linkAvailableForPayment() | ||
const ownerAfter = await linkToken.balanceOf(await owner.getAddress()) | ||
|
@@ -5218,8 +5218,8 @@ | |
|
||
describe('when called by the owner when the admin has just canceled', () => { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
// @ts-ignore | ||
Check warning on line 5221 in contracts/test/v0.8/automation/AutomationRegistry2_3.test.ts
|
||
let oldExpiration: BigNumber | ||
|
||
beforeEach(async () => { | ||
await registry.connect(admin).cancelUpkeep(upkeepId) | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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.
👍