execute_calls_for_generic_adapter
Documentation for eth_defi.enzyme.generic_adapter.execute_calls_for_generic_adapter function.
- execute_calls_for_generic_adapter(comptroller, external_calls, generic_adapter, integration_manager, incoming_assets, min_incoming_asset_amounts, spend_assets, spend_asset_amounts)[source]
Create a vault buy/sell transaction using a generic adapter.
- Returns
A contract function object with bound arguments
- Parameters
comptroller (web3.contract.contract.Contract) –
external_calls (Collection[Tuple[web3.contract.contract.Contract, bytes]]) –
generic_adapter (web3.contract.contract.Contract) –
integration_manager (web3.contract.contract.Contract) –
incoming_assets (Collection[Union[web3.contract.contract.Contract, eth_typing.evm.HexAddress]]) –
min_incoming_asset_amounts (Collection[int]) –
spend_assets (Collection[Union[web3.contract.contract.Contract, eth_typing.evm.HexAddress]]) –
spend_asset_amounts (Collection[int]) –
- Return type
web3.contract.contract.ContractFunction