đSmart Contracts
StoryHunt Smart Contracts split into two main layers: Core and Periphery.
Core Contracts
The Core contracts handle the main logic and operations of the platform:
Factory: Creates pools for token pairs with specific fee tiers.
Pools: Manage token swaps, provide price and liquidity data, and enable efficient asset transactions.
The core contracts are optimized to reduce gas costs while ensuring secure and reliable interactions.
Periphery Contracts
The Periphery contracts make it easier to use the core system by offering additional tools and interfaces:
Swap Router: Handles token swaps, including single-token swaps and multi-token trades across different pools.
Position Manager: Simplifies the process of creating, updating, or removing positions in pools.
Oracle: Provides up-to-date price and liquidity information from the pools.
Libraries
The platform includes helper libraries to support developers with tasks like:
Calculating pool addresses
Managing token transfers
Accessing pool data