OorkaHook inherits solmate ERC20("Oorka Vault Share", "oLP", 18) and implements IHooks and IUnlockCallback.
AFTER_INITIALIZE | BEFORE_SWAP | BEFORE_DONATE; the constructor validates this.
Curator actions
Enter the competition. Pulls
bond tUSD (token1) plus probe dust from the caller. Reuses an exited slot if one exists. The first curator ever registered becomes the seat holder and the vault is placed at their range.Reverts: BadRange, BondTooSmall, TooManyCurators. Emits CuratorRegistered.Move your range. Charges
switchCostBps on paper NAV and re-snapshots fee growth. If id is the seat holder, the vault moves too and the deviation guard applies.Reverts: Inactive, NotCuratorOwner, BadRange, PriceDeviation. Emits RangeDeclared, and VaultMoved for the seat holder.Remove your probe and get your bond back. The seat holder cannot exit.Reverts:
Inactive, NotCuratorOwner, IsIncumbent. Emits CuratorExited.Create the passive benchmark. Once per hook, anyone, no bond. Caller pays probe dust.Reverts:
BenchmarkExists, BadRange. Emits BenchmarkRegistered.Settlement
Close the epoch: score every portfolio at the epoch TWAP, report vault vs benchmark, charge the performance fee, update streaks, take over if earned, sync the vault, roll baselines. See Epoch lifecycle.Reverts:
NoIncumbent, EpochNotOver. Emits BenchmarkScored, PerformanceFee, Scored, EpochSettled, Takeover, VaultMoved or VaultMoveDeferred.Collect vault fees, reinvest idle balances at the seat holder’s range, finish a deferred move. Permissionless.Reverts:
NoIncumbent, PriceDeviation.Vault
Add liquidity at the vault range; unused amounts stay with the caller. Shares priced at the block-open share price.Reverts:
NoIncumbent, ZeroAmount, PriceDeviation, Slippage. Emits Deposited.Burn shares for a pro-rata slice of the vault position and idle balances.Reverts:
ZeroAmount, PriceDeviation, Slippage. Emits Withdrawn.