FAssets Integration Guide

Last Updated: December 6, 2025 FAssets Version: v1.2 (Mainnet - September 2025)

Canonical Guide: This is the single authoritative FAssets integration guide for the Shield Finance protocol. For implementation code, see server/services/BridgeService.ts.

Overview

FAssets is Flare Network's trustless, over-collateralized bridge connecting non-smart contract chains (XRP, BTC, DOGE) to Flare's DeFi ecosystem. FXRP (wrapped XRP) was the first FAsset to launch on mainnet.

Key Features:

  • 1:1 XRP backing with overcollateralization

  • Trustless bridging powered by Flare Data Connector (FDC)

  • ERC-20 compatible on Flare Network

  • Full redemption capability at any time

  • Audited by Zellic, Coinspect, Code4rena


Contract Addresses

Flare Mainnet (Chain ID: 14)

Contract
Address
Notes

FXRP Token

0xAf7278D382323A865734f93B687b300005B8b60E

✅ Verified on Flarescan

Flare Contract Registry

0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019

Query for AssetManager address

AssetManager

Retrieved via Registry

Use getContractAddressByName("AssetManager")

Alternative FXRP Address: 0xAd552A648C74D49E10027AB8a618A3ad4901c5bE (verify on Flarescan)

Block Explorer: https://flarescan.com RPC Endpoint: https://flare-api.flare.network/ext/C/rpc

Coston2 Testnet (Chain ID: 114)

Contract
Address
Notes

FXRP Token

0xa3Bd00D652D0f28D2417339322A51d4Fbe2B22D3

✅ Confirmed

Flare Contract Registry

0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019

Same address across networks

AssetManager

Retrieved via Registry

Dynamic retrieval required

Block Explorer: https://coston2-explorer.flare.network RPC Endpoint: https://coston2-api.flare.network/ext/C/rpc

Retrieving AssetManager Address

FAssets uses a dynamic contract registry system. Never hardcode AssetManager addresses.


Minting Resources

Official Minting dApps

  • AU Platform: https://fassets.au.cc/mint

  • Oracle Daemon: https://fasset.oracle-daemon.com/flare

Supported Wallets

Wallet
Flare Support
XRPL Support
Notes

Bifrost

Best for full minting flow

Ledger

Hardware wallet

Luminite

Integrated FAssets support

MetaMask

Flare-side only

Xaman

XRPL-side only


FAssets Minting Flow

Step-by-Step Process

1. Reserve Collateral

2. Send XRP Payment

Send XRP to the agent's XRPL address with the payment reference as a memo:

3. Obtain Payment Proof (FDC)

Wait for XRPL transaction finality (~7 blocks), then obtain attestation proof from Flare Data Connector.

Finality Requirements:

  • XRPL: 7 blocks (~30-40 seconds)

  • Bitcoin: 6 blocks (~60 minutes)

  • Dogecoin: 60 blocks (~60 minutes)

4. Execute Minting


FAssets Redemption Flow

Redeem FXRP for XRP

Redemption Timeline:

  • FXRP burned immediately upon request

  • Agent must send XRP within 24 hours

  • If agent fails, collateral is released to you as compensation


Key Events

CollateralReserved Event

MintingExecuted Event

RedemptionRequested Event


Fees & Economics

Minting Fees

Fee Type
Charged In
Amount
Purpose

Collateral Reservation Fee (CRF)

FLR

Governance-set %

Compensates agent for locked collateral time

Minting Fee

XRP

Agent-set %

Main revenue for agent & collateral pool

Executor Fee

FLR

Optional

Incentivizes bot execution

Typical Fees:

  • Collateral Reservation Fee: ~0.1-0.5% of minted value (in FLR)

  • Minting Fee: 0.25-1% (agent-specific, paid in XRP)

Redemption Fees

  • Redemption Fee: 0.1-0.5% (agent-specific, paid from XRP sent back)


Collateralization

Collateral Types

Agents must maintain collateral in two forms:

  1. Vault Collateral (140% minimum):

    • USDC, USDT, ETH, or other approved stablecoins

  2. Pool Collateral (Community-provided):

    • Native tokens (FLR on Flare, SGB on Songbird)

Example: To mint 100 FXRP (~$50 value):

  • Agent needs ~$70 in USDC + pool collateral

  • Total backing: 200%+ including pool

Collateral Ratios

  • Minimum CR: 140% (vault) + pool collateral

  • Safe CR: 160%+

  • Liquidation: Triggered if CR drops below minimum

  • Full Liquidation: If agent violates protocol rules


Gas Requirements

Flare Network Gas Costs

Mainnet Estimates:

  • Reserve Collateral: ~200,000 gas (~0.02 FLR)

  • Execute Minting: ~300,000 gas (~0.03 FLR)

  • Redeem: ~250,000 gas (~0.025 FLR)

Gas Price: Typically 25 gwei on Flare mainnet

XRPL Transaction Costs

  • Base transaction fee: 0.00001 XRP (10 drops)

  • Negligible compared to Flare gas costs


Bridging Timeframes

Minting (XRP → FXRP)

  1. Reserve Collateral: Instant (Flare block time: ~2 seconds)

  2. Send XRP Payment: 3-5 seconds (XRPL)

  3. Wait for Finality: ~30-40 seconds (7 XRPL blocks)

  4. FDC Attestation: ~1-2 minutes (proof generation + verification)

  5. Execute Minting: ~2-5 seconds (Flare block)

Total Time: ~2-5 minutes

Redemption (FXRP → XRP)

  1. Redeem Request: Instant (FXRP burned)

  2. Agent Sends XRP: Up to 24 hours (typically <1 hour)

  3. XRP Received: 3-5 seconds after agent sends

Total Time: Minutes to 24 hours (depends on agent responsiveness)


Core Vault System

What is Core Vault?

The Core Vault (CV) is a multisig XRPL account managed by Flare governance that holds XRP backing without requiring agent collateral.

Benefits:

  • Agents can deposit XRP to CV and free up collateral

  • Increased capital efficiency for agents

  • Improved redemption liquidity

  • Multisig security on XRPL side

Core Vault Address (XRPL): Governed multisig (check official docs for current address)


Integration Best Practices

1. Always Use Contract Registry

2. Handle Payment Reference Carefully

The 32-byte payment reference MUST be included in XRPL memo exactly as provided by CollateralReserved event.

3. Wait for XRPL Finality

Do not request FDC proof until XRPL transaction has 7+ confirmations.

4. Monitor Events

Listen for minting/redemption events to track status:


Error Handling

Common Failure Scenarios

Error
Cause
Solution

InsufficientCollateral

Agent doesn't have enough free collateral

Choose different agent or wait

PaymentTimeout

XRP payment not made within deadline

Request will expire; retry minting

InvalidPaymentReference

Wrong memo in XRPL tx

Double-check payment reference from event

ProofTooEarly

Requested FDC proof before finality

Wait for 7+ XRPL confirmations

Handling Failed Minting

If you fail to send XRP within the deadline:

  • Collateral reservation expires

  • Collateral Reservation Fee is lost

  • No FXRP minted

  • You can start over with new reservation


Official Resources

  • Developer Hub: https://dev.flare.network/fassets/overview

  • Minting Guide: https://dev.flare.network/fassets/developer-guides/fassets-mint

  • Redemption Guide: https://dev.flare.network/fassets/developer-guides/fassets-redeem

  • GitHub Repository: https://github.com/flare-foundation/fassets

  • Audits: https://code4rena.com/audits/2025-08-flare-fasset


Security Considerations

Audits

  • Zellic: Comprehensive smart contract audit (2024)

  • Coinspect: Security review and audit (2024)

  • Code4rena: Community audit competition (2025)

  • Hypernative: 24/7 monitoring

Risk Factors

  1. Agent Counterparty Risk: Mitigated by overcollateralization

  2. XRPL Bridge Risk: Mitigated by FDC cryptographic proofs

  3. Price Oracle Risk: FTSO provides decentralized price feeds

  4. Smart Contract Risk: Audited, but bugs always possible

Bug Bounty

Active bug bounty program via Immunefi for responsible disclosure.


Next Steps

  1. ✅ Review contract addresses and verify on block explorer

  2. ✅ Test minting flow on Coston2 testnet first

  3. ✅ Integrate AssetManager ABI from official repository

  4. ✅ Implement FDC proof retrieval (or use minting dApp APIs)

  5. ✅ Add event listeners for mint/redeem tracking

  6. ✅ Handle edge cases (timeouts, insufficient collateral)

For Your Project:

  • Integrate FXRP deposits into your shXRP vault

  • Accept FXRP as collateral for XRP-backed positions

  • Use FAssets bridge to enable XRP holders to access Flare DeFi

Last updated