DODO V2 is composed of multiple contracts to achieve a series of core functions including building public and private pools, anchoring pools, crowdfunding pools, liquidity management, intelligent transaction routing and platform governance. The following diagram provides an overview of the overall contract framework：
DODO V2 abstracts a unique user authorization contract (DODOApprove) from the contract structure. For different kinds of tokens, users only need to authorize once, and then they can smoothly execute all the platform-wide operations such as trading and liquidity management of the authorized tokens.
DODOApprove, as the business interaction portal of the platform, helps users to manage the security of token authorization. Also DODOApprove has been added with a time lock mechanism by us. When we upgrade or add a new proxy contract, the time lock mechanism will ensure that the operation is cooled down for 3 days, leaving enough time to publicize the contract adjustment to the community to enhance the trust of DODOApprove.
DODOProxies represents the collection of all proxy contracts in the DODO platform. According to different product modules, we have developed corresponding proxy contracts, and implemented pool creation, initialization, registration and other operations through proxy contract encapsulation. The current proxy contracts include the following.
DODOV2Proxy: Integrates the platform's intelligent transaction routing, creation of public and private pools, and liquidity management
DODOCpProxy: includes the creation of fixed price crowdfunding pools and ascending price crowdfunding pools
DODODspProxy: includes the creation of anchor pools and liquidity management for anchor pools DODOMineV3Proxy: allows users to create their own liquidity mining pools, supporting the configuration of multiple reward token mining
DODORouteProxy: DODO self-built routing trading proxy contract
The functions of the factory contract include creating different types of pools with one click, while the pool address will be registered in the factory contract, acting as a registry for the platform and being the only source of retrieval for pools created by the DODO platform.
DVMFactory: creation and registration of DODO public pools
DSPFactory: Creation and registration of DODO anchor pools
DPPFactory: Creation and registration of DODO private pools
CrowdPoolingFactory: DODO creation and registration of fixed-price crowdfunding pools UpCpFactory: DODO creation and registration of up-priced crowdfunding pools
ERC20V2Factory: One-click token factory contract creation
The current contract registered in DODOApprove includes another vDODO in addition to the proxy contract. vDODO is the platform's membership governance token, users deposit DODO to mint vDODO in order to enjoy the platform's subsequent membership benefits, as well as to obtain DODO's block payout rewards.
It is also the voting right for the subsequent governance of the platform.
In addition, a series of developer-related documents will be available here.