Docs

earn.deposit

Prepare, review, sign, submit, and canonically complete an Earn deposit.

Package@torq-finance/sdk
Signatureearn.deposit({ wrapperAddress, assetAddress, assets, receiver?, includeApproval? })

Behavior

Prepares role.investor.partnerWrapperDeposit, defaults the receiver to the connected wallet, optionally includes the ERC-20 approval, requires exact payload review, executes through the customer signer, and waits for final_success.

Security boundary

The required review callback runs before simulation or signing. Declining it stops the workflow. Canonical intent drift, wrong network, stale state, or failed preflight fails closed.

See the API Reference for the governed endpoint contract and the workflow guide for canonical completion semantics.