1-Click trading
When connecting an external wallet to DMEX, the user must sign every action with the connected wallet (order creation, order cancellation, margin updates, withdrawals). This can become cumbersome when a trader performs multiple actions in a short time or uses DMEX from a mobile device.
To improve the user experience, we have introduced 1-Click trading. When enabled, the browser generates a fresh wallet and private key, then stores them locally in the user's browser. The generated wallet address (not the private key) is sent to the smart contract and registered as a delegate for the main wallet. This allows the frontend to sign and send requests using the delegate's private key to perform most actions—except withdrawals, which still require a signature from the main wallet. The delegate authorization remains valid for 24 hours, after which a new authorization must be issued.
Once 1-Click trading is enabled, the user can perform actions without signing each time in their wallet. To revoke the delegate wallet's authorization, go to the Wallets dropdown in the top-right corner and click "Disable 1-Click trading" below your wallet address.
Last updated