Using an LP Token or Child Token as the Dividend Token
The Problem
The Solution: MAGIC_DIVIDEND_COMPUTED
MAGIC_DIVIDEND_COMPUTED// IPortal.sol
address constant MAGIC_DIVIDEND_COMPUTED =
address(0xC0Dec0dec0DeC0Dec0dEc0DEC0DEC0DEC0DEC0dE);Implementation Guide
Step 1 β Declare spec v2.3 in your factory
Step 2 β Implement resolveDividendToken
resolveDividendTokenParameter
Description
Example β LP pair dividend
Example β Child token dividend
Step 3 β Declare a policy so the UI pre-fills the sentinel
Step 4 β Enforce the sentinel in _validateBeforeLaunch
_validateBeforeLaunchStep 5 β Launch with MAGIC_DIVIDEND_COMPUTED
MAGIC_DIVIDEND_COMPUTEDWhat Happens On-Chain (Flow Summary)
Version Gating
Checklist
Last updated