claim_usdc_to_lagoon_safe_from_lighter
Documentation for eth_defi.lighter.lagoon.claim_usdc_to_lagoon_safe_from_lighter function.
- claim_usdc_to_lagoon_safe_from_lighter(web3, hot_wallet, *, vault, usdc, claimable_usdc, zk_lighter='0x3B4D794a66304F130a4Db8F2551B0070dfCf5ca7')
Claim an already-claimable secure Lighter USDC withdrawal to the Safe.
This helper deliberately does not request a withdrawal. The request is an L2 API-key operation; this is the Safe-gated L1 egress step and can only name
LagoonVault.safe_addressas its receiver. Lighter’s dynamic secure-withdrawal delay is informational only: claim only after the matching withdrawal history item isclaimable. A fast withdrawal is not an alternative for this flow because it needs the L1 account’s EOA private key, whereas the account owner is a Safe contract.- Parameters
web3 (web3.main.Web3) – Ethereum mainnet connection.
hot_wallet (eth_defi.hotwallet.HotWallet) – Asset-manager wallet authorised to call the Lagoon module.
vault (eth_defi.erc_4626.vault_protocol.lagoon.vault.LagoonVault) – Lagoon vault whose Safe receives the claimed USDC.
usdc (eth_defi.token.TokenDetails) – Native Ethereum USDC token details.
claimable_usdc (decimal.Decimal) – Amount from the matching Lighter
claimablewithdrawal-history row. Do not substitute the originally requested amount: Lighter may report a different final raw amount after its own precision/fee handling.zk_lighter (Union[eth_typing.evm.HexAddress, str]) – Whitelisted ZkLighter L1 contract address.
- Returns
Confirmed claim transaction hash.
- Return type