degenbot.erc20.ether_placeholder

Wrapped Ether placeholder for native ETH in pool reserves.

Module Contents

class degenbot.erc20.ether_placeholder.EtherPlaceholder

Bases: 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 Erc20Token). Use Erc20Token.from_handle() — which produces an EtherPlaceholder instance when called on the subclass — after registering the metadata in a Bot.

addresses