normalise_token_symbol

Documentation for eth_defi.token.normalise_token_symbol function.

normalise_token_symbol(token_symbol)

Normalise token symbol for stablecoin detection.

  • Uppercase

  • Remove bridge suffixes

  • Fix USDT variations

Parameters

token_symbol (str | None) – Token symbol as it is written on the contract.

Returns

Normalised token symbol

Return type

str | None