From 86f3ca8aab51a90f7a8249251153a657559d2f1d Mon Sep 17 00:00:00 2001 From: John Wooten Date: Mon, 5 Aug 2024 14:39:06 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=9E=20Clawbacks:=20format=20more=20nam?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../transactions-specialized/clawbacks.mdx | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/docs/learn/encyclopedia/transactions-specialized/clawbacks.mdx b/docs/learn/encyclopedia/transactions-specialized/clawbacks.mdx index e531ec905..b4af2d628 100644 --- a/docs/learn/encyclopedia/transactions-specialized/clawbacks.mdx +++ b/docs/learn/encyclopedia/transactions-specialized/clawbacks.mdx @@ -285,12 +285,12 @@ preamble().then(examplePaymentClawback); After running our example, we should see the balances reflect the example flow: ``` -A - GCIHA: 0 -B - GDS5N: 500 -C - GC2BK: 250 +A - GCIHA...72MJN: 0 +B - GDS5N...C7KKX: 500 +C - GC2BK...CQVGF: 250 ``` -Notice that `GCIHA` (the issuer) holds none of the asset despite clawing back 250 from $\mathcal{C}$. This should drive home the fact that clawed-back assets are burned, not transferred. +Notice that $\mathcal{A}$ (the issuer) holds none of the asset despite clawing back 250 from $\mathcal{C}$. This should drive home the fact that clawed-back assets are burned, not transferred. (It may be strange that A never holds any `AstroToken`, but that’s exactly how issuing works: you create value where there used to be none. Sending an asset to its issuing account is equivalent to burning it, and auditing the total amount of an asset in existence is one of the benefits of properly distributing an asset via a distribution account, which we avoid doing here for example brevity.) @@ -362,9 +362,9 @@ function exampleClaimableBalanceClawback() { After running `preamble().then(examplePaymentClawback)`, we should see the balances reflect our flow: ``` -GCIHA: 0 -GDS5N: 500 -GC2BK: 0 +A - GCIHA...72MJN: 0 +B - GDS5N...C7KKX: 500 +C - GC2BK...CQVGF: 0 ``` ### Example 3: Selectively Enabling Clawback @@ -461,11 +461,14 @@ function exampleSelectiveClawback() { Run the example (e.g. `via preambleRedux().then(exampleSelectiveClawback)`) and observe its result: ``` -GCIHA: 0 -GDS5N: 1000 -GCIHA: 0 -GDS5N: 500 +A - GCIHA...72MJN: 0 +B - GDS5N...C7KKX: 1000 + +A - GCIHA...72MJN: 0 +B - GDS5N...C7KKX: 500 + Clawback failed, as expected! -GCIHA: 0 -GDS5N: 500 + +A - GCIHA...72MJN: 0 +B - GDS5N...C7KKX: 500 ```