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
Copy file name to clipboardExpand all lines: docs/fassets/developer-guides/3-fassets-redeem.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,16 @@ Once decoding the most important data from the event is:
289
289
290
290
You can read the full event description [here](/fassets/reference/IAssetManagerEvents#redemptionticketupdated).
291
291
292
+
### Agent Process
293
+
294
+
The FAssets agent should perform the redemption, and the user needs to get the redeemed assets from the agent.
295
+
296
+
If the agent is unable to redeem the assets on the underlying chain in the specified time.
297
+
In that case, the user can execute the [`redemptionPaymentDefault`](/fassets/reference/IAssetManager#redemptionpaymentdefault) function to receive compensation from agent's collateral.
298
+
299
+
If the agent rejects the redemption request and no other agent takes over the redemption, the redeemer or appointed executor calls [`rejectedRedemptionPaymentDefault`](/fassets/reference/IAssetManager#rejectedredemptionpaymentdefault) method and receives payment in collateral.
300
+
The agent can also call default if the redeemer is unresponsive to payout the redeemer and free the remaining collateral.
Copy file name to clipboardExpand all lines: docs/fassets/reference/IAssetManager.mdx
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,38 @@ function redeem(
188
188
returns (uint256 _redeemedAmountUBA);
189
189
```
190
190
191
+
### `redemptionPaymentDefault`
192
+
193
+
If the agent fails to transfer the redeemed underlying assets in a timely manner, the redeemer or appointed executor can invoke this method and receive payment in collateral.
194
+
The agent can also call default if the redeemer is unresponsive to payout the redeemer and free the remaining collateral.
195
+
196
+
Parameters:
197
+
198
+
-`_proof`: Proof that the agent did not pay with correct payment reference on the underlying chain.
199
+
-`_redemptionRequestId`: ID of an existing redemption request.
If the agent rejected the redemption request and no other agent took over the redemption, the redeemer or appointed executor calls this method and receives payment in collateral.
211
+
The agent can also call default if the redeemer is unresponsive, to payout the redeemer and free the remaining collateral.
212
+
213
+
Parameters:
214
+
215
+
-`_redemptionRequestId`: ID of an existing redemption request
216
+
217
+
```solidity
218
+
function rejectedRedemptionPaymentDefault(
219
+
uint256 _redemptionRequestId
220
+
) external;
221
+
```
222
+
191
223
### `redemptionQueue`
192
224
193
225
Returns the redemption queue in the form of an array of [`RedemptionTicketInfo`](https://github.com/flare-foundation/fassets/blob/main/contracts/userInterfaces/data/RedemptionTicketInfo.sol) structs.
@@ -233,3 +265,17 @@ function agentRedemptionQueue(
0 commit comments