velvet.deposit
Documentation for eth_defi.velvet.deposit Python module.
Velvet deposit handling.
Need to call proprietary centralised API to make a deposit
Functions
|
Construct Velvet deposit payload. |
Exceptions
Error reply from velvet txn API |
- exception VelvetDepositError
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.
- deposit_to_velvet(portfolio, from_address, deposit_token_address, amount, chain_id, slippage, api_url='https://intents.velvet.capital/api/v1', gas_safety_margin=500000)
Construct Velvet deposit payload.
See https://github.com/Velvet-Capital/3rd-party-integration/issues/2#issuecomment-2490845963 for details
- Parameters
portfolio (Union[eth_typing.evm.HexAddress, str]) –
from_address (Union[eth_typing.evm.HexAddress, str]) –
deposit_token_address (Union[eth_typing.evm.HexAddress, str]) –
amount (int) –
chain_id (int) –
slippage (float) –
gas_safety_margin (int) –
- Return type