-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(protocol): correct the wrong router address for mainnet (#18291)
Co-authored-by: David <[email protected]>
- Loading branch information
1 parent
59832f1
commit ae0a9da
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
pragma solidity ^0.8.24; | ||
|
||
import "src/layer1/tiers/ITierRouter.sol"; | ||
import "src/layer1/tiers/TierProviderV2.sol"; | ||
|
||
/// @title MainnetTierRouter | ||
/// @dev Labeled in AddressResolver as "tier_router" | ||
/// @custom:security-contact [email protected] | ||
contract MainnetTierRouter is ITierRouter { | ||
contract MainnetTierRouter is ITierRouter, TierProviderV2 { | ||
/// @inheritdoc ITierRouter | ||
function getProvider(uint256) external pure returns (address) { | ||
return 0x4cffe56C947E26D07C14020499776DB3e9AE3a23; // TierProviderV2 | ||
function getProvider(uint256) external view returns (address) { | ||
return address(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters