Skip to content

feat(docs): adds redemption default guide, explains redemption, describes redemption requested event#908

Merged
fassko merged 6 commits intomainfrom
feat/fassets-redemption-guide-improvements
Sep 30, 2025
Merged

feat(docs): adds redemption default guide, explains redemption, describes redemption requested event#908
fassko merged 6 commits intomainfrom
feat/fassets-redemption-guide-improvements

Conversation

@fassko
Copy link
Collaborator

@fassko fassko commented Sep 11, 2025

No description provided.

@fassko fassko self-assigned this Sep 11, 2025
@fassko fassko force-pushed the feat/fassets-redemption-guide-improvements branch from fe96582 to 343bec3 Compare September 17, 2025 13:35
@fassko fassko marked this pull request as ready for review September 17, 2025 13:57
@fassko fassko requested a review from dineshpinto as a code owner September 17, 2025 13:57
The amount of time is defined by the last block and the last timestamp on the underlying chain.
If the payment is not made in time, the redeemer has to prove nonpayment to be compensated.
After the redeemer presents the nonpayment proof, he is paid with the agent's collateral plus a _redemption default premium_.
If the payment is not made in time, the redeemer has to prove [payment non existence](/fdc/attestation-types/referenced-payment-nonexistence) to be compensated.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-existence

If the payment is not made in time, the redeemer has to prove nonpayment to be compensated.
After the redeemer presents the nonpayment proof, he is paid with the agent's collateral plus a _redemption default premium_.
If the payment is not made in time, the redeemer has to prove [payment non existence](/fdc/attestation-types/referenced-payment-nonexistence) to be compensated.
After the redeemer presents the payment non existence proof, he is paid with the agent's collateral plus a _redemption default premium_.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-existence


1. The redeemer obtains a proof of nonpayment from the Flare Data Connector.
2. The redeemer presents the nonpayment proofs to the FAssets system, which triggers a redemption failure.
1. The redeemer obtains a proof of payment non existence from the Flare Data Connector.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-existence everywhere

From this event, you can obtain the following:

- `requestId` - unique identifier for the redemption.
- `agentVault` - the agent vault responsible for payment.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the payment

- `lastUnderlyingBlock` - the last underlying block to submit payment.
- `lastUnderlyingTimestamp` — the **deadline** on the underlying chain for submitting the redemption payment.

You should wait until the deadline is passed and then check whether the agent has paid the redemption payment in the underlying chain.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is passed -> has been reached
has paid -> has made (repetition of pay and payment)
on the underlying chain


## Handling Non-Payment

If the agent fails to pay the redemption payment in the XRP Ledger, the redeemer or the executor can start the redemption default process.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pay...payment sound too similar


### Generate the Proof of Payment Non-Existence

With information from the [`RedemptionRequested`](/fassets/reference/IAssetManagerEvents#redemptionrequested) event, you can generate the attestation request for the [ReferencedPaymentNonexistence](/fdc/attestation-types/referenced-payment-nonexistence) attestation type.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing an article before information


- `requestId` - unique identifier for the redemption.
- `agentVault` - the agent vault responsible for payment.
- `redeemer` - address requesting redemption.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have - here, but a : later down in the guide


After the attestation request is confirmed, you can retrieve the proof of payment non-existence of the redemption payment on the XRP Ledger.

The redeemer or executor can execute the redemption default process by calling the [`redemptionPaymentDefault`](/fassets/reference/IAssetManager#redemptionpaymentdefault) function on the Asset Manager contract.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AssetManager

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm we need to rename in all occurances like that.

If the agent is unable to pay the redemption payment in the specified time, the redeemer can:

1. Make a proof of [payment non existence](/fdc/attestation-types/referenced-payment-nonexistence) using the [Flare Data Connector](/fdc/overview).
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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-existence

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still have non existence on this line

@fassko fassko force-pushed the feat/fassets-redemption-guide-improvements branch 2 times, most recently from a376509 to 3f63e56 Compare September 24, 2025 09:42
If the agent is unable to pay the redemption payment in the specified time, the redeemer can:

1. Make a proof of [payment non existence](/fdc/attestation-types/referenced-payment-nonexistence) using the [Flare Data Connector](/fdc/overview).
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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still have non existence on this line


If the agent is unable to pay the redemption payment in the specified time, the redeemer can:

1. Make a proof of [payment non existence](/fdc/attestation-types/referenced-payment-nonexistence) using the [Flare Data Connector](/fdc/overview).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have non existence

@fassko fassko force-pushed the feat/fassets-redemption-guide-improvements branch from f1469bd to 04afd93 Compare September 26, 2025 11:34
@fassko fassko force-pushed the feat/fassets-redemption-guide-improvements branch from 67f7dd6 to 98556e4 Compare September 30, 2025 12:15
@fassko fassko merged commit b1d3a7c into main Sep 30, 2025
13 checks passed
@fassko fassko deleted the feat/fassets-redemption-guide-improvements branch September 30, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants