Skip to content

Commit

Permalink
Merge pull request #1366 from BalancerMaxis/USDC-Cow-and-Real
Browse files Browse the repository at this point in the history
USDC-Cow-and-Real
  • Loading branch information
Tritium-VLK committed Sep 20, 2024
2 parents 40f6ca9 + 2832ae4 commit d052a7a
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 2 deletions.
40 changes: 40 additions & 0 deletions MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
14 changes: 14 additions & 0 deletions MaxiOps/add_rewards/arbitrum/MORE_GYD_USDC_injector.report.txt
Original file line number Diff line number Diff line change
@@ -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 | | |
+---------------+-----------------------------------------------------------------------------------------------------------------+---------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------------+-----+----------+
```
42 changes: 42 additions & 0 deletions MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.json
Original file line number Diff line number Diff line change
@@ -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]"
}
}
]
}
17 changes: 17 additions & 0 deletions MaxiOps/injectorScheduling/arbitrum/USDC-Cow-and-Real.report.txt
Original file line number Diff line number Diff line change
@@ -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" | | |
| | | | ] | ] | ] | | |
+------------------+-----------------------------------------------------------------------------------------------------+--------+------------------------------------------------------------------------------------------------+-----------------------------+---------+--------------------------------+----------+
```
3 changes: 1 addition & 2 deletions action-scripts/brownie/scripts/report_gauges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit d052a7a

Please sign in to comment.