Contract Structure
Revisiting Our Initial Inspiration - Freedom To Trade
Last updated
Revisiting Our Initial Inspiration - Freedom To Trade
Last updated
Contract Architecture
The contract architecture is based on the dssProxyRegeist architecture used in MakerDAO, with the addition of the fund (Perpetual) module.
The overall architecture roughly involves creating a new user-owned proxy contract for each user through a fixed proxyRegistry that calls the proxyFactory contract. These proxy contracts are used to delegate call specific function methods for different proxy actions, where proxy actions are assemblies of different methods of specific contracts to achieve a single function that can perform multiple functionalities. This approach offers extremely high scalability.
This contract architecture allows for easy extension of the project by implementing different modules. In the future, you can add or remove modules to expand the entire project.
If you need to generate CUSD (Collateralized Stablecoin) backed by collateral, you would need to use the Perpetual Collateral module to record collateral and then call it to initiate opening positions.