Index of every page on this site: llms.txt
All skills
Run it yourself

Reference for Doppler fee collection, distribution, and configuration across Airlock, FeesManager, locker contracts, and hook-based fee paths.

Use this Skill: https://skilld.dev/gh/whetstoneresearch/doppler-skills/fee-architecture

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈40 tokens for metadata: the name and description. ≈708 when used: this file. ≈4.1k more on demand in 3 files.

Description uses 2.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈161 characters, or 2.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Source References: Use Doppler deployments as the contract source of truth for deployed addresses and revisions.

Fee Architecture

When to use

  • You need to explain where fees are tracked and how payouts are derived
  • You are debugging fee outcomes across migration and beneficiary paths
  • You are changing LP fee configuration or hook-driven fee behavior
  • You are validating multicurve fee decay configuration (startFee, fee, durationSeconds, startingTime)

Prerequisites

  • Identify sale path (static, dynamic, multicurve, or hook-initialized multicurve path)
  • Identify whether pool is locked (beneficiaries enabled) or migrable

Core workflow

  1. Identify fee surfaces in the flow:
    • Swap-time LP fees (pool/hook context)
    • Migration-time proceeds accounting in Airlock
    • Beneficiary fee tracking in FeesManager / locker modules
  2. Confirm storage location for each fee bucket:
    • Airlock fee accounting mappings
    • RehypeDopplerHookInitializer fee buckets
    • Locker/initializer collectFees paths for beneficiaries
  3. Validate claim paths for each actor (beneficiary, buyback destination, integrator, or protocol owner).
  4. Reconcile balances before and after claims on-chain.

Quick facts

Fee type Primary location Typical claim path
Protocol/integrator accounting src/Airlock.sol collectProtocolFees(...), collectIntegratorFees(...)
Beneficiary fees (initializer/locker) src/base/FeesManager.sol, locker modules collectFees(...)
RehypeDopplerHookInitializer beneficiary + protocol-owner buckets src/dopplerHooks/RehypeDopplerHookInitializer.sol collectFees(asset), claimAirlockOwnerFees(asset)

Failure modes

  • Wrong signer for beneficiary claim/update methods
  • Wrong signer for protocol/integrator claim methods
  • Using stale pool status assumptions (Initialized vs Locked/Graduated)
  • Confusing proceeds split logic with LP fee accounting
  • Confusing Rehype internal beneficiaryFees with initializer or locker beneficiary-share accounting
  • Treating V2-only mechanics as active defaults

References

  • COLLECTION.md
  • DISTRIBUTION.md
  • DYNAMIC-FEES.md
  • Source: doppler/src/Airlock.sol, doppler/src/base/FeesManager.sol, doppler/src/StreamableFeesLockerV2.sol, doppler/src/dopplerHooks/RehypeDopplerHookInitializer.sol, doppler/src/types/RehypeTypes.sol

Related skills

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill acts as an architecture reference guide documenting fee collection, distribution, and configuration across the Doppler smart contract ecosystem. All codebase links map properly to the vendor's own verified code storage on GitHub, and no active security risks, prompt injections, or malicious dependencies were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    4 files scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 4f654fe. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 8 months ago
metadata
{
  "author": "doppler",
  "version": "2.0"
}

README badge

README badge for whetstoneresearch/doppler-skills/fee-architecture