Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XLS-39d: rename lsfAllowClawback to lsfAllowTrustLineClawback #119

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

shawnxie999
Copy link
Collaborator

@shawnxie999 shawnxie999 commented Jul 11, 2023

We are renaming lsfAllowClawback to lsfAllowTrustLineClawback to make it clearer that this flag is specifically used for IOUs. By renaming it, we want to separate this flag from potential future token types (like CFT) that may also support clawback functionality. This change is aimed at addressing technical debt caused by IOUs, so that we can avoid adding new flags at the account level in the future. Instead, we plan to control settings at the token level, rather than the account level.

Eg. CFT will have a token-level toggle for clawback and not use lsfAllowClawback, so it's better to rename this flag to be explicit that it is only used for trust line, to avoid confusions in the future.

Copy link
Collaborator

@kennyzlei kennyzlei left a comment

Choose a reason for hiding this comment

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

lgtm, thank you for the explanation of this rename

@ckniffen
Copy link
Collaborator

Should asfAllowClawback be renamed as well?

@shawnxie999
Copy link
Collaborator Author

@ckniffen Yes it is implicitly renamed as well, but it's not mentioned in the spec

@ckniffen
Copy link
Collaborator

I think it should be mentioned in the spec as that is how you enable and asf have different values than lsf

@shawnxie999
Copy link
Collaborator Author

@ckniffen I don't think other specs mention it either. I guess it's implied that they will have the same name 🤷

kennyzlei pushed a commit to XRPLF/rippled that referenced this pull request Jul 14, 2023
Reason for this change is here XRPLF/XRPL-Standards#119

We would want to be explicit that this flag is exclusively for trustline. For new token types(eg. CFT), they will not utilize this flag for clawback, instead, they will turn clawback on/off on the token-level, which is more versatile.
@kennyzlei kennyzlei requested a review from Silkjaer July 14, 2023 01:13
@Silkjaer Silkjaer merged commit fa233eb into XRPLF:master Jul 14, 2023
ckeshava pushed a commit to ckeshava/rippled that referenced this pull request Sep 22, 2023
Reason for this change is here XRPLF/XRPL-Standards#119

We would want to be explicit that this flag is exclusively for trustline. For new token types(eg. CFT), they will not utilize this flag for clawback, instead, they will turn clawback on/off on the token-level, which is more versatile.
ckeshava pushed a commit to ckeshava/rippled that referenced this pull request Sep 25, 2023
Reason for this change is here XRPLF/XRPL-Standards#119

We would want to be explicit that this flag is exclusively for trustline. For new token types(eg. CFT), they will not utilize this flag for clawback, instead, they will turn clawback on/off on the token-level, which is more versatile.
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.

5 participants