-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple config and integration test for it
- Loading branch information
1 parent
1051942
commit f0442aa
Showing
4 changed files
with
87 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"bridgeToken": "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4", | ||
"pools": [ | ||
{ | ||
"nodeIndex": 0, | ||
"pool": "0x887B414d34bA20Ae7ED5378380682f22071d08c2", | ||
"poolModule": "UniswapV3.Metavault" | ||
} | ||
] | ||
} |
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 @@ | ||
graph G { | ||
token0 [label = "USDC\n0";]; | ||
token1 [label = "USDT\n1";]; | ||
pool0 [label = "UniswapV3.Metavault\n0x887b";shape = rect;style = dashed;]; | ||
token0 -- pool0; | ||
subgraph cluster0 { | ||
style = dotted; | ||
pool0 -- token1; | ||
subgraph { | ||
rank = same; | ||
edge [style = invis;]; | ||
token1; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
test/router/linkedPool/LinkedPoolConfig.Integration.Scroll.USDC.t.sol
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,14 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.17; | ||
|
||
import {LinkedPoolConfigIntegrationTest} from "./LinkedPoolConfigIntegration.sol"; | ||
|
||
contract LinkedPoolConfigUSDCScrollTestFork is LinkedPoolConfigIntegrationTest { | ||
/// @notice Test swaps worth 10_000 USDC | ||
uint256 public constant SWAP_VALUE = 10_000; | ||
|
||
/// @notice Used pools have accurate quoting functions, so should have no delta | ||
uint256 public constant MAX_PERCENT_DELTA = 0; | ||
|
||
constructor() LinkedPoolConfigIntegrationTest("scroll", "RFQ.USDC", SWAP_VALUE, MAX_PERCENT_DELTA) {} | ||
} |