Bluefin Pro is an optimistic cross margin based trading platform that executes users’ trades off-chain and provides them optimistic results with a guarantee that their trades will get settled on-chain eventually. To make it possible we have a controlled on-chain architecture that can only be mutated once the off-chain margining engine (ME) has committed to users that their trade, a deposit or a withdraw etc. has been approved/executed. To ensure that we do not have custody of user assets, the users deposit funds to a shared object bank called an External Data Store (EDS) and at the same time to ensure that our off-chain state is always being correctly synced with our on-chain protocol, we have an Internal Data Store (IDS) which receives all incoming deposits, withdraw trades from our off-chain margining engine and executes the same maths as the off-chain protocol. The users can compare results from an off-chain trade with their on-chain trade and be sure that the off-chain system is executing trades and maintaining their account states as expected.

The diagram below provides a bird’s eye view of the protocol:

bluefin-pro.drawio (2).png

The following docs cover different aspects of our on-chain protocol in detail.

Pro - Genesis

Pro - Stores

Pro - Signatures

Pro - Operators

Pro - Error Codes

Pro - Accounts

Pro - Sequence Hash

Pro - Risk Engine Summary