velvet.deposit

Documentation for eth_defi.velvet.deposit Python module.

Velvet deposit handling.

  • Need to call proprietary centralised API to make a deposit

Functions

deposit_to_velvet(portfolio, from_address, ...)

Construct Velvet deposit payload.

Exceptions

VelvetDepositError

Error reply from velvet txn API

exception VelvetDepositError

Bases: Exception

Error 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.

Parameters
Return type

dict