bind_vault

Documentation for eth_defi.enzyme.generic_adapter_vault.bind_vault function.

bind_vault(generic_adapter, vault, production, meta, deployer, gas=500000)[source]

Make GenericAdapter to work with a single vault only.

Parameters
  • gas (int) – estimateGas will crash when calling bindVault() because the tx to deploy the contract has not hit all RPCs yet.

  • generic_adapter (web3.contract.contract.Contract) –

  • vault (web3.contract.contract.Contract) –

  • production (bool) –

  • meta (str) –

  • deployer (eth_defi.hotwallet.HotWallet) –