Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ keywords: [fassets, flare-network]
sidebar_position: 10
---

import YoutubeEmbed from "@site/src/components/youtube";

## Overview

In the FAssets system, once a **redeemer submits a redemption request**, the assigned **agent must send the underlying asset** (e.g., XRP) to the redeemer within a specific time defined in the [operational parameters](/fassets/operational-parameters).
Expand Down Expand Up @@ -105,6 +107,10 @@ It does the following:
- Releases the agent's locked collateral.
- Emits the [`RedemptionDefaulted`](/fassets/reference/IAssetManagerEvents#redemptiondefault) event.

## Video Tutorial

<YoutubeEmbed videoId="a737yFcglnM?si=bHoFxhrlWhMCxEQr&start=275"></YoutubeEmbed>

## Summary

In this guide, you learned how to monitor redemption requests and handle agent payment failures in the FAssets system:
Expand Down
5 changes: 5 additions & 0 deletions docs/fassets/developer-guides/5-fassets-mint.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import FAssetsCreateXrpPayment from "!!raw-loader!/examples/developer-hub-javasc
import FAssetsExecuteMinting from "!!raw-loader!/examples/developer-hub-javascript/fassetsExecuteMinting.ts";
import MintingFees from "./_minting_fees.mdx";
import PaymentTimeframes from "./_payment_timeframes.mdx";
import YoutubeEmbed from "@site/src/components/youtube";

## Overview

Expand Down Expand Up @@ -127,6 +128,10 @@ This script demonstrates how to retrieve the FDC proof and execute minting.
10. Call the [`executeMinting`](/fassets/reference/IAssetManager#executeminting) function on the AssetManager contract and send a transaction to the Flare network to convert the attested XRP payment into FXRP (minting).
11. On a successful transaction call the `parseExecutemintingEvents` function to extract and log events [`RedemptionTicketCreated`](/fassets/reference/IAssetManagerEvents#redemptionticketcreated) and [`MintingExecuted`](/fassets/reference/IAssetManagerEvents#mintingexecuted).

## Video Tutorial

<YoutubeEmbed videoId="a737yFcglnM?si=5L0owLyQREvO09d8"></YoutubeEmbed>

## Summary

Now that you have successfully minted FAssets, you can use them in Flare dApps or transfer them to other users or smart contracts within the Flare ecosystem.
Expand Down
5 changes: 5 additions & 0 deletions docs/fassets/developer-guides/6-fassets-mint-executor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import FAssetsCreateXrpPayment from "!!raw-loader!/examples/developer-hub-javasc
import FAssetsExecuteMinting from "!!raw-loader!/examples/developer-hub-javascript/fassetsExecuteMinting.ts";
import MintingFees from "./_minting_fees.mdx";
import PaymentTimeframes from "./_payment_timeframes.mdx";
import YoutubeEmbed from "@site/src/components/youtube";

## Overview

Expand Down Expand Up @@ -141,6 +142,10 @@ This script demonstrates how to retrieve the FDC proof and execute minting.
8. Call the [`executeMinting`](/fassets/reference/IAssetManager#executeminting) function on the AssetManager contract and send a transaction to the Flare network to convert the attested XRP payment into FXRP (minting).
9. On a successful transaction call `parseExecutemintingEvents` to extract and log events [`RedemptionTicketCreated`](/fassets/reference/IAssetManagerEvents#redemptionticketcreated) and [`MintingExecuted`](/fassets/reference/IAssetManagerEvents#mintingexecuted).

## Video Tutorial

<YoutubeEmbed videoId="a737yFcglnM?si=5L0owLyQREvO09d8"></YoutubeEmbed>

## Summary

Now that you have successfully minted FAssets using the executor, you can use them in Flare dApps or transfer them to other users or smart contracts within the Flare ecosystem.
Expand Down
5 changes: 5 additions & 0 deletions docs/fassets/developer-guides/7-fassets-redeem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import CodeBlock from "@theme/CodeBlock";
import Remix from "@site/src/components/remix";
import FAssetsRedeem from "!!raw-loader!/examples/developer-hub-solidity/FAssetsRedeem.sol";
import RedemptionProcessPrerequisites from "./_redemption_process_prerequisites.mdx";
import YoutubeEmbed from "@site/src/components/youtube";

## Overview

Expand Down Expand Up @@ -342,6 +343,10 @@ If the agent is unable to pay the redemption payment in the specified time, the
2. Execute the [`redemptionPaymentDefault`](/fassets/reference/IAssetManager#redemptionpaymentdefault) function and present the proof of payment non-existence to the FAssets system, which triggers a redemption failure.
3. The redeemer receives collateral plus a premium.

## Video Tutorial

<YoutubeEmbed videoId="a737yFcglnM?si=bHoFxhrlWhMCxEQr&start=275"></YoutubeEmbed>

## Summary

This is only the first step of the redemption process.
Expand Down
Loading