deposit_4626#

API documentation for tradeexecutor.cli.repl_utils.deposit_4626 Python function.

deposit_4626(console_context, address, amount_usd)[source]#

Make a command line trade to deposit into an ERC-4626 vault.

Example:

from tradeexecutor.cli.repl_utils import deposit_4626
deposit_4626(
    locals(),
    # Plutus hedge token
    "0x58bfc95a864e18e8f3041d2fcd3418f48393fe6a",
    100.00,
)

# USDn2
# 0x4a3f7dd63077cde8d7eff3c958eb69a3dd7d31a9
deposit_4626(
    locals(),
    "0x4a3f7dd63077cde8d7eff3c958eb69a3dd7d31a9",
    100.00,
)

# Umami
from tradeexecutor.cli.repl_utils import deposit_4626
deposit_4626(
    locals(),
    "0x959f3807f0aa7921e18c78b00b2819ba91e52fef",
    100.00,
)

# Gains
from tradeexecutor.cli.repl_utils import deposit_4626
deposit_4626(
    locals(),
    "0xd3443ee1e91af28e5fb858fbd0d72a63ba8046e0",
    100.00,
)

# thBill
#
from tradeexecutor.cli.repl_utils import deposit_4626
deposit_4626(
    locals(),
    "0x64ca76e2525fc6ab2179300c15e343d73e42f958",
    100.00,
)
Parameters:
  • console_context (dict) –

  • address (Union[HexAddress, str]) –

  • amount_usd (float) –