From f180e80bfcdd26372f04e7139ec300f6a88f2fdb Mon Sep 17 00:00:00 2001 From: Zen-Maxi <85650601+Zen-Maxi@users.noreply.github.com> Date: Fri, 20 Sep 2024 10:58:14 -0400 Subject: [PATCH 1/4] USDC-Cow-and-Real Updates USDC injector schedule to be 2 weeks 5k/wk for ARB/wETH, 3k/wk for 1 more week on pendle/wETH and 2 weeks at 5k/wk for Re.al pool. https://balancer.fi/pools/arbitrum/v2/0x4284c68f567903537e2d9ff726fdf8591e431ddc0002000000000000000005b5 Also add_reward of USDC for re.al pool gauge. --- .../arbitrum/MORE_GYD_USDC_injector.json | 40 ++++++++++++++++++ .../arbitrum/USDC-Cow-and-Real.json | 42 +++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.json create mode 100644 MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json diff --git a/MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.json b/MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.json new file mode 100644 index 000000000..8863deaa3 --- /dev/null +++ b/MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.json @@ -0,0 +1,40 @@ +{ + "version": "1.0", + "chainId": "42161", + "createdAt": 1726844220121, + "meta": { + "name": "Transactions Batch", + "description": "", + "txBuilderVersion": "1.16.5", + "createdFromSafeAddress": "0xc38c5f97B34E175FFd35407fc91a937300E33860", + "createdFromOwnerAddress": "", + "checksum": "0x90f4c82078ec24e1c5389807a2084a2e7a3c9904d86f418ef33e7b6a67722ee5" + }, + "transactions": [ + { + "to": "0x97207B095e4D5C9a6e4cfbfcd2C3358E03B90c4A", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "performAction", + "payable": true + }, + "contractInputsValues": { + "target": "0x3b9c6C47bD3AC2e5E284265757EA2F6A4aED5fCc", + "data": "0xe8de0d4d000000000000000000000000af88d065e77c8cC2239327C5EDb3A432268e5831000000000000000000000000abC414cEE2F6E8Ee262d6dc106c86A3f627f84D2" + } + } + ] +} diff --git a/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json b/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json new file mode 100644 index 000000000..1705bdf79 --- /dev/null +++ b/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json @@ -0,0 +1,42 @@ +{ + "version": "1.0", + "chainId": "42161", + "createdAt": 1726843968842, + "meta": { + "name": "Transactions Batch", + "description": "", + "txBuilderVersion": "1.17.0", + "createdFromSafeAddress": "0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e", + "createdFromOwnerAddress": "", + "checksum": "0xed8867f4c278bc2c1da1d3214382e159989ae035dc704d4e8ec955ea86ddb483" + }, + "transactions": [ + { + "to": "0xabC414cEE2F6E8Ee262d6dc106c86A3f627f84D2", + "value": "0", + "data": null, + "contractMethod": { + "inputs": [ + { + "name": "gaugeAddresses", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "amountsPerPeriod", + "type": "uint256[]", + "internalType": "uint256[]" + }, + { "name": "maxPeriods", "type": "uint8[]", "internalType": "uint8[]" } + ], + "name": "setRecipientList", + "payable": false + }, + "contractInputsValues": { + "gaugeAddresses": "[0xbDBc27A1C245ed52EAcb0dc6ebA922992328F303,0xa1231e274c2e4E817923c0A0eDC9c5E0d4CB8B80,0x3b9c6C47bD3AC2e5E284265757EA2F6A4aED5fCc]", + "amountsPerPeriod": "[5000000000, 3000000000, 5000000000]", + "maxPeriods": "[2,1,2]" + } + } + ] +} From f5d155a84a78fb2f0b8aaaaea8afee27196d0a96 Mon Sep 17 00:00:00 2001 From: Zen-Maxi <85650601+Zen-Maxi@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:03:15 -0400 Subject: [PATCH 2/4] Update USDC-Cow-and-Real.json --- MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json b/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json index 1705bdf79..f21524fb2 100644 --- a/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json +++ b/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json @@ -33,7 +33,7 @@ "payable": false }, "contractInputsValues": { - "gaugeAddresses": "[0xbDBc27A1C245ed52EAcb0dc6ebA922992328F303,0xa1231e274c2e4E817923c0A0eDC9c5E0d4CB8B80,0x3b9c6C47bD3AC2e5E284265757EA2F6A4aED5fCc]", + "gaugeAddresses": "[0xbDBc27A1C245ed52EAcb0dc6ebA922992328F303, 0xa1231e274c2e4E817923c0A0eDC9c5E0d4CB8B80, 0x3b9c6C47bD3AC2e5E284265757EA2F6A4aED5fCc]", "amountsPerPeriod": "[5000000000, 3000000000, 5000000000]", "maxPeriods": "[2,1,2]" } From ec8821f133fd6be0464c6776af3837b012906b0c Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Fri, 20 Sep 2024 17:37:58 +0200 Subject: [PATCH 3/4] fix: explicitly retrieve contract from explorer --- action-scripts/brownie/scripts/report_gauges.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action-scripts/brownie/scripts/report_gauges.py b/action-scripts/brownie/scripts/report_gauges.py index c3c6f5dc1..37cb37d39 100644 --- a/action-scripts/brownie/scripts/report_gauges.py +++ b/action-scripts/brownie/scripts/report_gauges.py @@ -200,7 +200,6 @@ def _parse_aura_direct_incentive(transaction: dict, **kwargs) -> Optional[dict]: return to_address = to_checksum_address(transaction["to"]) switch_chain_if_needed(chain_id) - injector = Contract(to_address) tokenAddress = to_checksum_address(transaction["contractInputsValues"]["_token"]) with open("abis/ERC20.json", "r") as f: token = Contract.from_abi("Token", tokenAddress, json.load(f)) @@ -243,7 +242,7 @@ def _parse_set_recipient_list(transaction: dict, **kwargs) -> Optional[dict]: return to_address = to_checksum_address(transaction["to"]) switch_chain_if_needed(chain_id) - injector = Contract(to_address) + injector = Contract.from_explorer(to_address) tokenAddress = injector.getInjectTokenAddress() with open("abis/ERC20.json", "r") as f: token = Contract.from_abi("Token", tokenAddress, json.load(f)) From 2832ae4eca557ac2d4b7da0ba5be74d6784fb89c Mon Sep 17 00:00:00 2001 From: gosuto-inzasheru Date: Fri, 20 Sep 2024 15:41:58 +0000 Subject: [PATCH 4/4] Automated processing of Payload PR (validations, transformations, and reports) + reformat JSON --- .../arbitrum/MORE_GYD_USDC_injector.report.txt | 14 ++++++++++++++ .../arbitrum/USDC-Cow-and-Real.report.txt | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.report.txt create mode 100644 MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.report.txt diff --git a/MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.report.txt b/MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.report.txt new file mode 100644 index 000000000..1b2b81a09 --- /dev/null +++ b/MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.report.txt @@ -0,0 +1,14 @@ +FILENAME: `MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.json` +MULTISIG: `multisigs/lm (arbitrum:0xc38c5f97B34E175FFd35407fc91a937300E33860)` +COMMIT: `ec8821f133fd6be0464c6776af3837b012906b0c` +CHAIN(S): `arbitrum` +TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/44cbbc0d-9277-4253-972c-33a71dc77c82) + +``` ++---------------+-----------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+-----+----------+ +| function | entrypoint | target | selector | parsed_inputs | bip | tx_index | ++---------------+-----------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+-----+----------+ +| performAction | 0x97207B095e4D5C9a6e4cfbfcd2C3358E03B90c4A (20221124-authorizer-adaptor-entrypoint/AuthorizerAdaptorEntrypoint) | 0x3b9c6C47bD3AC2e5E284265757EA2F6A4aED5fCc (None) | add_reward(address,address) | 0xaf88d065e77c8cC2239327C5EDb3A432268e5831: USDC | N/A | 0 | +| | | | | 0xabC414cEE2F6E8Ee262d6dc106c86A3f627f84D2: maxiKeepers/gaugeRewardsInjectors/usdc_rewards_injector | | | ++---------------+-----------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+-----+----------+ +``` diff --git a/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.report.txt b/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.report.txt new file mode 100644 index 000000000..0dda01e1e --- /dev/null +++ b/MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.report.txt @@ -0,0 +1,17 @@ +FILENAME: `MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json` +MULTISIG: `multisigs/vote_incentive_recycling (arbitrum:0x9ff471F9f98F42E5151C7855fD1b5aa906b1AF7e)` +COMMIT: `ec8821f133fd6be0464c6776af3837b012906b0c` +CHAIN(S): `arbitrum` +TENDERLY: [`🟩 SUCCESS`](https://www.tdly.co/shared/simulation/14d6f4f6-9326-4816-b90d-eb6fb91bb7d9) + +``` ++------------------+-----------------------------------------------------------------------------------------------------+--------+------------------------------------------------------------------------------------------------+-----------------------------+---------+--------------------------------+----------+ +| function | injector | symbol | gaugeList | amounts_per_period | periods | total_amount_first_period | tx_index | ++------------------+-----------------------------------------------------------------------------------------------------+--------+------------------------------------------------------------------------------------------------+-----------------------------+---------+--------------------------------+----------+ +| setRecipientList | 0xabC414cEE2F6E8Ee262d6dc106c86A3f627f84D2(maxiKeepers/gaugeRewardsInjectors/usdc_rewards_injector) | USDC | [ | [ | [ | raw: 13000000000/1e6 = 13000.0 | 0 | +| | | | "0xbDBc27A1C245ed52EAcb0dc6ebA922992328F303 (Balancer BCoW-50ARB-50WETH Gauge Deposit)", | "5000000000/1e6 = 5000.0", | "2", | | | +| | | | "0xa1231e274c2e4E817923c0A0eDC9c5E0d4CB8B80 (Balancer BCoW-50PENDLE-50wstETH Gauge Deposit)", | "3000000000/1e6 = 3000.0", | "1", | | | +| | | | "0x3b9c6C47bD3AC2e5E284265757EA2F6A4aED5fCc (Balancer ECLP-MORE-GYD Gauge Deposit)" | "5000000000/1e6 = 5000.0" | "2" | | | +| | | | ] | ] | ] | | | ++------------------+-----------------------------------------------------------------------------------------------------+--------+------------------------------------------------------------------------------------------------+-----------------------------+---------+--------------------------------+----------+ +```