From 8413700a2f72c1a8003d85ca604f625966e1a471 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 23 Feb 2022 00:47:54 +0000 Subject: [PATCH] docs: clarify spl token account creation handling for exchange integrations (#23288) (cherry picked from commit 09d064c09051ac2e5a287019ff9f40a916f90b9b) Co-authored-by: Trent Nelson --- docs/src/integrations/exchange.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/integrations/exchange.md b/docs/src/integrations/exchange.md index 7e1a741aed..382a9e4dc1 100644 --- a/docs/src/integrations/exchange.md +++ b/docs/src/integrations/exchange.md @@ -721,6 +721,10 @@ must then be used to determine the effective balance change. These fields will identify the token mint and account owner (main wallet address) of the affected account. +Note that if a receiving account is created during the transaction, it will have no +`preTokenBalance` entry as there is no data to decode the state from. In this +case, the initial balance can be assumed to be zero. + ### Withdrawing The withdrawal address a user provides must be the that of their SOL wallet.