âĄOne-click Trading (1CT)
Last updated
Last updated
One-click trading (1CT) allows users to tap into the seamless experience of a CEX, unlocking the full performance of trading.
Without 1CT, users must sign multiple transactions when modifying an order or position with linked triggers. With 1CT, the process is automated delivering the trading experience more akin to a CEX but with self-custody.
The release of 1CT emulates the familiar trading experience of CEXs, where users can log in and start trading until they finish their trading affairs. The near-instant trade execution of 1CT imbues confidence into those fleeting pauses of apprehension preceding every trade instead of idling while you wait for an approval transaction to confirm.
1CT does this through the use of two new mechanisms:
1CT wallet
AshPerp uses a derived externally owned account (EOA) wallet for submitting trading transactions. It relies on the following sequence:
Trader provides a 4 digit PIN.
Trader signs a prefixed message of the PIN using their wallet.
AshPerp generates a Secp256k1 key pair using the signed message as a seed.
AshPerp encrypts and stores the key material on the local device.
Once a trader creates a 1CT wallet, they must grant it permission to trade on their behalf by approving it as a delegate.
Trade delegation
AshPerp smart contracts support a delegation feature, allowing EOAs to submit transactions on behalf of other EOAs. To delegate trading to another EOA, a trader must approve the address as a delegate through the trading contract. A delegation wallet only needs gas funds for submitting transactions, as collateral and PnL are tied to the trader address.
Step 1: Connect your wallet
Currently on Devnet we are supporting the MultiversX DeFi Wallet Extension, for further guide, please kindly check here.
Step 2: Enable 1CT
Step 3: Setup 1CT with your 4 digit number PIN CODE
Step 4: Deposit your token to 1CT wallet and start your trading journey