gmx_fork_token_metadata

Documentation for eth_defi.testing.gmx_lagoon.gmx_fork_token_metadata function.

gmx_fork_token_metadata()

Reuse one actual token-list response per chain during a fork test.

Token symbols and decimals do not change when local orders execute. Fetch from the real endpoint once in this context and return independent copies to callers. Exceptions are not cached; leaving the context restores normal provider behaviour. Provider-specific tests use the unchanged live path.

Returns

Context retaining metadata only until this fork test finishes.

Return type

collections.abc.Iterator[None]