erc_4626.analysis
Documentation for eth_defi.erc_4626.analysis Python module.
ERC-4626 deposit slippage analysis.
Functions
|
Analyse a ERC-4626 deposit/redeem transaction. |
- analyse_4626_flow_transaction(vault, tx_hash, tx_receipt, direction, hot_wallet=True)
Analyse a ERC-4626 deposit/redeem transaction.
Figure out
The success of the deposit
Slippage, etc.
Warning
Do not use TradeSuccess.price directly, as this price depends on in which order token0 and token1 are in the pool smart contract. Use TradeSuccess.get_human_price() instead.
- Parameters
tx_receipt (dict) – Transaction receipt
hot_wallet –
Is this a hot wallet originiated transaction or contract to contract transaction.
We can perform additioanl checks with hot wallet transactions.
vault (eth_defi.erc_4626.vault.ERC4626Vault) –
direction (Literal['deposit', 'redeem']) –
- Return type