rehype

Source References: Code citations link to raw GitHub files pinned to commit 46bad16d .

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rehype" with this command: npx skills add rustydotwtf/doppler-skills/rustydotwtf-doppler-skills-rehype

Source References: Code citations link to raw GitHub files pinned to commit 46bad16d .

Rehype Doppler Hook

When to use

  • Tasks mention Rehype, buybacks, fee distribution, or claimAirlockOwnerFees

  • You are working in src/dopplerHooks/RehypeDopplerHook.sol

  • You are troubleshooting hook-driven swap behavior for pools managed through DopplerHookInitializer

Prerequisites

  • Pool asset address

  • Access to DopplerHookInitializer.getState(asset)

  • Correct signer (buybackDst for fee distribution updates, airlock.owner() for owner-fee claims)

Core workflow

  • Resolve pool context from initializer state and derive poolId .

  • Read hook state:

  • getFeeDistributionInfo(poolId)

  • getHookFees(poolId)

  • getPoolInfo(poolId)

  • Apply operation:

  • Update distribution with setFeeDistribution(...) from buybackDst

  • Collect beneficiary-directed fees with collectFees(asset)

  • Claim 5% owner fees with claimAirlockOwnerFees(asset) from airlock.owner()

  • Validate storage resets and token balance deltas after each action.

Quick facts

Item Detail

Initializer integration Uses DopplerHookInitializer.getState(asset)

Distribution authority buybackDst only

Airlock owner fees Separate 5% bucket, claimable via claimAirlockOwnerFees

Primary tests test/integration/RehypeDopplerHook.t.sol

Failure modes

  • Distribution does not sum to WAD

  • Non-authorized caller for distribution update

  • Non-owner caller for owner-fee claim

  • Assuming hook fees equal transferable balances without checking internal buckets

References

  • CONFIGURATION.md

  • TESTING.md

  • DEPLOYMENT.md

  • Source: doppler/src/dopplerHooks/RehypeDopplerHook.sol , doppler/docs/specs/REHYPE_AIRLOCK_OWNER_FEE_SPEC.md

Related skills

  • doppler-hook-initializer

  • fee-architecture

  • verification

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

uniswap-fundamentals

No summary provided by upstream source.

Repository SourceNeeds Review
General

token-lifecycle

No summary provided by upstream source.

Repository SourceNeeds Review
General

fee-architecture

No summary provided by upstream source.

Repository SourceNeeds Review
General

verification

No summary provided by upstream source.

Repository SourceNeeds Review