Trading

1. On zkSync, get some USDC for trading and ETH for gas.

You can acquire this using the official zkSync bridge to bridge ETH or USDC from Ethereum Mainnet to zkSync.

  1. Navigate to our web application and connect your wallet

  2. Open a position

You can choose to either take a long position (-profit if a token goes up)-, or take a short position (,-profit if a token goes down), for any assets listed on Vest. You can trade with up to 10x leverage on most assets for a small fee dependent on how much risk you contribute to the Vest Exchange.

1-click and gasless trading

1-click trading allows trading without interacting with Metamask. Vest enables 1-click trading by deriving an external wallet to sign transactions as follows:

  1. User signs a high-entropy message derived from their wallet address and some randomness

  2. Signed message is used as seed for a key derivation function, specifically HKDF

  3. Derived key expanded to 64 bytes is used as the seed for secp256k1 private key generation

  4. Generated private key is AES encrypted with unique salt and stored in the browser

Upon the first time creation of this external wallet, users will be asked to link the wallet to their account, effectively delegating trades to the external wallet.

Note that Vest does not store the generated private key in servers and cannot know the private key since it is re-derived cryptographically based on the user signature.

Gasless trading is made possible with ZkSync's Paymasters.

Last updated