-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* checking the routing contracts * feat: deploy new router implementations * fix: linea router * fix: lint
- Loading branch information
Showing
43 changed files
with
7,962 additions
and
494 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity ^0.8.17; | ||
|
||
import "../../BaseRouter.sol"; | ||
|
||
/// @title AngleRouterLinea | ||
/// @author Angle Core Team | ||
/// @notice Router contract built specifially for Angle use cases on Linea | ||
contract AngleRouterLinea is BaseRouter { | ||
/// @inheritdoc BaseRouter | ||
function _getNativeWrapper() internal pure override returns (IWETH9) { | ||
return IWETH9(0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity >=0.5.0; | ||
|
||
/// @title IDepositWithReferral | ||
/// @author Angle Core Team | ||
/// @notice Interface for Angle routing contract to notably deposit into ERC4626 with a referral address | ||
interface IDepositWithReferral { | ||
/// @notice Deposits `amount` of `token` into an ERC4626 `savings` contract (with `token` as an asset) | ||
/// @param minSharesOut Minimum amount of shares of the ERC4626 the deposit should return. If less is | ||
/// obtained, the function reverts | ||
/// @param referrer Address which referred `msg.sender` to deposit into `savings`. Any address can be entered | ||
/// and the referrer address has no storage implication, it just changes the event emitted by this contract | ||
/// when a deposit takes place | ||
/// @dev This function is a wrapper on top of the base `deposit` function of ERC4626 with the ability to | ||
/// specify a referring address (`referrer`) as well as a slippage parameter (`minSharesOut`) | ||
function deposit4626Referral( | ||
address token, | ||
address savings, | ||
uint256 amount, | ||
address to, | ||
uint256 minSharesOut, | ||
address referrer | ||
) external returns (uint256 sharesOut); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"oneInchRouter": "0x0000000000000000000000000000000000000000", | ||
"uniswapV3Router": "0x0000000000000000000000000000000000000000" | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.