# README - Sifchain Overview ## Executive Summary Sifchain is a decentralized cryptocurrency exchange (DEX) that aims to support the exchage of all cryptocurrencies. It employs a hybrid order matching model that allows cost effective order execution through continuous liquidity pools (CLPs). Sifchain's economic system comprises two subsystems - the Validator Subsystem (V), and the Liquidity Provider Subsystem (LP). Agents in both systems are able to earn rewards by means of staking in the Validator Subsystem and by providing liquidity in the Liquidity Provider Subsystem. ## Problem In order to maintain system stability and ensure reasonable function of the V subsystem and the LP subsystem, the return on investment incurred by agents in either system must not significantly outweigh the other. In the case where rewards in the LP subsystem are more attractive, validator agents would choose to deploy their capital towards providing liquidity instead of towards staking. The result is a Validator Subsystem with low to none available validators, thus leaving the network highly unsecure. The cannibalization of subsystem function can be prevented by dynamically rebalacing the ROI across each subsystem such that in any given block, the agent's ROI in either subsystem is roughly equivalent. ## Solution ### Validator Subsystem The Validator Subsystem is described and characterized here: [Validator Subsystem Mathematical Specification](https://hackmd.io/@mbarlin/BySAJgALD) ### Liquidity Provider Subsystem The Liquidity Provider Subsystem is described and characterized here: [Liquidity Provider Subsystem Mathematical Specification](https://hackmd.io/@shrutiappiah/SyuL8Z9rv) [Asymmetric Liquidity Operations](https://hackmd.io/@shrutiappiah/ByKO1fADD) ### Rebalancing Policy ![](https://i.imgur.com/vQcGoXF.png) This policy ensures that the revenue earned by participants in the validator system and the liquidity system are balanced and equivalent. This is to prevent validators from jumping over to the liquidity system so as to earn higher rewards, setting off a positive feedback loop that brings in even more validators into the liquidity system, eventually driving the validator system empty and the Sifchain proof-of-stake system insecure. And vice versa on from the liquidity system to the validator system. [Sifchain Rebalancing Policy Design](https://hackmd.io/@shrutiappiah/r1itFRrPv) [Sifchain Rebalancing Module Implementation Guide](https://hackmd.io/@mbarlin/H1AucYziw) ### 12-week Subsidy Program This is a program designed to encourage early participation in the Sifchain ecosystem. Subsidies are awarded to early participants who engage in validation through staking, providing liquidity, and swapping. The subsidy policy is applied across all $n$ liquidity pools and on all validators. [Sifchain Subsidy Program](https://hackmd.io/@shrutiappiah/SJ6S5RHdw)