🧱Architecture and Implementation

EcoSmart Exchange doc

The main architecture of EcoSmart Exchange is the on-chain fund settlement and custody + off-chain transaction matching. Users connect their decentralized wallets to the exchange before signing and verifying the connection through a Web3 interface. They can then transfer tokens into the smart contract for fund custody and settlement. Once the off-chain ledger is recorded, users can use the funds to trade derivatives off-chain and the PnL will be accounted for in the ledger. After settlement, users can withdraw the funds by calling the smart contract (except for the margin occupied by open positions and pending orders).

Last updated