From 2ff41dedf6e692b5af9a28f27eed8b83222c98d7 Mon Sep 17 00:00:00 2001 From: bout3fiddy <11488427+bout3fiddy@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:32:51 +0100 Subject: [PATCH 1/2] add gauge manager from tx.origin --- contracts/main/LiquidityGauge.vy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/main/LiquidityGauge.vy b/contracts/main/LiquidityGauge.vy index a76496b7..6afa0965 100644 --- a/contracts/main/LiquidityGauge.vy +++ b/contracts/main/LiquidityGauge.vy @@ -173,7 +173,7 @@ def __init__(_lp_token: address): """ self.lp_token = _lp_token self.factory = msg.sender - self.manager = msg.sender + self.manager = tx.origin symbol: String[32] = ERC20Extended(_lp_token).symbol() name: String[64] = concat("Curve.fi ", symbol, " Gauge Deposit") From ce98e4439690cd297229d0b63718f05f0b24ad7e Mon Sep 17 00:00:00 2001 From: bout3fiddy <11488427+bout3fiddy@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:37:39 +0100 Subject: [PATCH 2/2] set new gauge implementation --- scripts/deploy_infra.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/deploy_infra.py b/scripts/deploy_infra.py index f63427ff..00d3441c 100644 --- a/scripts/deploy_infra.py +++ b/scripts/deploy_infra.py @@ -18,7 +18,7 @@ "plain_amm": "0x296d2b5c23833a70d07c8fcbb97d846c1ff90ddd", "meta_amm": "0xa12A87c73718a34CD8601b5022B2C6C359142585", "factory": "0xfb37b8D939FFa77114005e61CFc2e543d6F49A81", - "gauge": "0x64891ab20392a029c0f231656ff13c5ee64b730c", + "gauge": "", }, "ethereum:mainnet": { "math": "0x20D1c021525C85D9617Ccc64D8f547d5f730118A", @@ -26,7 +26,7 @@ "plain_amm": "0x3E3B5F27bbf5CC967E074b70E9f4046e31663181", "meta_amm": "0x19bd1AB34d6ABB584b9C1D5519093bfAA7f6c7d2", "factory": "0x6A8cbed756804B16E05E741eDaBd5cB544AE21bf", - "gauge": "0xF5617D4f7514bE35fce829a1C19AE7f6c9106979", + "gauge": "0xf2eff2Cd0d9C82b7b2f17FbBed703fA7931dB1da", }, # Layer 2 "arbitrum:mainnet": { @@ -193,6 +193,7 @@ def deploy_infra(network, url, account, fork=False): if fork: boa.env.fork(url) logger.log("Forkmode ...") + boa.env.eoa = deploy_utils.FIDDYDEPLOYER else: logger.log("Prodmode ...") boa.set_env(NetworkEnv(url)) @@ -260,7 +261,7 @@ def deploy_infra(network, url, account, fork=False): def main(): deploy_infra( - "ethereum:mainnet", + "ethereum:sepolia", os.environ["RPC_ETHEREUM"], "FIDDYDEPLOYER", fork=False,