MidasProduct

Documentation for eth_defi.midas.constants.MidasProduct Python class.

class MidasProduct

Bases: object

Midas on-chain product metadata.

Attributes summary

chain_id

EVM chain id.

token

ERC-20 mToken address.

symbol

mToken symbol.

product_name

Human-readable product name.

data_feed

Midas IDataFeed contract exposing getDataInBase18().

oracle

Chainlink-compatible public oracle contract for the same NAV feed.

issuance_vault

Midas issuance vault contract.

redemption_vault

Midas redemption vault contract.

first_seen_at_block

First block where the mToken bytecode exists.

first_seen_at

Timestamp of first_seen_at_block as naive UTC datetime.

denomination

Human-readable NAV denomination.

Methods summary

__init__(chain_id, token, symbol, ...[, ...])

chain_id: int

EVM chain id.

token: eth_typing.evm.HexAddress

ERC-20 mToken address. This is the share token and primary vault id.

symbol: str

mToken symbol.

product_name: str

Human-readable product name.

data_feed: eth_typing.evm.HexAddress

Midas IDataFeed contract exposing getDataInBase18().

oracle: Optional[eth_typing.evm.HexAddress]

Chainlink-compatible public oracle contract for the same NAV feed.

issuance_vault: Optional[eth_typing.evm.HexAddress]

Midas issuance vault contract.

redemption_vault: Optional[eth_typing.evm.HexAddress]

Midas redemption vault contract.

first_seen_at_block: int

First block where the mToken bytecode exists.

first_seen_at: datetime.datetime

Timestamp of first_seen_at_block as naive UTC datetime.

denomination: str

Human-readable NAV denomination. The initial integration supports USD products.

__init__(chain_id, token, symbol, product_name, data_feed, oracle, issuance_vault, redemption_vault, first_seen_at_block, first_seen_at, denomination='USD')
Parameters
Return type

None