Skip to content

Commit

Permalink
feat: deploy base router
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed Apr 19, 2024
1 parent 95afb15 commit ebd0a41
Show file tree
Hide file tree
Showing 11 changed files with 1,361 additions and 13 deletions.
16 changes: 16 additions & 0 deletions contracts/implementations/base/AngleRouterBase.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.17;

import "../../BaseAngleRouterSidechain.sol";

/// @title AngleRouterBase
/// @author Angle Core Team
/// @notice Router contract built specifially for Angle use cases on Base
contract AngleRouterBase is BaseAngleRouterSidechain {
/// @inheritdoc BaseRouter
/// @dev There is no wCELO contract on CELO
function _getNativeWrapper() internal pure override returns (IWETH9) {
return IWETH9(0x4200000000000000000000000000000000000006);
}
}
4 changes: 4 additions & 0 deletions deploy/networks/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"uniswapV3Router": "0x2626664c2603336E57B271c5C0b26F421741e481",
"oneInchRouter": "0x1111111254eeb25477b68fb85ed929f73a960582"
}
6 changes: 3 additions & 3 deletions deploy/routerSidechain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const func: DeployFunction = async ({ ethers, deployments, network }) => {
let chainName: string;

if (!network.live) {
chainId = ChainId.CELO;
chainName = 'Celo';
chainId = ChainId.BASE;
chainName = 'Base';
} else {
chainId = ChainId.CELO;
chainId = ChainId.BASE;
chainName = network.name.charAt(0).toUpperCase() + network.name.substring(1);
}

Expand Down
1 change: 1 addition & 0 deletions deployments/base/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8453
247 changes: 247 additions & 0 deletions deployments/base/AngleRouterBaseV2.json

Large diffs are not rendered by default.

Loading

0 comments on commit ebd0a41

Please sign in to comment.