setup_guard

Documentation for eth_defi.erc_4626.vault_protocol.lagoon.deployment.setup_guard function.

setup_guard(*, web3, safe, deployer, owner, asset_manager, vault, module, broadcast_func, any_asset=False, uniswap_v2=None, uniswap_v3=None, orderly_vault=None, aave_v3=None, erc_4626_vaults=None, cowswap=False, hack_sleep=20.0, assets=None, multicall_chunk_size=40)

Setups up TradingStrategyModuleV0 guard on the Lagoon vault.

  • Creates the guard smart contract (TradingStrategyModuleV0) and enables it on the Safe multisig as a module.

  • Runs through various whitelisting rules as transactions against this contract

Parameters