303303safe = ApeSafe ('0xF14BBdf064E3F67f51cd9BD646aE3716aD938FDC' )
304304safe_tx = safe .multisend_from_receipts (txs )
305305safe .sign_with_frame (safe_tx )
306- r = safe .post_transaction (safe_tx )
306+ r = safe .post_transaction (safe_tx )
307+
308+
309+
310+ # --------------------------------
311+ # March 16, 2023 - Weekly allocation
312+ #
313+
314+ from addresses import *
315+ from world import *
316+ from allocations import *
317+ from ape_safe import ApeSafe
318+
319+ votes = """
320+ Convex OUSD+3Crv 32.08%
321+ Morpho Compound USDT 27.97%
322+ Existing Allocation 11.92%
323+ Morpho Aave USDT 9.59%
324+ Aave USDT 8.88%
325+ Morpho Compound DAI 3.58%
326+ Morpho Compound USDC 3.58%
327+ Morpho Aave DAI 1.19%
328+ Morpho Aave USDC 1.19%
329+ Aave DAI 0%
330+ Aave USDC 0%
331+ Compound DAI 0%
332+ Compound USDC 0%
333+ Compound USDT 0%
334+ Convex DAI+USDC+USDT 0%
335+ Convex LUSD+3Crv 0%
336+ """
337+
338+ with TemporaryForkWithVaultStats (votes ):
339+ before_votes = with_target_allocations (load_from_blockchain (), votes )
340+
341+ txs = []
342+ txs .extend (auto_take_snapshot ())
343+
344+ # From
345+ txs .append (vault_admin .withdrawAllFromStrategy (COMP_STRAT , {'from' :STRATEGIST }))
346+ # the minus 721_000 is because we can't deploy those funds to MORPHO_COMP_STRAT
347+ # because the USDC is paused in there
348+ txs .append (from_strat (MORPHO_AAVE_STRAT , [[4_660_800 , dai ], [5_576_000 , usdc ], [5_923_000 , usdt ]]))
349+
350+ # Swap
351+ txs .append (to_strat (CONVEX_STRAT , [[3_943_000 , dai ]]))
352+ txs .append (from_strat (CONVEX_STRAT , [[3_933_000 , usdt ]]))
353+
354+ # To
355+ txs .append (to_strat (OUSD_METASTRAT , [[5_910_000 , usdc ]]))
356+ txs .append (to_strat (AAVE_STRAT , [[2_233_000 , usdt ]]))
357+
358+ txs .append (to_strat (MORPHO_COMP_STRAT , [[721_000 , dai ], [7_600_000 , usdt ]]))
359+ #txs.append(to_strat(COMP_STRAT, [[323_000, usdc]]))
360+ #txs.append(to_strat(AAVE_STRAT, [[323_000, usdt]]))
361+ #txs.append(to_strat(CONVEX_STRAT, [[257_000, dai], [257_000, usdc], [257_000, usdt]]))
362+
363+ # # Defaults
364+ # txs.append(vault_admin.setAssetDefaultStrategy(dai, MORPHO_AAVE_STRAT,{'from':STRATEGIST}))
365+
366+ txs .extend (auto_check_snapshot ())
367+
368+ print ("Est Gas Max: {:,}" .format (1.10 * sum ([x .gas_used for x in txs ])))
369+
370+
371+ # safe = ApeSafe('0xF14BBdf064E3F67f51cd9BD646aE3716aD938FDC')
372+ # safe_tx = safe.multisend_from_receipts(txs)
373+ # safe.sign_with_frame(safe_tx)
374+ # r = safe.post_transaction(safe_tx)
0 commit comments