Skip to content

Commit

Permalink
BIP-447D-Gnosis-USDC-Distribution
Browse files Browse the repository at this point in the history
Executes the final portion of the BIP spec. Further the Balancer Maxi’s are instructed to sweep all collected EURE/USDC fees earned as of October 15th to USDC a separate account. These fees will then be streamed as follows:

October 19th:
20% of total as direct incentives over the AURA platform on sDAI/EURe
20% of the total as direct incentives over the Balancer platform on sDAI/EURe

The remaining 60% of USDC will streamed in 2 weekly epochs extending from the end of the October 19th emissions.

Transaction steps: 1. LM Multisig 0x14969B55a675d13a1700F71A37511bc22D90155a acceptsOwnership of Injector 0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9. 2. LM Multisig setRecipientList on Injector, passing sDAI/EURe gauge gaugeAddresses (address[])[0xBB2598b89202596A743BE0b615001D7D5164f167]
amountsPerPeriod (uint256[]) [9979830058]
maxPeriods (uint8[])
[2]
3. transfer [19959660116]  0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83 (USDC) to 0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9 and
4. [6653220039] to 0x6068eb7490748A1A49830B58524C002b545c1Ce2.

5. Then approve 0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9 to spend 6653220039 USDC.
6. To add USDC as a reward token the the gauge, the LM Multisig will interact with the AuthorizerAdaptorEntrypoint 0x8F42aDBbA1B16EaAE3BB5754915E0D06059aDd75 calling performAction of the sDAI/EURe gauge as target 0xBB2598b89202596A743BE0b615001D7D5164f167 and data bytes 0xe8de0d4d000000000000000000000000ddafbb505ad214d7b80b1f830fccc89b60fb7a8300000000000000000000000014969b55a675d13a1700f71a37511bc22d90155a.

7. The LM Multisig will call deposit_reward_token on the gauge and pass _reward_token 0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83 (USDC) and _amount 6653220039.

8. The LM Multisig will set_reward_distributor to the injector for USDC. _reward_token 0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83 _distributor: 0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9
Simulation: https://dashboard.tenderly.co/public/safe/safe-apps/simulator/5c303f7c-c158-40d2-a9cd-b18d007a755e
  • Loading branch information
Zen-Maxi committed Oct 21, 2023
1 parent 9a19c9e commit b314e03
Showing 1 changed file with 155 additions and 0 deletions.
155 changes: 155 additions & 0 deletions BIPs/2023-W41/BIP-447D.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
{
"version": "1.0",
"chainId": "100",
"createdAt": 1697894131488,
"meta": {
"name": "Transactions Batch",
"description": "",
"txBuilderVersion": "1.16.3",
"createdFromSafeAddress": "0x14969B55a675d13a1700F71A37511bc22D90155a",
"createdFromOwnerAddress": "",
"checksum": "0x53c4f07d566736fad6ab3d75e0323a11e166f5ba09ca28d040375a48fd0fd318"
},
"transactions": [
{
"to": "0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [],
"name": "acceptOwnership",
"payable": false
},
"contractInputsValues": null
},
{
"to": "0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9",
"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": "[0xBB2598b89202596A743BE0b615001D7D5164f167]",
"amountsPerPeriod": "[9979830058]",
"maxPeriods": "[2]"
}
},
{
"to": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_to", "type": "address" },
{ "name": "_value", "type": "uint256" }
],
"name": "transfer",
"payable": false
},
"contractInputsValues": {
"_to": "0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9",
"_value": "19959660116"
}
},
{
"to": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_to", "type": "address" },
{ "name": "_value", "type": "uint256" }
],
"name": "transfer",
"payable": false
},
"contractInputsValues": {
"_to": "0x6068eb7490748A1A49830B58524C002b545c1Ce2",
"_value": "6653220039"
}
},
{
"to": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_spender", "type": "address" },
{ "name": "_value", "type": "uint256" }
],
"name": "approve",
"payable": false
},
"contractInputsValues": {
"_spender": "0xBB2598b89202596A743BE0b615001D7D5164f167",
"_value": "6653220039"
}
},
{
"to": "0x8F42aDBbA1B16EaAE3BB5754915E0D06059aDd75",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "internalType": "address", "name": "target", "type": "address" },
{ "internalType": "bytes", "name": "data", "type": "bytes" }
],
"name": "performAction",
"payable": true
},
"contractInputsValues": {
"target": "0xBB2598b89202596A743BE0b615001D7D5164f167",
"data": "0xe8de0d4d000000000000000000000000ddafbb505ad214d7b80b1f830fccc89b60fb7a8300000000000000000000000014969b55a675d13a1700f71a37511bc22d90155a"
}
},
{
"to": "0xBB2598b89202596A743BE0b615001D7D5164f167",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_reward_token", "type": "address" },
{ "name": "_amount", "type": "uint256" }
],
"name": "deposit_reward_token",
"payable": false
},
"contractInputsValues": {
"_reward_token": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"_amount": "6653220039"
}
},
{
"to": "0xBB2598b89202596A743BE0b615001D7D5164f167",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{ "name": "_reward_token", "type": "address" },
{ "name": "_distributor", "type": "address" }
],
"name": "set_reward_distributor",
"payable": false
},
"contractInputsValues": {
"_reward_token": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"_distributor": "0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9"
}
}
]
}

0 comments on commit b314e03

Please sign in to comment.