rehypothecation-hook

Installation
SKILL.md

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)
Related skills
Installs
4
GitHub Stars
4
First Seen
Mar 3, 2026