degenbot.erc20.ether_placeholder¶
Wrapped Ether placeholder for native ETH in pool reserves.
Module Contents¶
- class degenbot.erc20.ether_placeholder.EtherPlaceholder¶
Bases:
degenbot.erc20.Erc20TokenAn 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
Botwhen anEtherPlaceholderis built; the inherited delegating properties read it back through the RustErc20Tokenhandle.Direct construction is forbidden (inherited from
Erc20Token). UseErc20Token.from_handle()— which produces anEtherPlaceholderinstance when called on the subclass — after registering the metadata in aBot.- addresses¶