Printr's Contracts
What are the Protocol's Contract Like?
Printr's Contracts serves as the main protocol contract, divided into specialized modules:
Printr Storage: Defines the storage layout and immutable variables
Printr Curve: Handles curve mathematics and token creation
Printr Trade: Manages buying and selling tokens on the curve
Printr Admin: Controls administrative functions like fee collection
Printr Interchange: Facilitates cross-chain integration with services like Axelar
The Treasury Contract
The Treasury Contract holds all funds within the protocol, including:
Funds for token curves
Protocol fees collected from trades
Liquidity deployment funds
This contract manages fund storage, fee collection, and liquidity locks, including NFT representations of locked liquidity.
The Liquidity Module
The Liquidity Module interfaces with decentralized exchanges such as Uniswap e.t.c, to handle liquidity operations. It enables pool creation, swap execution, and concentrated liquidity deployment.
The module deploys tokens in a "white range" from graduation price to infinity, while base tokens are deployed as concentrated liquidity below the graduation price to facilitate efficient exits.
Printr Curve
The Printr Curve module creates and manages token curves with virtual reserves to establish the desired initial price. It also supports remote deployment via Axelar for cross-chain functionality.
Printr Trade
The Printr Trade module executes buying and selling operations on the curve, calculating costs and managing fees. A small fee is charged on each trade and collected in the Treasury.
Token Factory
The Token Factory contract deploys tokens deterministically based on their parameters, ensuring each token has a unique address. It supports remote deployment on other chains without deploying curves.
The modular design and integrations help Printr provide the comprehensive solution for creating tokens and managing liquidity across multiple blockchain networks.
Last updated