Skip to main content

strategy.utils.pool_token

json

Chain

Network

Protocol

Token Objects

class Token()

__init__

def __init__(contract, address: str, decimals: int, symbol: str, chain: str)

to_dict

def to_dict()

to_json

def to_json()

__repr__

def __repr__()

Pool Objects

class Pool()

__init__

def __init__(contract, address: str, token0: Token, token1: Token, fee: int,
chain: str, protocol: str)

get_reserves

def get_reserves(pool_address)

to_dict

def to_dict()

to_json

def to_json()

__repr__

def __repr__()

PoolTokenRegistry Objects

class PoolTokenRegistry()

__init__

def __init__(protocol: Protocol, chain: Chain, network: Network, web3,
pool_abi, token_abi)

get_pool

def get_pool(pool_address)

get_token

def get_token(token_address)

PoolTokenService Objects

class PoolTokenService()

__init__

def __init__()

get_registry

def get_registry(protocol: Protocol, chain: Chain, network: Network, web3,
pool_abi, token_abi) -> PoolTokenRegistry

pooltoken_service