Badger-Finance / badger-multisig

Badger DAO's EVM multisig operations.
GNU Affero General Public License v3.0
47 stars 32 forks source link

feat: cvx and cvxcrv divest #1541

Closed sajanrajdev closed 2 months ago

sajanrajdev commented 2 months ago

Tackles https://github.com/Badger-Finance/badger-multisig/issues/1536

Run trops prereq:

brownie run scripts/issue/1536/divest_voter_cvx.py transfer_fees_to_voter

Run main script:

brownie run scripts/issue/1536/divest_voter_cvx.py
sajanrajdev commented 2 months ago

@petrovska-petro good catch. Added the script for approving contract access and ran both within the same fork and no more reverts where found. In addition, I added a transfer of all other relevant fee assets to the voter from trops as per your recommendation. Here is the Trop snapshot:

snapshot result for 0x042B32Ac6b453485e357938bdC38e0340d4b9276:
                       balance_before         balance_after            balance_delta
symbol
CVX            317.253171502442701791  0.000000000000000000  -317.253171502442701791
cvxCRV         426.417428561462736675  0.000000000000000000  -426.417428561462736675
bveCVX          39.783485955818800628  0.000000000000000000   -39.783485955818800628
bcvxCRV          0.003175215823265107  0.000000000000000000    -0.003175215823265107
bbveCVX-CVX-f    3.294842883733444845  0.000000000000000000    -3.294842883733444845
bveCVX-CVX-f     1.487414004674213631  0.000000000000000000    -1.487414004674213631

Should do some nice clean-up.