From 3ee46605778183b8c01c0e0194ce6a508dbdfd49 Mon Sep 17 00:00:00 2001 From: 0xneves Date: Wed, 17 Apr 2024 23:32:51 +0700 Subject: [PATCH] docs: explaining support for ERC1155 --- contracts/SwapFactory.sol | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/contracts/SwapFactory.sol b/contracts/SwapFactory.sol index 3c6e2e6..9fc5710 100644 --- a/contracts/SwapFactory.sol +++ b/contracts/SwapFactory.sol @@ -26,13 +26,11 @@ import {ISwapFactory} from "./interfaces/ISwapFactory.sol"; * The Swap struct uses an {Asset} struct to represent the asset. This struct is * composed of: * - * - The `address` of the asset. This address can be from an ERC20 or ERC721 contract. + * - The `address` of the token asset. * - The `amount` or `id` of the asset. This amount can be the amount of ERC20 tokens - * or the ID of an ERC721 token. - * - * To use other standards, like ERC1155, you can wrap the ownership of the asset - * in an a trusted contract and Swap as an ERC721. This way, you can tokenize any - * on-chain execution and trade on Swaplace. + * or the NFT ID of an ERC721. + * - The `amount` and `id` can be encoded together in a single uint256, allowing the + * ERC1155 tokens to be swapped. */ abstract contract SwapFactory is ISwapFactory, ISwap, IErrors { /**