velvet.redeem
Documentation for eth_defi.velvet.redeem Python module.
Velvet deposit handling.
Need to call proprietary centralised API to make a deposit
Functions
|
Construct Velvet redemption payload. |
Exceptions
Error reply from velvet txn API |
- exception VelvetRedemptionError
Bases:
ExceptionError reply from velvet txn 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.
- redeem_from_velvet_velvet(portfolio, from_address, withdraw_token_address, amount, chain_id, slippage, api_url='https://intents.velvet.capital/api/v1')
Construct Velvet redemption payload.
- Parameters
portfolio (Union[eth_typing.evm.HexAddress, str]) –
from_address (Union[eth_typing.evm.HexAddress, str]) –
withdraw_token_address (Union[eth_typing.evm.HexAddress, str]) –
amount (int) –
chain_id (int) –
slippage (float) –
- Return type