Skip to content

Commit

Permalink
Merge pull request #496 from BalancerMaxis/BIP420-refund-incentives
Browse files Browse the repository at this point in the history
BIP-420: Refund Voting Incentives for Pools Shut Down Due to Bug Report
  • Loading branch information
Tritium-VLK authored Sep 8, 2023
2 parents 5147bf4 + 6b74198 commit 6a94c36
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 1 deletion.
115 changes: 115 additions & 0 deletions BIPs/2023-W36/BIP-420.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"version": "1.0",
"chainId": "1",
"createdAt": 1693966694034,
"meta": {
"name": "Transactions Batch",
"description": "",
"txBuilderVersion": "1.16.2",
"createdFromSafeAddress": "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f",
"createdFromOwnerAddress": "",
"checksum": "0x3517f71125c83728d931656021b9be6234f273ff3cb99205762cad9322af1a3a"
},
"transactions": [
{
"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"name": "transfer",
"payable": false
},
"contractInputsValues": {
"to": "0x68258012DA3B933a81617FD08c9382a60B87cA98",
"value": "8700000000"
}
},
{
"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"name": "transfer",
"payable": false
},
"contractInputsValues": {
"to": "0xc38c5f97B34E175FFd35407fc91a937300E33860",
"value": "2500000000"
}
},
{
"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"name": "transfer",
"payable": false
},
"contractInputsValues": {
"to": "0x7b065Fcb0760dF0CEA8CFd144e08554F3CeA73D1",
"value": "4600000000"
}
},
{
"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"name": "transfer",
"payable": false
},
"contractInputsValues": {
"to": "0x1bf019A44a708FBEBA7ADc79bdaD3D0769fF3a7b",
"value": "3800000000"
}
}
]
}
16 changes: 16 additions & 0 deletions BIPs/2023-W36/BIP-420.report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
File name: BIPs/2023-W36/BIP-420.json
COMMIT: `89181b31a0ab17b93c16311ae52cf2ae601489fc`
CHAIN(S): `mainnet`
```
+------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+
| function | token_symbol | recipient | amount | bip | tx_index |
+============+=================================================+=========================================================+==========================+=========+============+
| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0x68258012DA3B933a81617FD08c9382a60B87cA98 | 8700.0 (RAW: 8700000000) | BIP-420 | 0 |
+------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+
| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | multisigs/lm:0xc38c5f97B34E175FFd35407fc91a937300E33860 | 2500.0 (RAW: 2500000000) | BIP-420 | 1 |
+------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+
| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0x7b065Fcb0760dF0CEA8CFd144e08554F3CeA73D1 | 4600.0 (RAW: 4600000000) | BIP-420 | 2 |
+------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+
| transfer | USDC:0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | N/A:0x1bf019A44a708FBEBA7ADc79bdaD3D0769fF3a7b | 3800.0 (RAW: 3800000000) | BIP-420 | 3 |
+------------+-------------------------------------------------+---------------------------------------------------------+--------------------------+---------+------------+
```
2 changes: 1 addition & 1 deletion action-scripts/brownie/scripts/report_gauges.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _parse_transfer(transaction: dict, **kwargs) -> Optional[dict]:
)
amount = int(raw_amount) / 10 ** token.decimals() if raw_amount else "N/A"
symbol = token.symbol()
recipient_name = ADDR_BOOK.reversebook[recipient_address] or "N/A"
recipient_name = ADDR_BOOK.reversebook.get(recipient_address, "N/A")
return {
"function": "transfer",
"chain": chain_name.replace("-main", "") if chain_name else "mainnet",
Expand Down

0 comments on commit 6a94c36

Please sign in to comment.