Behavior of clawback function in SEP41
#1858
Closed
orbitlens
started this conversation in
Stellar Ecosystem Proposals
Replies: 3 comments 6 replies
-
|
+1, thanks for highlighting this gap, the standard should gain greater clarity about these things. If I recall correctly some of these elements were discussed during the planning and implementation of CAP-67, this is what I remember:
I believe what I'm stating is consistent with CAP-67 also, or at the least its implementation. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Some prior conversation about clawback also emitting a burn event: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Would this change clear up the ambiguity? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The semantics of the
clawbackfunction is not properly defined in the standard. While the classicclawbackoperation returns tokens to the issuer account (and therefore effectively always burns the entire clawbacked amount), the SEP41 standard does not define what should happen in this situation - whether tokens should be burned or deposited to the issuing contract balance. It also does not define events that have to be logged in such case, opening the field to wide range of interpretations.If the clawback implies burning tokens, should the contract emit the
burneffect afterclawbackeffect? Or if it transfers tokens to the issuing contract address, should it also emit thetransferevent in addition toclawback?Such ambiguous definition leads to confusion for token issuers and indexers.
Beta Was this translation helpful? Give feedback.
All reactions