Skip to content

One-Click Trading (1CT) 1️⃣

Berps 1CT

If you want a slightly more advanced trading experience and want to optimize for those constant MetaMask configurations, there is One-Click Trading.

One-click trading (1CT) removes the need to interact with a wallet when submitting transactions, reducing time to trade.

It does this through the use of two mechanisms:

1CT Wallet

Berps uses a derived externally owned account (EOA) wallet for submitting trading transactions and relies on the following sequence:

  1. Trader signs a prefixed message using their wallet
  • The wallet used to sign the message should be remembered for future recovery
  1. Berps website generates an Secp256k1 key pair using the signed message as a seed

  2. Berps website encrypts and stores the key material on the local device

Key material is deterministic meaning it can be replicated. message + personalSign gives strong security guarantees while allowing a trader to recover material if lost. A trader can also use this to prevent storing on device between trading sessions (clear and regenerate for each session).

Once a trader creates a 1CT wallet, they must grant it permissions to trade on their behalf by approving it as a delegate.

Trade Delegation

Berps 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.

Supported Delegate Actions

The 1CT wallet is a delegation wallet.

  1. Open A Trade
  2. Open An Order
  3. Cancel An Order
  4. Update Stop Loss
  5. Update Take Profit
  6. Close A Trade

How To Enable 1CT Wallet?

Berps offers an onboarding experience for all of the above:

1. Setup 1CT

Berachain Berps 1 Click Trading Setup

2. Signature Request

Berachain Berps 1 Click Trading Setup Signature

3. Approve 1CT wallet

Berachain Berps 1 Click Trading Setup Approve Wallet

4. Fund 1CT Wallet

Berachain Berps 1 Click Trading Setup Fund Wallet

5. Enable 1CT Feature

Berachain Berps 1 Click Trading Enable 1CT Toggle

Berachain Berps 1 Click Trading Enable 1CT Modal

Manage 1CT Wallet

After a trader has completed the onboarding process, they can control this feature from the account from the main 1CT Toggle:

1. Enable / Disable The Feature

Berachain Berps 1 Click Trading Disable / Enable 1CT Toggle

2. Fund 1CT Wallet

Berachain Berps 1 Click Trading Setup Fund Wallet

3. Withdraw All Funds From 1CT Wallet

Berachain Berps 1 Click Trading Withdraw From 1CT

4. Export Private Key

Berachain Berps 1 Click Trading Export Private Key

1CT Successfull Setup

After successfully setting up 1CT, a trader can activate the feature and continue with their regular trading routines. The only difference at this stage is the elimination of the need to confirm transactions through a wallet.

Berachain Berps 1 Click Trading 1CT Enabled

Transactions

Since the 1CT wallet is controlled by the website, transaction management is handled internally. This allows for a centralized platform to monitor transactions and offers the capability to intervene, either by accelerating or canceling them, if they become stalled.

FAQ

Is The 1CT Wallet Key Material Stored Somewhere?

Only on your device. You can wipe it by deleting all cache, cookies, and/or localStorage.

Are Trades Opened Against My 1CT Wallet?

No, they are opened against your connected wallet.

Do I Need 1CT Enabled To Interact With Trades I Opened With It?

No, you may toggle the feature on and off whenever you'd like.

Can I Have Multiple 1CT Wallets?

For each account you use to trade, you may have one delegate. The recommended setup is to use the same 1CT wallet for all trading accounts.

What If My Transaction Is Stuck?

In the accounts dropdown, you'll find a transactions list. Here you may speed up and/or cancel a stuck transaction.