approve_and_deposit_4626
Documentation for eth_defi.erc_4626.flow.approve_and_deposit_4626 function.
- approve_and_deposit_4626(vault, from_, amount, check_max_deposit=True, check_enough_token=True, receiver=None)
two ERC-20 calls needed to deposit.
For documentation see
deposit_4626().- Parameters
vault (eth_defi.erc_4626.vault.ERC4626Vault) –
from_ (eth_typing.evm.HexAddress) –
amount (decimal.Decimal) –
- Return type
tuple[web3.contract.contract.ContractFunction, web3.contract.contract.ContractFunction]