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.

investment_amount

Amount of deposit/withdrawal in the denominator token.

receiver

Address of the user who received the bought shares.

shares_issued

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.

property shares_issued: decimal.Decimal

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
Return type

None