degenbot.erc20.ether_placeholder ================================ .. py:module:: degenbot.erc20.ether_placeholder .. autoapi-nested-parse:: Wrapped Ether placeholder for native ETH in pool reserves. Module Contents --------------- .. py:class:: EtherPlaceholder Bases: :py:obj:`degenbot.erc20.Erc20Token` An Erc20Token-like adapter for the 'all Es' or zero address placeholder. Used by pools to represent native Ether. Under ADR-005, metadata (name="Ether Placeholder", symbol="ETH", decimals=18) is registered in the Rust ``Bot`` when an ``EtherPlaceholder`` is built; the inherited delegating properties read it back through the Rust ``Erc20Token`` handle. Direct construction is forbidden (inherited from :class:`Erc20Token`). Use :meth:`Erc20Token.from_handle` — which produces an ``EtherPlaceholder`` instance when called on the subclass — after registering the metadata in a ``Bot``. .. py:attribute:: addresses