feat: deploy Ekubo gas optimizations

new executor and new router (since the executor is hardcoded for now).
This commit is contained in:
TAMARA LIPOWSKI
2025-04-03 12:51:23 +02:00
parent 9c8e093588
commit 9012d7b4d1
5 changed files with 6 additions and 10 deletions

View File

@@ -50,11 +50,7 @@ module.exports = {
},
etherscan: {
apiKey: {
unichain: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
base: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
ethereum: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
},
apiKey: process.env.BLOCKCHAIN_EXPLORER_API_KEY,
customChains: [
{
network: "unichain",

View File

@@ -554,7 +554,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard {
}
function locked(uint256) external {
address executor = address(0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279);
address executor = address(0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D);
// slither-disable-next-line controlled-delegatecall,low-level-calls
(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 {
address executor = address(0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279);
address executor = address(0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D);
// slither-disable-next-line controlled-delegatecall,low-level-calls
(bool success, bytes memory result) = executor.delegatecall(msg.data);

View File

@@ -1021,7 +1021,7 @@ contract TychoRouterTest is TychoRouterTestSetup {
// 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
vm.etch(
0xA612f60d3C49E5f13f0e067b14E0eD6656F3F279,
0x4f88f6630a33dB05BEa1FeF7Dc7ff7508D1c531D,
0x2a07706473244BC757E10F2a9E86fB532828afe3.code
);