Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linked pools for usdc: deploy on Mainnet, adjust on Avalanche #308

Merged
merged 27 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ea1f13b
Add preliminary LinkedPool config for Mainnet USDC
ChiTimesChi Nov 4, 2023
0317b94
Add integration tests for the new config
ChiTimesChi Nov 4, 2023
4b5dfda
Regenerate LinkedPool config using a new module
ChiTimesChi Nov 7, 2023
33c0fd3
PIn a block after the module deployment
ChiTimesChi Nov 7, 2023
06ad30f
Use multi-line labels to make the viz less thicc
ChiTimesChi Nov 7, 2023
faca64c
Regenerate new config viz
ChiTimesChi Nov 7, 2023
e76b971
Deploy LinkedPool for Mainnet USDC
ChiTimesChi Nov 7, 2023
39db3d7
Update the LinkedPool config on AVAX
ChiTimesChi Nov 8, 2023
5830173
[REVERT IN PROD] Enable CI workflow for AVAX USDC LinkedPool
ChiTimesChi Nov 8, 2023
2d1f1a7
Unpin linked pool config tests from a specific block number
ChiTimesChi Nov 8, 2023
2b327a1
Revert "[REVERT IN PROD] Enable CI workflow for AVAX USDC LinkedPool"
ChiTimesChi Nov 8, 2023
10eaef2
[REVERT IN PROD] Enable CI workflow for all LinkedPools
ChiTimesChi Nov 8, 2023
79eee56
make bad quotes logging more generic
ChiTimesChi Nov 8, 2023
305d61f
Chore: improve float logging
ChiTimesChi Nov 8, 2023
add88ff
Log trades with slippage >= 1%
ChiTimesChi Nov 8, 2023
f101fa3
Log only bad quotes to improve readability
ChiTimesChi Nov 8, 2023
3e7a5b6
Chore: make logs a bit more readable
ChiTimesChi Nov 8, 2023
fb6b11c
Disallow block pinning in the test template for linked pools
ChiTimesChi Nov 8, 2023
7d0101f
Revert "[REVERT IN PROD] Enable CI workflow for all LinkedPools"
ChiTimesChi Nov 8, 2023
84e0d8e
Add more TraderJoe pools to Avax LinkedPool
ChiTimesChi Nov 14, 2023
f231cb2
[REVERT IN PROD] enable CI workflow AVAX LinkedPools
ChiTimesChi Nov 14, 2023
10086e8
Revert "[REVERT IN PROD] enable CI workflow AVAX LinkedPools"
ChiTimesChi Nov 14, 2023
aa33e53
Make Optimism vix less thicc
ChiTimesChi Nov 14, 2023
294ac07
More external pools to the USDC LinkedPool config
ChiTimesChi Nov 14, 2023
2479cc8
[REVERT IN PROD] enable CI workflow for Opt USDC LinkedPool
ChiTimesChi Nov 14, 2023
514bd62
Duplicate the setup
ChiTimesChi Nov 15, 2023
34b75f1
Revert "[REVERT IN PROD] enable CI workflow for Opt USDC LinkedPool"
ChiTimesChi Nov 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
600 changes: 600 additions & 0 deletions deployments/mainnet/LinkedPool.CCTP.USDC.json

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions script/configs/avalanche/LinkedPool.CCTP.USDC.dc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,46 @@
"nodeIndex": 7,
"pool": "0xED2a7edd7413021d440b09D654f3b87712abAB66",
"poolModule": ""
},
{
"nodeIndex": 0,
"pool": "0x9B2Cc8E6a2Bbb56d6bE4682891a91B0e48633c72",
"poolModule": "TraderJoeV21"
},
{
"nodeIndex": 0,
"pool": "0x7c13D4C3E9DFa683E7a5792a9FF20CB5FD22B0c0",
"poolModule": "TraderJoeV21"
},
{
"nodeIndex": 12,
"pool": "0xED2a7edd7413021d440b09D654f3b87712abAB66",
"poolModule": ""
},
{
"nodeIndex": 0,
"pool": "0xE2B11d3002A2e49F1005e212e860f3b3eC73F985",
"poolModule": "TraderJoeV21"
},
{
"nodeIndex": 6,
"pool": "0x6fE050dc81B98E4464D3B4461A7995A8bf3350Db",
"poolModule": "TraderJoeV21"
},
{
"nodeIndex": 11,
"pool": "0x6fE050dc81B98E4464D3B4461A7995A8bf3350Db",
"poolModule": "TraderJoeV21"
},
{
"nodeIndex": 16,
"pool": "0xED2a7edd7413021d440b09D654f3b87712abAB66",
"poolModule": ""
},
{
"nodeIndex": 16,
"pool": "0x6fE050dc81B98E4464D3B4461A7995A8bf3350Db",
"poolModule": "TraderJoeV21"
}
]
}
138 changes: 122 additions & 16 deletions script/configs/avalanche/LinkedPool.CCTP.USDC.dot
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
graph G {
token0 [label = "0: USDC";];
token1 [label = "1: nUSD";];
token2 [label = "2: USDt";];
token3 [label = "3: DAI.e";];
token4 [label = "4: USDC.e";];
token5 [label = "5: USDT.e";];
token6 [label = "6: USDt";];
token7 [label = "7: USDC.e";];
token8 [label = "8: nUSD";];
token9 [label = "9: DAI.e";];
token10 [label = "10: USDT.e";];
pool0 [label = "DefaultPool 0xa196";shape = rect;style = dashed;];
token0 [label = "USDC\n0";];
token1 [label = "nUSD\n1";];
token2 [label = "USDt\n2";];
token3 [label = "DAI.e\n3";];
token4 [label = "USDC.e\n4";];
token5 [label = "USDT.e\n5";];
token6 [label = "USDt\n6";];
token7 [label = "USDC.e\n7";];
token8 [label = "nUSD\n8";];
token9 [label = "DAI.e\n9";];
token10 [label = "USDT.e\n10";];
token11 [label = "USDt\n11";];
token12 [label = "USDC.e\n12";];
token13 [label = "nUSD\n13";];
token14 [label = "DAI.e\n14";];
token15 [label = "USDT.e\n15";];
token16 [label = "USDT.e\n16";];
token17 [label = "USDT.e\n17";];
token18 [label = "USDT.e\n18";];
token19 [label = "nUSD\n19";];
token20 [label = "DAI.e\n20";];
token21 [label = "USDC.e\n21";];
token22 [label = "USDt\n22";];
pool0 [label = "DefaultPool\n0xa196";shape = rect;style = dashed;];
token0 -- pool0;
subgraph cluster0 {
style = dotted;
Expand All @@ -22,7 +34,7 @@ graph G {
token1 -- token2;
}
}
pool1 [label = "DefaultPool 0xed2a";shape = rect;style = dashed;];
pool1 [label = "DefaultPool\n0xed2a";shape = rect;style = dashed;];
token1 -- pool1;
subgraph cluster1 {
style = dotted;
Expand All @@ -36,7 +48,7 @@ graph G {
token4 -- token5;
}
}
pool2 [label = "UniswapV3SR02 0x8042";shape = rect;style = dashed;];
pool2 [label = "UniswapV3SR02\n0x8042";shape = rect;style = dashed;];
token0 -- pool2;
subgraph cluster2 {
style = dotted;
Expand All @@ -47,7 +59,7 @@ graph G {
token6;
}
}
pool3 [label = "GMXV1StableAvalanche 0x9ab2";shape = rect;style = dashed;];
pool3 [label = "GMXV1StableAvalanche\n0x9ab2";shape = rect;style = dashed;];
token0 -- pool3;
subgraph cluster3 {
style = dotted;
Expand All @@ -58,7 +70,7 @@ graph G {
token7;
}
}
pool4 [label = "DefaultPool 0xed2a";shape = rect;style = dashed;];
pool4 [label = "DefaultPool\n0xed2a";shape = rect;style = dashed;];
token7 -- pool4;
subgraph cluster4 {
style = dotted;
Expand All @@ -72,4 +84,98 @@ graph G {
token9 -- token10;
}
}
pool5 [label = "TraderJoeV21\n0x9b2c";shape = rect;style = dashed;];
token0 -- pool5;
subgraph cluster5 {
style = dotted;
pool5 -- token11;
subgraph {
rank = same;
edge [style = invis;];
token11;
}
}
pool6 [label = "TraderJoeV21\n0x7c13";shape = rect;style = dashed;];
token0 -- pool6;
subgraph cluster6 {
style = dotted;
pool6 -- token12;
subgraph {
rank = same;
edge [style = invis;];
token12;
}
}
pool7 [label = "DefaultPool\n0xed2a";shape = rect;style = dashed;];
token12 -- pool7;
subgraph cluster7 {
style = dotted;
pool7 -- token13;
pool7 -- token14;
pool7 -- token15;
subgraph {
rank = same;
edge [style = invis;];
token13 -- token14;
token14 -- token15;
}
}
pool8 [label = "TraderJoeV21\n0xe2b1";shape = rect;style = dashed;];
token0 -- pool8;
subgraph cluster8 {
style = dotted;
pool8 -- token16;
subgraph {
rank = same;
edge [style = invis;];
token16;
}
}
pool9 [label = "TraderJoeV21\n0x6fe0";shape = rect;style = dashed;];
token6 -- pool9;
subgraph cluster9 {
style = dotted;
pool9 -- token17;
subgraph {
rank = same;
edge [style = invis;];
token17;
}
}
pool10 [label = "TraderJoeV21\n0x6fe0";shape = rect;style = dashed;];
token11 -- pool10;
subgraph cluster10 {
style = dotted;
pool10 -- token18;
subgraph {
rank = same;
edge [style = invis;];
token18;
}
}
pool11 [label = "DefaultPool\n0xed2a";shape = rect;style = dashed;];
token16 -- pool11;
subgraph cluster11 {
style = dotted;
pool11 -- token19;
pool11 -- token20;
pool11 -- token21;
subgraph {
rank = same;
edge [style = invis;];
token19 -- token20;
token20 -- token21;
}
}
pool12 [label = "TraderJoeV21\n0x6fe0";shape = rect;style = dashed;];
token16 -- pool12;
subgraph cluster12 {
style = dotted;
pool12 -- token22;
subgraph {
rank = same;
edge [style = invis;];
token22;
}
}
}
Loading
Loading