generate_whitelist#

API documentation for tradeexecutor.cli.guard.generate_whitelist Python function.

generate_whitelist(web3, whitelisted_assets)[source]#

Look up token details we are about to whitelist.

Parameters:

whitelisted_assets (str) –

Space separated list.

Assets to whitelist, first must be the vault denomination token.

Returns:

Tuple (Token list, address of USDC token)

Return type:

list[eth_defi.token.TokenDetails]