velora.api
Documentation for eth_defi.velora.api Python module.
Velora API utilities.
Functions
|
Get Augustus Swapper contract address for a chain. |
|
Get TokenTransferProxy contract address for a chain. |
Get Velora API base URL. |
Exceptions
Error returned by Velora API. |
- exception VeloraAPIError
Bases:
ExceptionError returned by Velora API.
- __init__(*args, **kwargs)
- __new__(**kwargs)
- add_note()
Exception.add_note(note) – add a note to the exception
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- get_augustus_swapper(chain_id)
Get Augustus Swapper contract address for a chain.
- get_token_transfer_proxy(chain_id)
Get TokenTransferProxy contract address for a chain.
This is the contract that users must approve for token spending.
Warning
Approve TokenTransferProxy, NOT Augustus Swapper. Funds may be lost if approved to Augustus directly.