estimate_4626_deposit
Documentation for eth_defi.erc_4626.estimate.estimate_4626_deposit function.
- estimate_4626_deposit(vault, denomination_token_amount, block_identifier='latest')
Estimate how much shares we get for a deposit.
The vault should deduct its fees from this amount.
The estimation is done using previewRedeem()
- Returns
Amount of USDC we get when existing the vault with the shares.
- Parameters
vault (eth_defi.erc_4626.vault.ERC4626Vault) –
denomination_token_amount (decimal.Decimal) –
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]) –
- Return type