deposit

Documentation for eth_defi.orderly.vault.deposit function.

deposit(vault, *, amount, token, depositor_address, orderly_account_id, broker_id, token_id=None)

Deposit tokens into the Orderly vault.

See also: https://orderly.network/docs/build-on-omnichain/user-flows/withdrawal-deposit

Parameters
  • vault (eth_defi.orderly.vault.OrderlyVault) – The vault to deposit into.

  • amount (int) – The amount of tokens to deposit.

  • token (web3.contract.contract.Contract) – The token to deposit.

  • depositor_address (eth_typing.evm.HexAddress) – The address that will be used to deposit.

  • orderly_account_id (eth_typing.evm.HexAddress) – The orderly account ID to deposit to.

  • broker_id (str) – The broker ID to deposit to.

  • token_id (str | None) – The token ID to deposit to.

Return type

tuple[web3.contract.contract.ContractFunction, web3.contract.contract.ContractFunction, web3.contract.contract.ContractFunction]