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

fix: admin cant interact with usdc implementation #45

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Conversation

excaliborr
Copy link
Contributor

🤖 Linear

Closes OPT-XXX

0xDiscotech
0xDiscotech previously approved these changes Jun 17, 2024
* @notice Changes the admin of the USDC proxy
* @param newAdmin Address to transfer proxy administration to
* @dev Owner should always be the L2 Adapter
* @dev This contract needs to be the admin of USDC because of the USDC proxy not allowing admin to interact with implementation
Copy link
Contributor

Choose a reason for hiding this comment

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

Linter warning here

src/interfaces/external/IUSDC.sol Show resolved Hide resolved
@@ -1,12 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
Copy link
Contributor

Choose a reason for hiding this comment

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

linter war

@0xDiscotech
Copy link
Contributor

Nice catch! 🕵️

@excaliborr excaliborr merged commit 43d9d62 into dev Jun 17, 2024
4 checks passed
@excaliborr excaliborr deleted the test/l1-bridging branch June 17, 2024 16:45
// Change the USDC admin so the init txs can be executed over the proxy from this contract
IUSDC(_usdcProxy).changeAdmin(_l2Adapter);
IUSDC(_usdcProxy).changeAdmin(_fallbackProxyAdmin);
Copy link
Contributor

Choose a reason for hiding this comment

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

here

/**
* @notice Changes the admin of the USDC proxy
* @param newAdmin Address to transfer proxy administration to
* @dev Owner should always be the L2 Adapter
Copy link
Contributor

Choose a reason for hiding this comment

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

here

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.

2 participants