Skip to main content
Register a deposit that you executed yourself with the Zyfai backend. depositFunds already calls this after the ERC-20 transfer. If you do not use depositFunds(), you send the transfer from your frontend, Privy, Biconomy, or any custom wallet, you must call logDeposit. Otherwise the backend never sees the deposit: a reserved pool wallet is not handed over to the user, and yield / portfolio tracking does not start.
Skip this only if you used depositFunds. That method logs the deposit internally. Any other transfer path must call logDeposit after the transaction confirms.
Typical cases:
  • Sponsored / gasless transactions (Privy, Biconomy, etc.)
  • Custom wallet or frontend transfer
  • You need full control over how the transaction is sent
The token is automatically selected based on the chain if not provided.

Signature

Parameters

Returns

Log deposit response with success status

Return Type

Example

Example with custom token