Skip to content

Commit

Permalink
Add simple config and integration test for it
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Apr 30, 2024
1 parent 1051942 commit f0442aa
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
10 changes: 10 additions & 0 deletions script/configs/scroll/LinkedPool.RFQ.USDC.dc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bridgeToken": "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",
"pools": [
{
"nodeIndex": 0,
"pool": "0x887B414d34bA20Ae7ED5378380682f22071d08c2",
"poolModule": "UniswapV3.Metavault"
}
]
}
15 changes: 15 additions & 0 deletions script/configs/scroll/LinkedPool.RFQ.USDC.dot
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;
}
}
}
48 changes: 48 additions & 0 deletions script/configs/scroll/LinkedPool.RFQ.USDC.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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) {}
}

0 comments on commit f0442aa

Please sign in to comment.