Skip to content

Commit

Permalink
docs: improve SRC-20 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg authored May 20, 2024
1 parent bd1e8ea commit b1d6aae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SRCs/src-20.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This function must return the symbol of the asset, such as “ETH”. This funct

This function must return the number of decimals the asset uses - e.g. 8, which means to divide the coin amount by 100000000 to get its user representation. This function MUST return `Some` for any assets minted by the contract.

## Non-Fungible Asset Restrictions
## Non-Fungible Asset Restrictions

Non-Fungible Tokens (NFT) or Non-Fungible Assets on Fuel are Native Assets and thus follow the same standard as Fungible Native Assets with some restrictions. For a Native Asset on Fuel to be deemed an NFT, the following must be applied:

Expand All @@ -56,9 +56,9 @@ Non-Fungible Tokens (NFT) or Non-Fungible Assets on Fuel are Native Assets and t

# Rationale

As the SRC-20 Native Asset Standard leverages Native Assets on Fuel, we do not require the implementation of certain functions such as transfer or approval. This is done directly within the FuelVM and there is no smart contract that requires updating of balances. As Fuel is UTXO based, any transfer events may be indexed on transaction receipts.
As the SRC-20 Native Asset Standard leverages Native Assets on Fuel, we do not require the implementation of certain functions such as transfer or approval. This is done directly within the FuelVM and there is no smart contract that requires updating of balances. As Fuel is UTXO based, any transfer events may be indexed on transaction receipts.

Following this, we have omitted the inclusion of any transfer functions or events. The provided specification outlines only the required functions and events to implement fully functional native assets on the Fuel Network. Additional functionality and properties may be added as needed.
Following this, we have omitted the inclusion of any transfer functions or events. The provided specification outlines only the functions necessary to implement fully functional native assets on the Fuel Network. Additional functionality and properties may be added as needed.

# Backwards Compatibility

Expand Down Expand Up @@ -87,7 +87,7 @@ abi MyAsset {

# Example Implementation

## [Single Native Assset](../examples/src20-native-asset/multi_asset/src/multi_asset.sw)
## [Single Native Asset](../examples/src20-native-asset/multi_asset/src/multi_asset.sw)

Example of the SRC-20 implementation where a contract contains a single asset with one `SubId`. This implementation is recommended for users that intend to deploy a single asset with their contract.

Expand Down

0 comments on commit b1d6aae

Please sign in to comment.