class
polysynth.Polysynth(
address: Optional[Union[Address, ChecksumAddress, str]]
,
private_key: Optional[str]
,
gas_estimate_custom: Optional [Callable] = None, provider: Optional[str] = None
,
web3: Optional[web3.main.Web3] = None
,
version: int = 1
,
default_slippage: float = 0.01
, stable_token_contract_addr
: Optional[str] = None
, manager_contract_addr
: Optional[str] = None
, amm_reader_contract_addr
: Optional[str] = None
)
address
β The public address of the wallet to be usedprivate_key
β The private key of the wallet to be usedgas_estimate_custom
β Can be optionally set to a custom gas strategy functionprovider
β Can be optionally set to a Web3 provider URL. If none set, will fall back to the PROVIDER environment variable, or web3 if setweb3
β Can be optionally set to a custom Web3 instanceversion
β Which version of the Polysynth contracts to usedefault_slippage
β Default slippage for a trade, as a float (0.01 is 1%)stable_token_contract_addr
β Can be optionally set to override the address of the stable token contractmanager_contract_addr
β Can be optionally set to override the address of the manager contractamm_reader_contract_addr
β Can be optionally set to override the address of the amm contract