<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Spencer on Medium]]></title>
        <description><![CDATA[Stories by Spencer on Medium]]></description>
        <link>https://medium.com/@spencergomu?source=rss-663024e4376a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*39nH9BMncRViLxq0bdEaYA.jpeg</url>
            <title>Stories by Spencer on Medium</title>
            <link>https://medium.com/@spencergomu?source=rss-663024e4376a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:48:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@spencergomu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Collection.xyz Technical Primer / FAQ]]></title>
            <link>https://medium.com/collection-xyz/collection-xyz-technical-primer-faq-d5f7a3464998?source=rss-663024e4376a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5f7a3464998</guid>
            <dc:creator><![CDATA[Spencer]]></dc:creator>
            <pubDate>Sun, 09 Oct 2022 11:04:52 GMT</pubDate>
            <atom:updated>2022-10-25T12:07:12.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Collection.xyz?</h3><ul><li>There are two contracts under <a href="https://collection.xyz/">Collection.xyz</a>: <strong>Collectionswap</strong> and <strong>Collectionstaker</strong>.</li><li><strong>Collectionswap</strong> extends a Sudoswap-like protocol to produce LP tokens, that can be used as a bearer-token to represent liquidity-provision. These LP tokens can be used in further derivative(s) protocols as a building block.</li><li><strong>Collectionstaker</strong> creates a set of RewardPoolETH’s, which can be used by any NFT collection (e.g. BAYC, MAYC) to incentivize liquidity pooling. The current sudoswap implementation does not discriminate against any particular set of NFTs in a collection, so the spot price should be centred around the current floor.</li><li>Currently, only ERC721 and ETH pairs are supported.</li><li><strong>RewardPoolETH</strong> is a reference implementation of a rewards contract that works with Collectionswap-style tokens where a set of ERC20 rewards tokens can be input (any arbitrary set), and with a start + end time specified, can reward users who provide liquidity conforming to delta, fee, bonding curve and NFT collection parameters. The reward formula favors balanced two-sided liquidity provision.<br>- e.g. an NFT collection has 10000 USDC, and wants to reward 24 hours of liquidity provision for the exponential curve, delta of 105% and 1% fee. The collection can use Collectionstaker to create a pool with the 105% delta and 1% fee parameters.<br>- Any NFT owner can create a Sudoswap pool with a delta less than or equal to the pool delta and fee through the Collectionswap interface, and receive an LP token.<br>- If the NFT owner puts their LP token in the RewardPoolETH from the NFT collection with no other person putting an LP token, for the full 24 hours specified, they will receive 10000 USDC.<br>- It is in the interest of the NFT owner to claim rewards when their share of the pool is higher.</li></ul><h3>What sort of liquidity provision is incentivized?</h3><ul><li>The following conditions were chosen:<br>- Order of liquidity provision should not matter. A user contributing 10ETH and 3 NFTs of Collection X should have a similar contribution amount to another user contributing 10ETH and 3 NFTs of Collection X, no matter what happened in between.<br>- Amount of contribution is linearly proportional to the amount of liquidity provided.<br>- The same notional ETH balance should have more contribution if equally balanced across NFTs and ETH than if given to the pair in an unbalanced ratio.<br>- Prefer two-sided liquidity over one-sided liquidity<br>- The square root of constant product is used.</li><li>Audit has been completed with no vulnerabilities found. 🍎 <br>- <a href="https://github.com/verichains/public-audit-reports/blob/main/Verichains%20Public%20Audit%20Report%20-%20Gomu%20Smartcontracts%20-%20v1.2.pdf">Public Audit Report</a> by Verichains Labs (Oct 6, 2022)</li></ul><h3>Sudoswap Bonding Curve addresses</h3><ol><li>Ethereum<br>- Linear: 0x5B6aC51d9B1CeDE0068a1B26533CAce807f883Ee <a href="https://etherscan.io/address/0x5B6aC51d9B1CeDE0068a1B26533CAce807f883Ee">https://etherscan.io/address/0x5B6aC51d9B1CeDE0068a1B26533CAce807f883Ee</a><br>- Exponential: <a href="https://etherscan.io/address/0x432f962D8209781da23fB37b6B59ee15dE7d9841">0x432f962D8209781da23fB37b6B59ee15dE7d9841</a> <a href="https://etherscan.io/address/0x432f962D8209781da23fB37b6B59ee15dE7d9841">https://etherscan.io/address/0x432f962D8209781da23fB37b6B59ee15dE7d9841</a><br>- XyK: <a href="https://etherscan.io/address/0x7942e264e21c5e6cbba45fe50785a15d3beb1da0#code">0x7942e264e21c5e6cbba45fe50785a15d3beb1da0</a> <a href="https://etherscan.io/address/0x7942e264e21c5e6cbba45fe50785a15d3beb1da0">https://etherscan.io/address/0x7942e264e21c5e6cbba45fe50785a15d3beb1da0</a></li></ol><h3>Collection.xyz Mainnet addresses</h3><ol><li>Collectionswap — <a href="https://etherscan.io/address/0x226620c03c2f2dbbbd90e2eca4754d8a41fd3deb">https://etherscan.io/address/0x226620c03c2f2dbbbd90e2eca4754d8a41fd3deb</a></li><li>Collectionstaker — <a href="https://etherscan.io/address/0x8720c1f4a4cc616c4821352b985898d4f7ac6159">https://etherscan.io/address/0x8720c1f4a4cc616c4821352b985898d4f7ac6159</a></li></ol><h3>Step-by-Step guide for those who are impatient</h3><h4>A. Creating LP token</h4><ol><li>nftContract<br>setApprovalForAll (Collectionswap, true)</li><li>Collectionswap<br>createDirectPairETH : Create a Sudoswap 721-ETH pair, and receive an LP token from Collectionswap. Collectionswap supports all Sudoswap bonding curves</li></ol><ul><li>ETH amount for the buy liquidity</li><li>_nft = address of your NFT collection. Ensure 721</li><li>_bondingCurve address of Sudoswap bonding curve you want.</li></ul><p>If you are choosing Exponential bonding curve:</p><ul><li>*_*delta If 5% delta, choose 1.05e18. Recommended to keep delta under 10%. Remember ask will be inflated by spot * (_delta/1e18)</li><li>_fee If 1% fee, choose 0.01e18.</li><li>_spot. If 25 ETH, choose 25e18</li><li>Keep in mind final ask prices are inflated by the _fee param and the Sudoswap protocol fee (0.5% at time of writing)</li></ul><p>If you are choosing Linear bonding curve</p><ul><li>_delta is the linear step function. e.g. 0.2ETH steps are represented by 0.2e18</li><li>_fee If 1% fee, choose 0.01e18.</li><li>_spot. If 25 ETH, choose 25e18</li><li>_initialNFTIDs = list of NFT IDs from the base NFT collection</li><li>This gives you an ERC721 LP token representing ownership of the Sudoswap pool</li></ul><h4>B. Checking pool params</h4><ol><li>Collectionswap<br>viewPoolParams<br>tokenId of the LP token</li></ol><h4>C. Destroying LP token</h4><ol><li>Collectionswap<br>useLPTokenToDestroyDirectPairETH<br>tokenId the ERC721 LP token representing ownership of the sudoswap pool. If you are the owner of this token, it will burn the token and return what is in the pool to you.</li></ol><h4>D. Creating rewards pool</h4><ol><li>ERC20token.approve (collectionstaker, reward)</li><li>Collectionstaker<br>createIncentiveEth<br>nft = address of your NFT collection<br>bondingCurve address of Sudoswap bonding curve you want to incentivize<br>delta delta you want<br>fee fee you want<br>rewardToken ERC20 you want to incentivize<br>startTime UNIX time you want rewards to start<br>endTime UNIX time you want rewards to end<br>reward rate of rewards</li></ol><h4>E. Joining an existing RewardPoolETH</h4><ol><li>Collectionswap.approve(rewardPoolEth.address, tokenId)<br>or Collectionswap.setApprovalForAll(rewardPoolEth.address, true)</li><li>RewardPoolETH<br>stake<br>tokenId of Collectionswap token you own<br>Pool params will be checked and if it meets the criteria, it will join the pool</li><li>getReward<br>Get your ERC20 token reward</li><li>exit<br>Remove your LP token and getReward</li></ol><h4>F. Getting back what is in your Sudoswap pool</h4><ol><li>Collectionswap<br>useLPTokenToDestroyDirectPairETH<br>tokenId = your original tokenId</li></ol><p>If you’ve further questions, join the Collection.xyz Discord: <a href="http://discord.gg/collectionxyz">https://discord.gg/collectionxyz</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5f7a3464998" width="1" height="1" alt=""><hr><p><a href="https://medium.com/collection-xyz/collection-xyz-technical-primer-faq-d5f7a3464998">Collection.xyz Technical Primer / FAQ</a> was originally published in <a href="https://medium.com/collection-xyz">Collection.xyz</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>