is_stablecoin_like#

is_stablecoin_like(token_symbol, symbol_list=('DAI', 'USDC', 'USDT', 'DAI', 'BUSD', 'UST', 'USDN', 'cUSDC', 'cUSDT', 'sUSD', 'aDAI'))[source]#

Check if specific token symbol is likely a stablecoin.

Useful for quickly filtering stable/stable pairs in the pools. However, you should never rely on this check alone.

Note that new stablecoins might be introduced, so this check is never going to be future proof.

Parameters
  • token_symbol (str) – Token symbol as it is written on the contract. May contain lower and uppercase latter.

  • symbol_list – Which filtering list we use.

Return type

bool