feat: deploy Ekubo gas optimizations
new executor and new router (since the executor is hardcoded for now).
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"pancakeswap_v3": "0x4929B619A8F0D9c06ed0FfD497636580D823F65d",
|
"pancakeswap_v3": "0x4929B619A8F0D9c06ed0FfD497636580D823F65d",
|
||||||
"uniswap_v4": "0x042C0ebBEAb9d9987c2f64Ee05f2B3aeB86eAf70",
|
"uniswap_v4": "0x042C0ebBEAb9d9987c2f64Ee05f2B3aeB86eAf70",
|
||||||
"vm:balancer_v2": "0x00BE8EfAE40219Ff76287b0F9b9e497942f5BC91",
|
"vm:balancer_v2": "0x00BE8EfAE40219Ff76287b0F9b9e497942f5BC91",
|
||||||
"ekubo_v2": "0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279"
|
"ekubo_v2": "0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D"
|
||||||
},
|
},
|
||||||
"tenderly_ethereum": {
|
"tenderly_ethereum": {
|
||||||
"uniswap_v2": "0x00C1b81e3C8f6347E69e2DDb90454798A6Be975E",
|
"uniswap_v2": "0x00C1b81e3C8f6347E69e2DDb90454798A6Be975E",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"ethereum": "0x0178f471f219737c51d6005556d2f44de011a08a",
|
"ethereum": "0xabA2fC41e2dB95E77C6799D0F580034395FF2B9E",
|
||||||
"base": "0xC2C23b0199525DE070D126860133dc3badaD2EEb",
|
"base": "0xC2C23b0199525DE070D126860133dc3badaD2EEb",
|
||||||
"unichain": "0x9BDC3bE75440dBE563527CB39BB11cFBD1E21b09"
|
"unichain": "0x9BDC3bE75440dBE563527CB39BB11cFBD1E21b09"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,11 +50,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
etherscan: {
|
etherscan: {
|
||||||
apiKey: {
|
apiKey: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
|
||||||
unichain: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
|
|
||||||
base: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
|
|
||||||
ethereum: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
|
|
||||||
},
|
|
||||||
customChains: [
|
customChains: [
|
||||||
{
|
{
|
||||||
network: "unichain",
|
network: "unichain",
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function locked(uint256) external {
|
function locked(uint256) external {
|
||||||
address executor = address(0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279);
|
address executor = address(0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D);
|
||||||
|
|
||||||
// slither-disable-next-line controlled-delegatecall,low-level-calls
|
// slither-disable-next-line controlled-delegatecall,low-level-calls
|
||||||
(bool success, bytes memory result) = executor.delegatecall(msg.data);
|
(bool success, bytes memory result) = executor.delegatecall(msg.data);
|
||||||
@@ -577,7 +577,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function payCallback(uint256, address /*token*/ ) external {
|
function payCallback(uint256, address /*token*/ ) external {
|
||||||
address executor = address(0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279);
|
address executor = address(0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D);
|
||||||
|
|
||||||
// slither-disable-next-line controlled-delegatecall,low-level-calls
|
// slither-disable-next-line controlled-delegatecall,low-level-calls
|
||||||
(bool success, bytes memory result) = executor.delegatecall(msg.data);
|
(bool success, bytes memory result) = executor.delegatecall(msg.data);
|
||||||
|
|||||||
@@ -1021,7 +1021,7 @@ contract TychoRouterTest is TychoRouterTestSetup {
|
|||||||
// TEMPORARY while the Ekubo executor address is hardcoded in TychoRouter
|
// TEMPORARY while the Ekubo executor address is hardcoded in TychoRouter
|
||||||
// This allows us to change the code at that address to be the testing executor code
|
// This allows us to change the code at that address to be the testing executor code
|
||||||
vm.etch(
|
vm.etch(
|
||||||
0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279,
|
0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D,
|
||||||
0x2a07706473244BC757E10F2a9E86fB532828afe3.code
|
0x2a07706473244BC757E10F2a9E86fB532828afe3.code
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user