From 6f3f9238cc88200b1acee9b4a947cf50ee1afe6b Mon Sep 17 00:00:00 2001 From: Richard Watts Date: Thu, 29 Aug 2024 14:26:45 +0100 Subject: [PATCH] (fix) Modify ZRC-2 to document what the sample contract (and most implementors, I think) did all along. --- zrcs/zrc-2.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zrcs/zrc-2.md b/zrcs/zrc-2.md index 6beaf6c33..165f8237a 100644 --- a/zrcs/zrc-2.md +++ b/zrcs/zrc-2.md @@ -1,6 +1,6 @@ | ZRC | Title | Status | Type | Author | Created (yyyy-mm-dd) | Updated (yyyy-mm-dd) | | --- | ---------------------------- | ----------- | -------- | ------------------------------------------------------------------------------------ | -------------------- | -------------------- | -| 2 | Standard for Fungible Tokens | Implemented | Standard | Vaivaswatha Nagaraj
Chua Han Wen | 2019-11-18 | 2020-11-12 | +| 2 | Standard for Fungible Tokens | Implemented | Standard | Vaivaswatha Nagaraj
Chua Han Wen | 2019-11-18 | 2024-08-27 | ## I. What are Fungible Tokens? @@ -125,7 +125,7 @@ transition Mint(recipient: ByStr20, amount: Uint128) #### 2. Burn() (Optional) ```ocaml -(* @dev: Burn existing tokens. Only contract_owner can burn. *) +(* @dev: Burn existing tokens. Only the owner of the tokens can burn. *) (* @param burn_account: Address of the token_owner whose balance is to decrease. *) (* @param amount: Number of tokens to be burned. *) transition Burn(burn_account: ByStr20, amount: Uint128) @@ -135,14 +135,13 @@ transition Burn(burn_account: ByStr20, amount: Uint128) | | Name | Type | Description | | ------ | -------------- | --------- | -------------------------------------------------------- | -| @param | `burn_account` | `ByStr20` | Address of the token_owner whose balance is to decrease. | | @param | `amount` | `Uint128` | Number of tokens to be burned. | **Messages sent:** | | Name | Description | Callback Parameters | | ------ | --------------------- | ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `_tag` | `BurnSuccessCallBack` | Provide the sender the status of the burn. | `burner` : `ByStr20`, `burn_account`: `ByStr20`, `amount`: `Uint128`, where `burner` is the address of the burner, `burn_account` is the address whose balance will be decreased, and `amount` is the amount of fungible tokens burned. | +| `_tag` | `BurnSuccessCallBack` | Provide the sender the status of the burn. | `burner` : `ByStr20`, `amount`: `Uint128`, where `burner` is the address of the burner, and `amount` is the amount of fungible tokens burned. | **Events/Errors:**