[Execution] HIP 29: Deposit funds of the DAO to the UBI Burning Vaults

Hi! I’ve made a manually cross-check of the bytecode data and it’s ok. Details below.


Tx1
The PoH Governor has 46.484525046413216988 WETH. You can check it on https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2?a=0x327a29fce0a6490e4236240be176daa282eccfdf. The PoH Governor has to approve the use of that funds directly with WETH Contract.

I take as reference one of the last transactions of approve in WETH https://etherscan.io/tx/0x469830011b1c2141aba46ce144f9df6d4de0e929e260a786a91026dcbb07c8c4

Function: approve(address guy, uint256 wad)
MethodID: 0x095ea7b3
[0]:  00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45
[1]:  000000000000000000000000000000000000000000000000b1d1fb87818f4a20

Result: 0x095ea7b300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000000000000000000000000000b1d1fb87818f4a20

In this case is the same method but the guy is ubiWETH vault (0x2147935d9739da4e691b8ae2e1437492a394ebf5) and wad (the amount) is 46484525046413216988.

Result: 
0x095ea7b30000000000000000000000002147935d9739da4e691b8ae2e1437492a394ebf5000000000000000000000000000000000000000000000002851a353e80354cdc 

(the same in the HIP)

Tx2
After that approval, we need to deposit the funds.

I take as reference one of the last transactions of deposit in the ubiWETH vault (https://etherscan.io/tx/0x516b1c102aae53b3553a6a9c947fe238d45cdf1ffc63fb47eb7eae8753ea45d8)

Function: deposit(uint256 vowID) ***
MethodID: 0xb6b55f25
[0]:  000000000000000000000000000000000000000000000000048efed1d3d20000

Result: 0xb6b55f25000000000000000000000000000000000000000000000000048efed1d3d20000

In this case, the deposit amount is the 46.484525046413216988 WETH . So, result:

0xb6b55f25000000000000000000000000000000000000000000000002851a353e80354cdc 

(the same in the hip)

1 Like