MidasProduct
Documentation for eth_defi.midas.constants.MidasProduct Python class.
- class MidasProduct
Bases:
objectMidas on-chain product metadata.
Attributes summary
EVM chain id.
ERC-20 mToken address.
mToken symbol.
Human-readable product name.
Midas
IDataFeedcontract exposinggetDataInBase18().Chainlink-compatible public oracle contract for the same NAV feed.
Midas issuance vault contract.
Midas redemption vault contract.
First block where the mToken bytecode exists.
Timestamp of
first_seen_at_blockas naive UTC datetime.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
IDataFeedcontract exposinggetDataInBase18().
- 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_blockas 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
chain_id (int) –
token (eth_typing.evm.HexAddress) –
symbol (str) –
product_name (str) –
data_feed (eth_typing.evm.HexAddress) –
oracle (Optional[eth_typing.evm.HexAddress]) –
issuance_vault (Optional[eth_typing.evm.HexAddress]) –
redemption_vault (Optional[eth_typing.evm.HexAddress]) –
first_seen_at_block (int) –
first_seen_at (datetime.datetime) –
denomination (str) –
- Return type
None