Index of every page on this site: llms.txt
All skills
whetstoneresearch avatar

/rehypothecation-hook

@4f654fe
Run it yourself

Operate and configure Doppler's Rehype initializer hook for buybacks, beneficiary fees, fee routing, and protocol-owner fee claims.

Use this Skill: https://skilld.dev/gh/whetstoneresearch/doppler-skills/rehypothecation-hook

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈38 tokens for metadata: the name and description. ≈682 when used: this file. ≈918 more on demand in 1 file.

Description uses 1.9% 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 ≈154 characters, or 1.9%.

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.

Rehypothecation Hook (Rehype)

When to use

  • Tasks mention Rehype, the rehypothecation hook, buybacks, beneficiary fee distribution, or claimAirlockOwnerFees
  • You are troubleshooting hook-driven swap behavior for pools managed through DopplerHookInitializer

Prerequisites

  • Pool asset address
  • Access to DopplerHookInitializer.getState(asset)
  • Correct signer (airlock.owner() for protocol-owner fee claims)

Core workflow

  1. Resolve pool context and derive poolId.
    • Use DopplerHookInitializer.getState(asset)
  2. Read hook state:
    • getFeeDistributionInfo(poolId)
    • getHookFees(poolId)
    • getPoolInfo(poolId)
    • getFeeRoutingMode(poolId)
    • getFeeSchedule(poolId)
  3. Apply operation:
    • Collect beneficiary-directed fees with collectFees(asset)
    • Claim protocol-owner fees with claimAirlockOwnerFees(asset) from airlock.owner()
  4. Validate storage resets and token balance deltas after each action.

Quick facts

Item Detail
Supported hook RehypeDopplerHookInitializer
Fee model Decaying fee schedule via getFeeSchedule(poolId)
Distribution authority Configured at initialization
Fee routing modes DirectBuyback, RouteToBeneficiaryFees
Airlock owner share Fixed 5% of the raw hook fee
Protocol-owner fee bucket Claimable via claimAirlockOwnerFees(asset)

Failure modes

  • Treating initializer-side Rehype as a static customFee hook instead of a fee-schedule hook
  • Distribution does not sum to WAD (1e18, or 100%)
  • Non-owner caller for protocol-owner fee claim
  • Assuming fee distribution can be updated after initialization
  • Confusing Rehype beneficiaryFees with initializer beneficiary-share accounting
  • Assuming hook fees equal transferable balances without checking internal buckets

References

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.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides safe documentation and checklists for interacting with the Doppler rehypothecation hook. All referenced URLs originate from the vendor's own verified GitHub repository.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

  • Runlayer8mo

    2 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/rehypothecation-hook