Skip to content

Commit

Permalink
All burning from within the contract
Browse files Browse the repository at this point in the history
  • Loading branch information
bitzoic committed Aug 30, 2023
1 parent d500b24 commit fe2f050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standards/src_3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This function MAY contain arbitrary conditions for minting, and revert if those

### `fn burn(sub_id: SubId, amount: u64)`

This function MUST burn `amount` tokens sent to the contract in this function invocation with the sub-identifier `sub_id` and MUST ensure the `AssetId` of the token is the sha-256 hash of `(ContractId, SubId)` for the implementing contract.
This function MUST burn `amount` tokens with the sub-identifier `sub_id` and MUST ensure the `AssetId` of the token is the sha-256 hash of `(ContractId, SubId)` for the implementing contract.
This function MUST ensure at least `amount` tokens have been transfered to the implementing contract.
This function MUST update the total supply defined in the [SRC-20](https://github.com/FuelLabs/sway-standards/tree/master/standards/src_20) standard.
This function MAY contain arbitrary conditions for burning, and revert if those conditions are not met.
Expand Down

0 comments on commit fe2f050

Please sign in to comment.