build_activate_account_multicall

Documentation for eth_defi.hyperliquid.core_writer.build_activate_account_multicall function.

build_activate_account_multicall(lagoon_vault, activation_amount=None)

Build a multicall to activate a Safe’s HyperCore account.

Smart contracts (like Safe multisigs) must be activated on HyperCore before CoreDepositWallet.deposit() bridge actions will clear the EVM escrow. This multicall performs the activation in a single transaction via the Safe’s trading strategy module:

  1. approve(CoreDepositWallet, activation_amount)

  2. CoreDepositWallet.depositFor(safe, activation_amount, SPOT_DEX)

Note

New HyperCore accounts incur a 1 USDC account creation fee. The default activation_amount of 2 USDC exceeds the fee.

Parameters
  • lagoon_vault (LagoonVault) – Lagoon vault instance with trading_strategy_module_address configured.

  • activation_amount (int | None) – USDC amount in raw units (6 decimals) for activation. Defaults to DEFAULT_ACTIVATION_AMOUNT (2 USDC).

Returns

Bound module.functions.multicall(data) ready to .transact().

Return type

ContractFunction