DeFi Integration for wfragAsset
user_deposit_sol
user_deposit_supported_token
fragSOL
, fragJTO
, fragBTC
).
fragAsset
fund, you must include accounts of:
fund.supported_tokens[0:fund.num_supported_tokens].pricing_source.address
fund.restaking_vaults[0:fund.num_restaking_vaults].pricing_source.address
fund.normalized_token.pricing_source.address
— only if fund.normalized_token.enabled == 1
fragBTC
, which consists of pegged assets).
You can manually deduplicate these accounts when building your transaction.fragAsset
, following the rules above.
Also there are two safe, forward-compatible options to resolve these accounts:
@fragmetric-labs/sdk
will resolve all required pricing source accounts for you based on the latest fund state.