{"repo":"0xsequence/niftyswap","free":true,"listed":false,"github":"https://github.com/0xsequence/niftyswap","clone":"git clone https://github.com/0xsequence/niftyswap.git","description":"Niftyswap - decentralized swap protocol for ERC-1155 tokens, inspired by Uniswap","language":"TypeScript","stars":271,"topics":["ethereum","erc-1155","swap"],"license":null,"category":"blockchain-web3","readme_excerpt":"Niftyswap ========= Niftyswap is a decentralized token swap protocol for ERC-1155 tokens on Ethereum. In other words, Niftyswap is Uniswap for ERC-1155 tokens. For detailed documentation on the Niftyswap Protocol and how to use it, please read the SPECIFICATION. We are incredibly thankful for the work done by the Uniswap team, without which Niftyswap wouldn't exists. Description Niftyswap is an implementation of Uniswap, a protocol for automated token exchange on Ethereum. While Uniswap is for trading ERC-20 tokens, Niftyswap is a protocol for ERC-1155 tokens. Both are designed to favor ease of use and provide guaranteed access to liquidity on-chain. Most exchanges maintain an order book and facilitate matches between buyers and sellers. Niftyswap smart contracts hold liquidity reserves of various tokens, and trades are executed directly against these reserves. Prices are set automatically using the constant product $x y = K$ market maker mechanism, which keeps overall reserves in relative equilibrium. Reserves are pooled between a network of liquidity providers who supply the system with tokens in exchange for a proportional share of transaction fees. An important feature of Niftyswap is the utilization of a factory/registry contract that deploys a separate exchange contract for each ERC-1155 token contract. These exchange contracts each hold independent reserves of a single fungible ERC-1155 currency and their associated ERC-1155 token id. This allows trades between the Cur","default_branch":null,"files":null,"tree":[],"storefront":"/r/0xsequence","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0xsequence/niftyswap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}