Badger-Finance / badger-multisig

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

feat: scripts for assoc and treasury council funding #1492

Closed petrovska-petro closed 7 months ago

petrovska-petro commented 7 months ago

tackles #1489 and #1491

run:

1st step

brownie run scripts/issue/1489/assoc_and_treasury_council_funding sell_stable_for_usdc

2nd step once cow swaps are settled

brownie run scripts/issue/1489/assoc_and_treasury_council_funding assoc_and_council_funding
petrovska-petro commented 7 months ago

may need addy update from the assoc.msig, once @sajanrajdev has final deets

sajanrajdev commented 7 months ago

@petrovska-petro, I took the liberty of merging main and changing payments multisig to the new one.

sajanrajdev commented 7 months ago

Just wanted to note that the operation will not result in a balance state for stables. This is acceptable as discussed during the Treasury call as the stables balancing and yearly runway coverage are goals to be achieved by the end of each quarter, as per policy. Here is some napkin math on the expect final state:

With the LUSD sold for USDC, we obtain an additional 682526.398697 USDC.

So, after the trades we will have: 95,651.0265+1154948.396852+682526.398697 = 1,933125.82205 USDC

After the transfers, the USDC amount will be reduced to: 1933125.82205 - (2927.77*5 + 300000 + 1154918) = 463568.97205 USDC

Therefore, the final state will be:

Swapping ~half of USDT for DAI would do the trick, as previously suggested but it might make sense to wait until a decision around extending the stable runway is made.

Review

sajanrajdev commented 7 months ago

@petrovska-petro, I took the liberty of pushing a simulation, assertions and snaphots that I added while reviewing locally. You will find that core logic was left intact, these just add extra sanity and qa.

LGTM