deploy_guard

Documentation for eth_defi.enzyme.generic_adapter_vault.deploy_guard function.

deploy_guard(web3, deployer, asset_manager, owner, denomination_asset, whitelisted_assets=None, etherscan_api_key=None, uniswap_v2=True, uniswap_v3=True, one_delta=False, aave=False, mock_guard=False)[source]

Deploy a new GuardV0 smart contract.

  • To be associated with Enzyme vault or SimpleVault

  • Can be deployment standalone and the vault upgraded to use a newer version of the guard

See deploy_vault_with_generic_adapter() for more details.

Parameters
Return type

web3.contract.contract.Contract