4. Rewards Distribution
DeFi Integration for wfragAsset
We’ve been testing various models for distribution of rewards to DeFi pools. This policy is still under discussion and may change without notice until finalized.
Be noted that holding pure fragAsset
ensures that the owner can claim rewards directly by executing a transaction.
This guide is for handling rewards accrued from wfragAsset
.
Process
By design, Fragmetric’s restaking protocol tracks fragAsset (Token-2022) balances fully and accurately on-chain to account for each user’s portion of rewards.
However, wfragAsset
is a legacy SPL token and does not support the same tracking capabilities.
Fragmetric uses the following approach for tracking wfragAsset
contributions:
1. Register Token Account
Register specific wfragAsset
token accounts to be tracked on-chain. A dedicated reward account is created per registered token account.
- wfragAsset Holder: An alias for token accounts owned by a DeFi protocol that hold user
wfragAsset
deposits.
2. Delegate Reward Account
Initially, the created reward accounts belong to the Fragmetric Fund Manager (governance). The authority to claim rewards will be transferred to the appropriate governance address of the DeFi protocol.
3. Track Token Accounts
Fund operations — which are executed regularly for each fund (fragSOL
, fragJTO
, fragBTC
) — will track registered token accounts and update their contribution share in the reward system.
4. Claim and Distribute Rewards
Once delegated, the DeFi protocol’s representative can claim settled rewards using a dedicated on-chain instruction or via SDK/CLI tools. Claimed rewards can then be redistributed to users according to the protocol’s internal emission policy.
In brief, this process emulates fragAsset
-based reward tracking with reduced accuracy and flexibility, tailored for protocols using wfragAsset
.
It is activated and maintained through consensus between Fragmetric governance and the participating DeFi protocol.
Claim Instruction
You can call the user_claim_reward
instruction of the restaking program
either on-chain or off-chain.
The Anchor IDL is embedded in the @fragmetric-labs/sdk package.
Alternatively, you can download the latest IDL from the restaking program account on Solana Explorer.
Claim via SDK
The following CLI session demonstrates reward resolution and claiming.
The CLI and TypeScript SDK interfaces are functionally equivalent. For building an unsigned transaction, you can omit keypairs. Also, for multisig transaction building, you can manually configure the nonce account via the SDK (this is not available via CLI).