An on-chain account has its vault saved on-chain, and all balance instructions arrive as L1 transactions. A special property of an on-chain account is that it does not require a private (stark) key – enabling smart contracts to be the "owner" of such an account. Thus, L1 players/applications can trade through StarkEx and be matched against any pending orders (both on-chain and off-chain account orders).
The on-chain trading mode enables interoperability between StarkEx applications and L1 applications and can be used for DeFi Pooling or by liquidity aggregators.
We will explore the deposit, trade, and withdrawal flows for on-chain accounts.