PINT PROTOCOLS

An SDK for DeFi wallet developers to optimize trades, enforce safeguards, and verify outcomes.

PINT PROTOCOLS

Created At

ETHGlobal Mumbai

Project Description

Northtrail — Intelligent DeFi Execution & Verifiable Transaction Assurance

Northtrail is a non-custodial DeFi intelligence and transaction-assurance platform, built around an embeddable SDK that enables wallets and trading applications to integrate quantitative liquidity analysis, execution optimization, transaction safeguards, and cryptographically verifiable decision records.

The Problem

Decentralized exchanges have made token swaps increasingly accessible, but executing a transaction successfully does not necessarily mean executing it efficiently or making an informed financial decision.

Users face fragmented liquidity, varying protocol fees, slippage, price impact, gas costs, market volatility, and complex token approvals. Even after a transaction is confirmed, understanding why a particular execution route was selected—and whether its outcome matched the original expectations—remains challenging.

Northtrail addresses this gap by introducing an intelligence and accountability layer between financial decision-making and blockchain execution.

Our Solution

Northtrail brings together several complementary capabilities through a unified platform:

1. Uniswap Integration & Compass — Trade Intelligence

Northtrail integrates with Uniswap's liquidity infrastructure to observe supported swap quotes, evaluate trading costs, and analyze potential execution outcomes. Compass enables users to stress-test price movements and assess financial exposure, while exact integer arithmetic ensures precision in token-denominated calculations.

2. Curve Atlas — Quantitative Liquidity Optimization

Curve Atlas analyzes how liquidity depth, fee tiers, gas costs, and price impact influence trading efficiency across different order sizes. By comparing Uniswap pool scenarios against 1inch routing benchmarks, it helps users understand why the most economical liquidity source can change as transaction size increases.

3. Chronos — Risk-Aware Execution Strategy

Chronos explores three execution approaches: trading immediately, splitting an order into multiple transactions, or waiting. Its quantitative planning models evaluate execution-cost assumptions, repeated gas expenses, and downside risk using measures such as Conditional Value at Risk (CVaR). These scenarios demonstrate how execution decisions can be evaluated systematically rather than relying solely on quoted prices.

4. 1inch Integration & Aqua Maker Studio — Liquidity Strategy Intelligence

Beyond using 1inch Pathfinder as a cross-DEX routing benchmark, Northtrail explores 1inch Aqua's virtual liquidity architecture. Aqua Maker Studio models capital coverage, maker liquidity availability, and strategy lifecycle operations through an interactive simulation, highlighting the relationship between advertised liquidity and actual available capital.

5. Universe Risk Lens & ML Pool Intelligence

Northtrail incorporates quantitative research tools for understanding market exposure, including volatility, drawdowns, Value at Risk, and liquidity-stress scenarios. These analytical workspaces make complex financial concepts more accessible and support the development of data-driven execution strategies.

6. Wallet Assurance & World Agent Pass

Northtrail maintains a strict non-custodial design philosophy. Its authorization demonstrations examine token approvals, transaction permissions, and spending limits. World Agent Pass additionally explores human-in-the-loop governance for sensitive automated-agent actions, emphasizing that algorithmic recommendations must never independently grant financial authority.

7. Decision Trail & Trade Proof — Verifiable Accountability

This is Northtrail's central differentiation.

Decision Trail uses RFC 8785 canonical JSON and SHA-256 cryptographic hashing to generate tamper-evident, independently verifiable decision records. It preserves the reasoning and parameters behind a trading decision, including a deliberate decision not to execute.

Trade Proof complements this capability through blockchain transaction-receipt observation, exposing evidence such as transaction status and gas expenditure while distinguishing receipt confirmation from complete token-settlement verification.

Together, these components establish a foundation for connecting financial decisions with independently inspectable execution evidence.

Built for Developers, Not Just End Users

The deployed Northtrail interface is a demonstration of a broader infrastructure product.

Its core capabilities are organized into a modular TypeScript monorepo using Next.js, Fastify, Zod, PostgreSQL/PGlite, and an embeddable SDK.

Rather than requiring users to adopt another standalone trading application, Northtrail is designed to let existing DeFi wallets, treasury platforms, and trading interfaces incorporate its intelligence and assurance capabilities directly into their own products.

The current platform demonstrates read-only protocol observations, quantitative research scenarios, cryptographic decision verification, and transaction-receipt inspection. Advanced execution planning, Aqua strategy operations, and agent-governance workflows are clearly distinguished where they operate as simulations rather than live financial execution.

Our Vision

We're not building another decentralized exchange. We're building the intelligence and accountability infrastructure that existing DeFi applications can build upon.

By combining Uniswap liquidity analysis, 1inch routing and strategy research, quantitative financial modeling, non-custodial authorization principles, and verifiable decision evidence, Northtrail establishes a foundation for trading experiences that are more informed, transparent, and accountable.

Northtrail — Know the choice. Prove the outcome.

How it's Made

How It's Made — Northtrail

We built Northtrail as a modular, non-custodial DeFi intelligence and transaction-assurance infrastructure layer, designed to integrate directly into existing wallets and trading applications through a reusable TypeScript SDK.

Our biggest engineering challenge was combining real DeFi protocol data, quantitative financial analysis, and cryptographic decision verification without compromising precision, transparency, or user control.

1. Architecture & Technology Stack

Northtrail is built as a TypeScript monorepo managed with pnpm, separating financial computation, protocol integrations, persistent evidence, APIs, and user interfaces.

Our core technology stack includes:

  • Next.js for the responsive financial analytics and developer demonstration workspace.
  • Fastify and Node.js for the backend REST API, request validation, protocol communication, and rate limiting.
  • TypeScript and Zod for strict data contracts, runtime validation, and consistent API/SDK interfaces.
  • PostgreSQL and PGlite for persistent decision records, database migrations, and append-only evidence lineage.
  • RFC 8785 JSON Canonicalization Scheme and SHA-256 for deterministic, independently verifiable decision-record fingerprints.
  • Vitest and Playwright for automated testing, integration verification, and browser-level functionality.
  • Vercel and Railway for frontend and backend deployment.

The system follows a clear flow: protocol observations → financial analysis → decision evidence → API/SDK → user-facing applications.

2. Uniswap — Our Primary Protocol Integration

Uniswap forms the foundation of Northtrail's liquidity intelligence.

We implemented server-side Uniswap V3 quote observation to retrieve trading information for supported token pairs, including expected output and slippage constraints.

Rather than simply displaying a swap quote, we feed these observations into Compass, our financial scenario engine, to help users understand transaction economics and evaluate alternative decisions.

We also developed Curve Atlas, an interactive liquidity-frontier research workspace that illustrates how Uniswap fee tiers, pool depth, price impact, and order size influence trading efficiency.

This enables users to explore an important execution insight: the most attractive liquidity pool can change as trade size increases.

3. 1inch — Routing Intelligence & Aqua Strategy Research

We integrated 1inch Swap API v6.1 as an additional quote-observation source, providing a cross-DEX routing benchmark alongside Uniswap.

This allows Northtrail to examine the economic differences between individual liquidity-pool scenarios and aggregator-based routing alternatives.

We extended our 1inch work into Aqua Maker Studio, exploring Aqua's virtual-liquidity architecture and its capital-efficiency implications.

One particularly interesting implementation is our capital-coverage inspector, exposed through the SDK. It evaluates available capital against virtual liquidity allocations to highlight potential undercollateralization.

The workspace also demonstrates a simulated Ship → Fill → Dock strategy lifecycle, making Aqua's underlying concepts easier to inspect and understand.

4. Quantitative Finance & Execution Intelligence

We developed several interconnected research modules:

Compass evaluates financial scenarios and trade-cost comparisons using precise token-denominated calculations.

Curve Atlas illustrates trade-size-dependent liquidity economics.

Chronos compares executing immediately, splitting an order, or waiting, incorporating estimated transaction costs and Conditional Value at Risk (CVaR).

Universe Risk Lens explores volatility, drawdowns, exponentially weighted volatility, and Value at Risk across selected crypto assets.

ML Pool Intelligence provides interactive liquidity-stress and model-based scenarios.

These workspaces distinguish illustrative modeling from live execution and validated predictive performance. Their purpose is to make quantitative methods understandable and establish a foundation for more advanced execution research.

5. Cryptographic Decision Trail & Transaction Evidence

One of our most distinctive engineering decisions was treating the decision itself as a verifiable artifact.

We implemented canonical JSON serialization using RFC 8785, followed by SHA-256 hashing, to generate deterministic decision fingerprints.

This means independently implemented clients can verify record integrity without depending entirely on the Northtrail frontend.

Our append-only database design also preserves decision revisions instead of silently overwriting previous evidence.

An especially useful capability is the ability to record and verify a deliberate decision not to trade. Financial accountability shouldn't begin only when a transaction is broadcast.

Alongside this, Trade Proof supports blockchain transaction-receipt observation, exposing transaction status and gas information while explicitly distinguishing receipt confirmation from full token-settlement verification.

6. Non-Custodial Security & World Agent Pass

Northtrail's protocol observers never receive financial signing authority.

We maintain strict separation between market information, financial recommendations, and wallet authorization.

Our wallet-assurance workspace demonstrates approval risks, transaction restrictions, and spending boundaries.

We also explored World Agent Pass for human-in-the-loop governance, illustrating how sensitive automated-agent policy exceptions can require additional human verification without treating that verification as permission to spend funds.

7. Notable Engineering Decisions

Several implementation details make Northtrail particularly interesting:

  • Exact bigint token arithmetic: Avoids floating-point precision errors in financial calculations.
  • Deterministic cryptographic evidence: Makes decision records independently checkable and resistant to undetected modification.
  • Decoupled protocol adapters: Keeps Uniswap and 1inch market observations separate from spending authorization.
  • Pure financial computation: Allows mathematical logic to be tested without wallets, network requests, or a running frontend.
  • PGlite/PostgreSQL compatibility: Supports lightweight local development alongside persistent database deployments.
  • Independent SDK consumer: Demonstrates that Northtrail's core capabilities can be integrated outside our own web interface.
  • Explicit execution-state boundaries: Distinguishes live observations, illustrative research, simulations, and actual blockchain evidence.

The repository also documents 207 automated tests across 13 test suites, alongside type checking, linting, build verification, SDK smoke tests, and browser testing.

8. Deployment & The Bigger Picture

We deployed the Next.js frontend on Vercel and the Fastify backend on Railway, creating an accessible demonstration of the platform's research, financial computation, and verification capabilities.

However, the web application is only the demonstration interface.

Our core product is the embeddable Northtrail SDK, designed to let DeFi wallet developers integrate financial intelligence and decision-assurance functionality without rebuilding the underlying infrastructure.

We deliberately preserve the distinction between live quote observations, simulated trading strategies, cryptographic record verification, and actual on-chain settlement. This ensures the platform communicates what its evidence genuinely establishes.

Ultimately, we built Northtrail to connect three capabilities that are often fragmented across DeFi: quantitative intelligence, user-controlled financial authorization, and verifiable decision evidence.

Northtrail — Know the choice. Prove the outcome.

background image mobile

Join the mailing list

Get the latest news and updates