-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add linea stargate config * Export linea stargate info * Add linea endpoints * Add lynex swap for linea * Fix correct lynex swap * Deploy swap for linea --------- Co-authored-by: AAweidai <[email protected]>
- Loading branch information
Showing
8 changed files
with
452 additions
and
188 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.13; | ||
|
||
interface ILynexRouter { | ||
struct route { | ||
address from; | ||
address to; | ||
bool stable; | ||
} | ||
|
||
function getAmountsOut( | ||
uint amountIn, | ||
route[] memory routes | ||
) external view returns (uint[] memory amounts); | ||
|
||
function swapExactTokensForTokens( | ||
uint amountIn, | ||
uint amountOutMin, | ||
route[] calldata routes, | ||
address to, | ||
uint deadline | ||
) external returns (uint[] memory amounts); | ||
|
||
function swapExactETHForTokens( | ||
uint amountOutMin, | ||
route[] calldata routes, | ||
address to, | ||
uint deadline | ||
) external payable returns (uint[] memory amounts); | ||
|
||
function swapExactTokensForETH( | ||
uint amountIn, | ||
uint amountOutMin, | ||
route[] calldata routes, | ||
address to, | ||
uint deadline | ||
) external returns (uint[] memory amounts); | ||
} |
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
Oops, something went wrong.