To integrate FRAG-22 with external DeFi protocols, users must first wrap their FRAG-22 receipt tokens into wrapped tokens (wFRAG assets). The wrapping process transfers original FRAG assets into the Fund’s reserve account, minting corresponding SPL-compliant wrapped tokens to represent those original assets within external DeFi protocols.These wrapped tokens held by external DeFi vaults accumulate their own contributions within FRAG-22’s reward tracking system. Since the FRAG-22 module cannot directly monitor individual user actions inside external DeFi protocols, the wrapped tokens’ accumulated rewards are distributed to the corresponding DeFi vaults. These external DeFi vaults then internally distribute the rewards to their own participants.
Because the FRAG-22 system cannot track individual users within external protocols, rewards accumulated by Wrapped Token Holders (representing DeFi vaults) are claimed directly by those DeFi protocols:Detailed Claiming Procedure:
Initiate Claim:DeFi protocol (owner of the Wrapped Token Holder account) initiates the reward claim via FRAG-22.
FRAG-22 Actions:
Updates the Wrapped Token Holder’s contribution state to reflect the latest status.
Calculates proportional rewards accumulated across available settlement blocks (max 64).
Transfers the calculated reward amount from the Reward Token Reserve Account to the external DeFi vault’s reward distribution account.
Outcome:DeFi protocol receives rewards directly and can now internally distribute these rewards among its participants based on their proportional holdings within the DeFi vault.
Internal Reward Distribution by External DeFi Protocols
After receiving rewards, external DeFi vaults distribute the rewards internally to their users through their native reward mechanisms. This step is independent of FRAG-22 and entirely handled by the DeFi protocols themselves.
Fairness: Users participating in external DeFi protocols through wrapped FRAG assets still earn rewards proportional to their underlying FRAG asset holdings.
Scalability: Allows easy integration with multiple DeFi protocols without adding complexity to individual user tracking.
Transparency: All reward flows remain clear, auditable, and on-chain, up to the point of distribution to external DeFi protocols.