From 42b40b7d34ea95a2447abd0d556ea6a4efb7f7dc Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Fri, 18 Sep 2020 12:14:30 -0600 Subject: [PATCH] Withdraw is a verb --- docs/src/integrations/exchange.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/integrations/exchange.md b/docs/src/integrations/exchange.md index 5dfa70b4c6..56505092a3 100644 --- a/docs/src/integrations/exchange.md +++ b/docs/src/integrations/exchange.md @@ -589,14 +589,14 @@ Transfer 1 tokens Signature: 3R6tsog17QM8KfzbcbdP4aoMfwgo6hBggJDVy7dZPVmH2xbCWjEj31JKD53NzMrf25ChFjY7Uv2dfCDq4mGFFyAj ``` -### Deposits +### Depositing Since each `(user, mint)` pair requires a separate account on chain, it is recommended that an exchange create batches of token accounts in advance and assign them to users on request. These accounts should all be owned by exchange-controlled keypairs. -Monitoring for deposits should follow the [block polling](#poll-for-blocks) method -described above. Each new block should be scanned for successful transactions +Monitoring for deposit transactions should follow the [block polling](#poll-for-blocks) +method described above. Each new block should be scanned for successful transactions issuing SPL Token [Transfer](https://github.com/solana-labs/solana-program-library/blob/096d3d4da51a8f63db5160b126ebc56b26346fc8/token/program/src/instruction.rs#L92) or [Transfer2](https://github.com/solana-labs/solana-program-library/blob/096d3d4da51a8f63db5160b126ebc56b26346fc8/token/program/src/instruction.rs#L252) instructions referencing user accounts, then querying the @@ -607,7 +607,7 @@ updates. made to exend the `preBalance` and `postBalance` transaction status metadata fields to include SPL Token balance transfers. -### Withdraws +### Withdrawing The withdraw address a user provides must point to an initialized SPL Token account of the correct mint. Before executing a withdraw [transfer](#token-transfers), it is recommended that the exchange check the address as