Skip to content

Depositing & Withdrawing tokens

Jona edited this page Jun 18, 2020 · 1 revision

Depositing tokens

Purchasing sale listings or placing bids deducts the needed tokens from a user's balance. To add tokens to that balance, they first need to be deposited.

Any supported token (The list of supported tokens is stored in the config singleton) can be deposited by transferring it to the AtomicMarket account with the memo deposit. Transfers of non-supported tokens will throw.

The deposited token is then automatically added to the sender's balance. The AtomicMarket contract pays for the RAM required to do this.

Withdrawing tokens

To get tokens back out of the AtomicMarket, use the withdraw action.