Skip to main content
Thirteen contract types across three layers. Each has a reference page (responsibility, flows, functions). Source of truth: zentryHQ/redpotion-contracts.

Auth patterns

Contracts that own role state (Fund, FundManager, FundManagerDeployer, Strategy, StandaloneStrategy) use local ACL (ACLModule). The five fund spokes hold no role state — modifiers call the Fund ACL. Manage fund + spoke roles on the Fund. Details: Access control and roles.

Conventions

  • Prices — 1e18 asset-per-share: shares = amount × 1e18 / price
  • Native ETH — 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
  • onlyFund — callable only through the Fund (spoke pattern)
  • Roles checked on the Fund — function on a spoke, authorization against Fund ACL