Skip to main content

Introduction

Pooler - UniswapV2 Data Market

Pooler is a Uniswap-specific implementation within the Powerloom ecosystem, designed as a snapshotter. It functions by synchronizing with other snapshotter peers over a smart contract on the Powerloom Protocol testnet. This architecture, guided by state transitions, is both easily comprehensible and modifiable.

tip

Pooler in a Nutshell:

Forex, the foreign exchange market, involves currency trading and is known for its high liquidity and 24/7 operation. Pooler, in a parallel sense, operates continuously, capturing snapshots of Uniswap trades. Like Forex traders who analyze currency fluctuations to make profits, Pooler users can analyze trade volumes, liquidity reserves, and other metrics to understand market trends and potential profits in the Uniswap market.

In essence, Pooler is to Uniswap what Forex platforms are to currency trading – a tool for real-time tracking and analysis, facilitating better understanding and potentially profitable decision-making in the dynamic world of cryptocurrency trading.

How it works

Let's explore the details of the Pooler implementation. The image provided illustrates the operational flow of the UniswapV2 Dashboard hosted at uniswapv2.powerloom.io.

Uniswap Dashboard Rendering

Workflow:

  1. The user accesses the Uniswap v2 dashboard through uniswapv2.powerloom.io.
  2. The dashboard makes calls to a foundation hosted node to get the latest aggregated data.
  3. These calls are handled by the Snapshotter Core API interface, running on the foundation hosted node.
  4. The foundation nodes then fetch the relevant data from blockchain/Redis cache to optimize the response times.
  5. Once the data is retrieved, the frontend is rendered with the data.

Data Points and Aggregated Metrics in Pooler

Data points are key metrics sourced from Uniswap V2 pair contracts, detailing how snapshots are built and stored. Pooler generates base trade snapshots as well as higher order aggregates per Epoch, providing an overview of market trends, such as trade frequencies and average prices. These insights aid users in understanding market movements and asset performance, crucial for informed trading decisions within Uniswap V2.


Development and Extension

Snapshotter Node's design enables extensions and custom use case implementations. A developer can extend the pooler compute files found in snapshotter-computes and config files found in snapshotter-configs to build their own custom use case implementations.

We have a dedicated section in the documentation which walkthrough the details on further implementation and usecases extensions. Check out our guide on Extending Pooler