Enabling tokens allows DDEX users to trade ERC20 tokens directly from their wallets.
There is no withdrawing or depositing on DDEX: all tokens stay in your wallet until a transaction completes, and WETH is transferred instantly to the seller's wallet upon completion. To allow this type of interface to occur, users must "enable" a token to use on DDEX from their digital wallet.
Why "Enable" a token?
Simply put: "enabling" a token allows users to use it on DDEX.
On a technical level, it gives our smart contracts an allowance permission to facilitate trades specified by the user. Enabling a token effectively "unlocks" it for trading.
Enabling a token is a one-time transaction after which the user can freely sell this token type from their digital wallet on DDEX forever.
You can enable and unable a token anytime at BALANCE page.
Note that even with this permission DDEX still cannot do anything with tokens in a user's wallet without an additional approval signature!
More technical details below
Approval and Allowance
To sell a token, first the user must enable the token for sale - setting an allowance for DDEX to facilitate trades of that token on their behalf. This transaction is a one-time transaction: rather than requiring a user to sign two transactions every time they wish to trade, after signing it once the user is enabled to sell that token on DDEX forever. This transaction requires accessing the Ethereum Blockchain, so you will need to specify a gas price for it through your digital wallet interface (i.e. a MetaMask popup).
The second transaction contains the actual specifications of the sale (the limit price and amount of tokens). When you place a limit sale on DDEX, you will see an additional signature popup through your digital wallet interface - however this one does not have a gas fee! No gas fees are paid on sell orders until a transaction actually occurs. This is actually a pretty nice feature: users can cancel and resubmit sell orders that are not filled as many times as desired without paying a gas price.
Follow us on: Facebook, Twitter, Reddit
Join our official chat group on: Telegram