Deposit
Documentation for eth_defi.enzyme.events.Deposit Python class.
- class Deposit[source]
Enzyme deposit event wrapper.
Wraps SharesBought event
See ComptrollerLib.sol
The solidity event:
event SharesBought( address indexed buyer, uint256 investmentAmount, uint256 sharesIssued, uint256 sharesReceived );
Attributes summary
arguments
Access the non-indexed Solidity event arguments.
denomination_token
Get the denominator token for withdrawal/deposit.
Amount of deposit/withdrawal in the denominator token.
Address of the user who received the bought shares.
Amount of deposit/withdrawal in the denominator token.
shares_token
Get the shares token for withdrawal/deposit.
timestamp
Return the block mined at timestamp.
web3
Our web3 connection.
Methods summary
__init__
(vault, event_data)wrap
(vault, event_data)Parse Solidity events to the wrapped format.
- property investment_amount: decimal.Decimal
Amount of deposit/withdrawal in the denominator token.
Amount of deposit/withdrawal in the denominator token.
- property receiver: eth_typing.evm.HexAddress
Address of the user who received the bought shares.
- __init__(vault, event_data)
- Parameters
vault (eth_defi.enzyme.vault.Vault) –
event_data (dict) –
- Return type
None