You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Collateral Reservation Fee (CRF)**| Native tokens (FLR/SGB) | Compensates the agent and the collateral pool token (CPT) holders for locking their collateral during the minting process. Defined by governance as a percentage of the minted value. |
49
-
|**Minting Fee**| Underlying currency (e.g., XRP for FXRP) | Main source of revenue for the agents and the CPT holders. Percentage of the minted amount (varies by agent). |
50
-
|**Executor Fee (Optional)**| Native tokens (FLR/SGB) | Incentivizes the executor to process minting requests. Configurable fee denominated in FLR. |
51
-
52
-
:::info[Collateral Reservation Fee (CRF)]
53
-
If minting fails, the Collateral Reservation Fee is not returned to the minter.
54
-
It is distributed to the agent and the pool in the same manner as the minting fee.
55
-
:::
44
+
<MintingFees />
56
45
57
46
### Reserve Collateral Script
58
47
@@ -86,35 +75,7 @@ The following code demonstrates how to reserve collateral by calling the [`reser
86
75
87
76
The next step is to send the XRP Ledger payment to the agent. Before making the payment, it is important to understand the payment timeframes and constraints.
88
77
89
-
### Payment Timeframes
90
-
91
-
The minting process has specific timeframes for underlying payments, controlled by [operational parameters](/fassets/operational-parameters):
|`underlyingSecondsForPayment`| seconds | The minimum time allowed for a minter to pay on the underlying chain |
96
-
|`underlyingBlocksForPayment`| blocks | The number of underlying blocks during which the minter can make the payment |
97
-
98
-
These parameters work together as a dual safety mechanism that ensures payment happens within a reasonable number of blocks and guarantees payment occurs within a reasonable amount of time.
99
-
Both constraints must be satisfied for the payment to be considered valid.
100
-
101
-
#### Payment Deadline Calculation
102
-
103
-
When you reserve collateral, the system provides in the [`CollateralReserved`](/fassets/reference/IAssetManagerEvents#collateralreserved) event:
104
-
105
-
-`lastUnderlyingBlock`: The final block number for a valid payment.
106
-
-`lastUnderlyingTimestamp`: The deadline timestamp for payment.
107
-
108
-
Valid payments must occur **before both the last block AND the last timestamp**.
109
-
110
-
#### Payment Failure Handling
111
-
112
-
If the minter [fails to pay on the underlying chain](/fassets/minting#payment-failure) within the required timeframe:
113
-
114
-
- The agent must prove [nonpayment](/fdc/attestation-types/referenced-payment-nonexistence) using the [Flare Data Connector](/fdc/overview).
115
-
- After nonpayment is proved, the agent's collateral that was reserved is released.
116
-
- The agent receives the [Collateral Reservation Fee](/fassets/minting#collateral-reservation-fee), which is not returned to the minter.
117
-
- The minter loses the opportunity to mint and must restart the process.
@@ -47,13 +49,19 @@ The minting process involves the following steps:
47
49
48
50
## Reserve Collateral
49
51
52
+
Reserving collateral is the first step in the minting process.
53
+
54
+
<MintingFees />
55
+
56
+
### Reserve Collateral Script
57
+
50
58
The following code demonstrates how to reserve collateral by calling the [`reserveCollateral`](/fassets/reference/IAssetManager#reservecollateral) function on the AssetManager contract.
@@ -78,13 +86,19 @@ The following code demonstrates how to reserve collateral by calling the [`reser
78
86
79
87
## Send Payment on XRP Ledger
80
88
81
-
The next step is to send the XRP Ledger payment to the agent, and you can use this script to do that.
89
+
The next step is to send the XRP Ledger payment to the agent. Before making the payment, it is important to understand the payment timeframes and constraints.
90
+
91
+
<PaymentTimeframes />
92
+
93
+
### Payment Script
94
+
95
+
After understanding the underlying payment timeframes, you can use the provided script to execute the payment.
|**Collateral Reservation Fee (CRF)**| Native tokens (FLR/SGB) | Compensates the agent and the collateral pool token (CPT) holders for locking their collateral during the minting process. Defined by governance as a percentage of the minted value. |
8
+
|**Minting Fee**| Underlying currency (e.g., XRP for FXRP) | Main source of revenue for the agents and the CPT holders. Percentage of the minted amount (varies by agent). |
9
+
|**Executor Fee (Optional)**| Native tokens (FLR/SGB) | Incentivizes the executor to process minting requests. Configurable fee denominated in FLR. |
10
+
11
+
:::info[Collateral Reservation Fee (CRF)]
12
+
If minting fails, the Collateral Reservation Fee is not returned to the minter.
13
+
It is distributed to the agent and the pool in the same manner as the minting fee.
|`underlyingSecondsForPayment`| seconds | The minimum time allowed for a minter to pay on the underlying chain |
8
+
|`underlyingBlocksForPayment`| blocks | The number of underlying blocks during which the minter can make the payment |
9
+
10
+
These parameters work together as a dual safety mechanism that ensures payment happens within a reasonable number of blocks and guarantees payment occurs within a reasonable amount of time.
11
+
12
+
Both constraints must be satisfied for the payment to be considered valid.
13
+
14
+
#### Payment Deadline Calculation
15
+
16
+
When you reserve collateral, the system provides in the [`CollateralReserved`](/fassets/reference/IAssetManagerEvents#collateralreserved) event:
17
+
18
+
-`lastUnderlyingBlock`: The final block number for a valid payment.
19
+
-`lastUnderlyingTimestamp`: The deadline timestamp for payment.
20
+
21
+
Valid payments must occur **before both the last block AND the last timestamp**.
22
+
23
+
#### Payment Failure Handling
24
+
25
+
If the minter [fails to pay on the underlying chain](/fassets/minting#payment-failure) within the required timeframe:
26
+
27
+
- The agent must prove [nonpayment](/fdc/attestation-types/referenced-payment-nonexistence) using the [Flare Data Connector](/fdc/overview).
28
+
- After nonpayment is proved, the agent's collateral that was reserved is released.
29
+
- The agent receives the [Collateral Reservation Fee](/fassets/minting#collateral-reservation-fee), which is not returned to the minter.
30
+
- The minter loses the opportunity to mint and must restart the process.
0 commit comments