<?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[Position Exchange - Medium]]></title>
        <description><![CDATA[Position Exchange - Medium]]></description>
        <link>https://medium.com/position-exchange?source=rss----2b6d1f7f8fb0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Position Exchange - Medium</title>
            <link>https://medium.com/position-exchange?source=rss----2b6d1f7f8fb0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:08:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/position-exchange" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[Announcement] Position Exchange x OKC (OKX Chain) Integration]]></title>
            <link>https://medium.com/position-exchange/announcement-position-exchange-x-okc-okx-chain-integration-56cf2f63e67d?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/56cf2f63e67d</guid>
            <dc:creator><![CDATA[Lyn Position]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 12:14:42 GMT</pubDate>
            <atom:updated>2023-03-08T12:14:42.470Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UrzctX7Mk3hsarNdHxTnsQ.png" /></figure><p>Dear our beloved Posinations,</p><p>We are pleased to announce that we have completed the integration of Position Exchange’s Decentralized Perpetual Trading Protocol (DPTP) on OKC (OKX Chain).</p><h3>About OKC</h3><p>OKC (OKX Chain) is an EVM-compatible L1 built on Cosmos with a focus on true interoperability (IBC) and maximized performance. At high scalability, developers can build and scale with low gas fees. The OKC ecosystem and infrastructure, including the all-in-one multi-chain Web3 interface, enable a seamless experience for both developers and users.</p><p>It is worth mentioning OKC’s benefits:</p><ul><li>Improved interoperability for a multi-chain future</li><li>High scalability: Developers can build and scale with low gas fees</li><li>Ever-expanding ecosystem &amp; infrastructure to create and allow for more utility and innovation.</li></ul><p>This collaboration is for the ultimate purpose of delivering advanced decentralized financial tools with almost no fee to a broader trading community. From here, we commit to supporting OKC to become a more efficient chain and hope for more ambitious projects in the future.</p><h3>Our Plan</h3><p>Position Exchange’s DPTP has made its way to the top of Dapps with the most user growth in the last 30 days. It once entered the top 10 Dapps with the highest number of active users within 24 hours. By collaborating with OKC, we believe we can create something truly revolutionary and make a meaningful positive impact in the DeFi space. The support from OKC will be extremely vital in helping us develop a stable product while increasing the number of active users for both.</p><p>As Position Exchange DEX 2.0 has been introduced recently, we are discussing the possibility of its integration with OKC. Keep an eye out for more updates on this front by following us on our social media channels.</p><h3>Get started with OKC</h3><p>As OKC is an EVM-compatible blockchain, it allows you to use any Ethereum-compatible wallet such as Metamask, TokenPocket, TrustWallet, etc.</p><p>Alternatively, you can also download the OKX wallet for a better user experience.</p><h3>Download a wallet that supports OKC</h3><ol><li>To use Web3 wallet: visit <a href="https://www.okx.com/cn/web3,">https://www.okx.com/cn/web3,</a> download Web3 wallet, follow the instructions to create an account, and do not forget your login password and mnemonic phrases etc, also create backups.</li><li>To use Metamask: visit <a href="https://metamask.io/,">https://metamask.io/,</a> download Metamask, follow the instructions to create an account, and do not forget your login password and mnemonic phrases, etc, and also create backups.</li><li>Currently, TokenPocket, Bitkeep, ONTO, and HyperPay already support OKC. For details, check the tutorials on each wallet’s official website.</li></ol><p>In this user guide, we will demonstrate how to connect a Metamask wallet on OKC.</p><h3>Automatic Setup &amp; Add Network to your wallet</h3><p><strong>Step 1: </strong>Visit the <a href="https://www.okx.com/okc">OKC</a> home page.</p><p><strong>Step 2: </strong>Select the “Connect Wallet” button at the top of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/0*v-6YT_fg_jl4sOIB" /></figure><p><strong>Step 3: </strong>Select the “MetaMask” or alternative wallets that you want to connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8M7Ak6ygWaK6qUoq" /></figure><p><strong>Step 4: </strong>Select the “Connect Wallet Extension” button, and your MetaMask will automatically connect to OKC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pPl8mNSVoPxQt9Ri" /></figure><h3>Manual Setup &amp; Add Network to your wallet</h3><p><strong>Step 1: </strong>Connect MetaMask to OKC</p><p>Check out our guidelines on how to set up a Metamask wallet <a href="https://docs.position.exchange/get-started/create-a-wallet">here</a>.</p><p>Once you have a MetaMask account, the first time you log in to a new device, the screen will display the default Ethereum Mainnet. You should notice that in case your assets are not found, make sure you have selected the correct network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2dqvYZrifOdn7mlM" /></figure><ul><li>Click on the Account Identicon</li><li>Select <strong>“Setting”</strong> from the dropdown menu</li><li>Select <strong>“Networks”</strong> from the Setting menu</li><li>Click on the <strong>“Add a network”</strong> button.</li><li>Enter the following information by clicking inside the input box:</li><li>Network Name: OKC (customized)</li><li>New RPC URL:<a href="https://api.posichain.org/"> </a><a href="https://exchainrpc.okex.org/">https://exchainrpc.okex.org</a></li><li>Chain ID: 66</li><li>Currency Symbol: OKT</li><li>Block Explorer URL:<a href="https://explorer.posichain.org/"> </a><a href="https://www.oklink.com/okc">https://www.oklink.com/okc</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dee0tZNF0Gm8HIKv" /></figure><ul><li>Save the information</li></ul><p><strong>Step 2: </strong>Access the <a href="https://position.exchange/futures/USD-M/BTC/BUSD">Position Exchange futures trading</a> and connect your wallet in the top right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*R-PGZTX7T7Ahqrefszt2Sg.png" /></figure><p><strong>Step 3: </strong>Choose the Network “OKC” and choose your wallet provider. Make sure your network is on OKC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GyBR9SksYgT_5VhXKXQptw.png" /></figure><h3>Bridge assets from BNB Chain to OKC</h3><p>In promoting user participation across various ecosystems, OKC Bridge is a useful tool that offers a fast and secure transfer of assets to OKC. Since Position Exchange only supports USDT as collateral on OKC, you must have USDT on OKC to start futures trading.</p><p>Follows these steps to bridge your assets to OKC using OKC Bridge:</p><p><strong>Step 1: </strong>Access OKC Bridge</p><p>You can either:</p><ul><li>Click to navigate to <a href="https://www.okx.com/okc/bridge">OKC Bridge website</a></li><li>Or choose “Build” on OKX’s top navigation bar and click on Bridge.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wsoAjGfgTQJ3BWNN" /></figure><p><strong>Step 2: </strong>Select the asset and cross-chain network</p><ul><li>Select the asset you want to cross-chain from the list.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cqNbyGVK3dpk1fNb" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1c98hoefXVDt3O3e" /></figure><ul><li>Select the <strong>From network</strong> as BNB Chain and the <strong>To network</strong> as OKC.</li><li>Click Connect wallet</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/0*7Z8UhyQBSBhGAao2" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/0*0YSUJn_MxfuvXohB" /></figure><p><strong>Step 3: </strong>Confirm the transfer information</p><ul><li>Click to confirm the transfer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*xS858Pj9NKKxfNwt" /></figure><p><strong>Step 4:</strong> Confirm a transfer in your wallet</p><ul><li>Click Confirm as you agree to transfer the asset</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UzVy6AUct9lugY1I" /></figure><ul><li>After the transfer is submitted, wait for a few seconds and your transfer will be done!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*5gZfasP9k9F4I-pP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/0*9VqmtVnBOBHzmkk_" /></figure><p><strong>Step 5:</strong> Check the status of the cross-chain process</p><ul><li>Click the OKC Bridge history button on the top right corner.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/0*bXSg6tDg_RwuWrmc" /></figure><ul><li>Check the transaction status in the OKC Bridge history section. You can click the button at the end of the network’s name to review the transaction details.</li></ul><p>Complete these steps, and you are set! Experience our<a href="https://position.exchange/futures/USD-M/BTC/BUSD"> futures trading</a> on OKC now.</p><p>You can find additional trading tutorials on our website at the following link: https://docs.position.exchange/products/trading-protocol</p><p>Find us on:</p><ul><li><strong>Website</strong>: <a href="https://position.exchange/">https://position.exchange/</a></li><li><strong>Telegram</strong>: <a href="https://t.me/PositionExchange">https://t.me/PositionExchange</a></li><li><strong>Discord</strong>: <a href="https://discord.gg/position-exchange">https://discord.gg/position-exchange</a></li><li><strong>Twitter</strong>: <a href="https://twitter.com/PositionEx">https://twitter.com/PositionEx</a></li><li><strong>Reddit</strong>: <a href="https://www.reddit.com/r/PositionExchange/">https://www.reddit.com/r/PositionExchange/</a></li><li><strong>Medium</strong>: <a href="https://positionex.medium.com/">https://positionex.medium.com/</a></li><li><strong>Coinmarketcap</strong>: <a href="https://coinmarketcap.com/currencies/position-exchange/">https://coinmarketcap.com/currencies/position-exchange/</a></li><li><strong>Business Contact</strong>: business@postion.exchange</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56cf2f63e67d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/announcement-position-exchange-x-okc-okx-chain-integration-56cf2f63e67d">[Announcement] Position Exchange x OKC (OKX Chain) Integration</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Built your NFT on POSI Chain]]></title>
            <link>https://medium.com/position-exchange/built-your-nft-on-posi-chain-c9cda8e45cce?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/c9cda8e45cce</guid>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[Alicia Position]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 08:19:23 GMT</pubDate>
            <atom:updated>2023-02-21T08:25:57.874Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is NFT</strong></h3><p>Non-fungible tokens (NFTs) are assets that have been tokenized via a blockchain. They are assigned unique identification codes and metadata that distinguish them from other tokens. NFTs can be traded and exchanged for money, cryptocurrencies, or other NFTs — it all depends on the value the market and owners have placed on them. For instance, you could use an exchange to create a token for an image of a banana. Some people might pay millions for the NFT, while others might think it worthless. Cryptocurrencies are tokens as well; however, the key difference is that two cryptocurrencies from the same blockchain are interchangeable — they are fungible. Two NFTs from the same blockchain can look identical, but they are not interchangeable.</p><p>NFTs were created long before they became popular in the mainstream. Reportedly, the first NFT sold was “Quantum,” designed and tokenized by Kevin McKoy in 2014 on one blockchain (Namecoin), then minted and sold in 2021 on Ethereum. NFTs are built following the ERC-721 (Ethereum Request for Comment #721) standard, which dictates how ownership is transferred, methods for confirming transactions, and how applications handle safe transfers (among other requirements). The ERC-1155 standard, approved six months after ERC-721, improves upon ERC-721 by batching multiple non-fungible tokens into a single contract, reducing transaction costs.</p><h3><strong>How NFTs Work</strong></h3><p>NFTs are created through a process called minting, in which the information of the NFT is recorded on a blockchain. At a high level, the minting process entails a new block being created, NFT information being validated by a validator, and the block being closed. This minting process often entails incorporating smart contracts that assign ownership and manage the transferability of the NFT. As tokens are minted, they are assigned a unique identifier directly linked to one blockchain address. Each token has an owner, and the ownership information (i.e., the address in which the minted token resides) is publicly available. Even if 5,000 NFTs of the same exact item are minted (similar to general admission tickets to a movie), each token has a unique identifier and can be distinguished from the others.</p><h3><strong>Built your NFT</strong></h3><p><strong>Creating the Contract</strong></p><p>In this step, we will code a smart contract NFT with the name Position Exchange NFT. This contract base on contract <a href="https://eips.ethereum.org/EIPS/eip-721">ERC721</a>, the contract ERC721 is already audited and used by most of the developers on ethereum.</p><p>In this example, the IED online remix ethereum will be used (<a href="https://remix.ethereum.org/">https://remix.ethereum.org/</a>).</p><p>After visiting remix ethereum, you need to create a file named PosiNFT.sol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/0*WvcOxtszOBmqVs6G" /></figure><p>In this file, we will implement the code of our NFT below:</p><pre>import<br>&quot;https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol&quot;;<br>import<br>&quot;https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol&quot;;<br>contract PosiNFT is ERC721, Ownable{<br>constructor() ERC721(&quot;Position Exchange NFT&quot;, &quot;POSINFT&quot;){}<br>function safeMint(address to, uint256 tokenId, string memory uri)<br> public<br> onlyOwner<br> {<br> _safeMint(to, tokenId);<br> }<br>function _burn(uint256 tokenId) internal override(ERC721) {<br> super._burn(tokenId);<br> }<br>function burn(uint256 tokenId) public onlyOwner {<br> _burn(tokenId);<br> }<br>}</pre><p>This contract provides the function mint, burn, and tokenUri.</p><p>With the function mint, it can only mint by owner of contract and the NFT will be sent to owner</p><p>With the function burn, the NFT will be destroy forever</p><p><strong>Deploy to POSI Chain</strong></p><p>Before deploying to the POSI chain, we need to set up POSI chain network information to Metamask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y7XLLv8iLbtxDNhd" /></figure><p>After setup POSI chain network, return remix and inject network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BTHmLNCYwi2FCezz" /></figure><p>When the metamask inject network successfully, just click the button deploy and confirm transaction on Metamask</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*vGnjr2FKiMaLvyqn" /></figure><p>Our contract will be shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*dU97oWUFWh0kbH6J" /></figure><p>The address is 0x8474D2A4be0A574bf20F27Fd6360c8eb1107187a , you can go to explorer of POSI Chain to view the <a href="https://explorer.posichain.org/address/0x8474d2a4be0a574bf20f27fd6360c8eb1107187a">contract</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9cda8e45cce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/built-your-nft-on-posi-chain-c9cda8e45cce">Built your NFT on POSI Chain</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your NFT on POSI Chain]]></title>
            <link>https://medium.com/position-exchange/build-your-nft-on-posi-chain-751926165e26?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/751926165e26</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 09:01:27 GMT</pubDate>
            <atom:updated>2022-12-20T10:09:10.037Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfM_6TnIETUq1xZG4akPWA.png" /></figure><p>The NFT market has been one of the fastest-growing industries with the formidable expansion of NFT use cases. As a matter of fact, the market has grown by almost 20 times in one year, from 2020 to 2021. The benefits of access to unique ownership serve as promising reasons for entering the domain of NFTs. One of the most interesting tools used for deploying smart contracts and NFTs is Hardhat.</p><p>Therefore, a Hardhat NFT tutorial can help you learn how to create your own NFT smart contract. Hardhat is a reliable development and testing framework for smart contracts, and it has been tailored for upcoming advancements in web3. You can discover many viable functionalities with Hardhat for creating NFT smart contracts and deploying them easily. The following post offers you a tutorial on using Hardhat for creating your own NFTs.</p><p><strong>Steps to Create NFTs with Hardhat</strong></p><p>Once you have created your app, you need to set up the project in Hardhat. The tutorial to compile Solidity contracts for NFTs would not focus on writing Solidity syntax or test scripts. On the contrary, prior knowledge of Solidity is a great asset for understanding the following steps easily. Awareness of concepts in other high-level languages such as JavaScript could also help you understand the methods for creating NFT smart contracts. Let us take a look at the individual steps in creating and deploying your NFT smart contract by using Hardhat with Solidity programming language.<br><strong><em>Setting the Foundation for the Project<br> </em></strong>The first requirement in the steps to deploy a contract for your NFT on the Ethereum blockchain focuses on setting the project. You can begin with starting the npm project by using the following command.</p><pre>npm init - yes</pre><p>Now, you have to carry out a Hardhat package installation process with the following command,</p><pre>npm install - save-dev hardhat</pre><p>The basic steps can help you prepare for creating the new NFT Hardhat project by using the following command</p><pre>npx hardhat</pre><p>You would receive a welcome message along with a prompt asking you, “What do you want to do?” along with three distinct options. The options include “Create a sample project,” “Create an empty hardhat.config.js,” and “Quit.” You must select the “Create an empty hardhat.config.js” option, which would create the “hardhat.config.js” within the root directory along with details of the version of Solidity compiler.</p><p><strong><em>Writing and Compiling the Smart Contract</em></strong></p><p>The biggest highlight in any Hardhat tutorial would focus on writing and compiling the smart contracts for your NFTs. You can begin by scripting a simple contract followed by compiling it. You have to start by developing another Solidity file in the separate “contracts” directory. Here is the command which can help you create the new Solidity file.</p><pre>mkdir contracts &amp;&amp; cd contracts &amp;&amp; touch MyCryptoNFT.solCopy</pre><p>It is important to note that you have to rely on OpenZeppelin package for writing your NFT contract. Therefore, you have to take care of open-zeppelin package installation before writing the smart contract for your NFT. Here is the command for installing open-zeppelin package to develop NFT smart contracts.</p><pre>npm install - save-dev @openzeppelin/contracts</pre><p>Now, you can write the smart contract code for your NFT like the following example.</p><pre>pragma solidity ^0.7.3;<br>import &quot;@openzeppelin/contracts/token/ERC721/ERC721.sol&quot;;<br>contract MyCryptoNFT is ERC721 {<br> constructor(string memory name, string memory symbol)<br> ERC721(name, symbol)<br> {}<br>}</pre><p>One of the most basic things you must keep in mind while creating an NFT smart contract would refer to the understanding of the code example. The first highlight in a Solidity file would focus on declaring the version of the compiler. In the next step, you can work on importing the ERC-721 implementation or the NFT contract through the OpenZeppelin packages like in JavaScript.</p><p>If you want to deploy contracts associated with NFTs, you should have a fluent command of the Solidity programming language. Solidity has been designed as a popular contract-centric language, and different contracts could include members like variables and functions. The example code highlighted here includes the ‘constructor’ function, which would be called upon deploying the contract.</p><p>It is also important to note the contract’s inheritance of the ERC-721 properties and it transfers the “name” and “symbol” arguments to the ERC-721 contract. The arguments help in defining the name &amp; symbol for the NFT token you plan on creating. You can specify the values of “name” &amp; “symbol” according to your preference once you are ready for deployment.</p><p>Now, you have to use the following command to compile the Solidity contract for your NFT project on Hardhat.</p><pre>npx hardhat compile</pre><p>Users would receive some warnings for the compilation process. However, it is important to avoid them to stay away from any confusion in understanding how to create and deploy your NFT smart contracts. The result of the compilation process would show the “Compilation finished successfully” in the terminal. In addition, the compilation process also leads to the creation of “/artifacts” alongside the “/cache” directories. On top of it, you must note that you could utilize “abi” for the artifacts when you need interactions with the smart contract during the development of the front end.</p><p><strong><em>Testing the Contract</em></strong></p><p>The steps to create NFTs with Hardhat would also include a profound emphasis on contract testing. NFTs command significant financial value and utility across different use cases. Therefore, testing is obviously a critical highlight in the process of creating NFTs. You would need a few packages for the testing procedure, and you can install them with the following command.</p><pre>npm install - save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers</pre><p>The command can showcase many comprehensive highlights in the testing process. For example, you can identify the “ethereum-waffle” element as a testing framework that fits perfectly for use cases with smart contracts. On the other hand, “chai” serves as the assertion library in this case. The process of creating and deploying NFT contracts in this tutorial would use Mocha as well as Chai for writing tests in Waffle. Another important highlight in the test command would refer to “ethers.js,” which is the JavaScript SDK that helps in facilitating interactions with the Ethereum blockchain. You will also note that the remaining two packages in the test command are actually Hardhat plugins.</p><p>The next step in creating an NFT smart contract for the testing phase focuses on developing another directory named ‘test’ within the root directory. In addition, you should also create another file named, “test.js,” by using the following command.</p><pre>mkdir test &amp;&amp; cd test &amp;&amp; touch test.js</pre><p>Most important of all, you should ensure that “@nomiclabs/hardhat-ethers” package is available in the “hardhat.config.js.” You can use the following command to require “@nomiclabs/hardhat-ethers” to ensure its seamless availability.</p><pre>require (&quot;@nomiclabs/hardhat-ethers&quot;);</pre><p>Here is an example of a simple test code for your NFT smart contract project.</p><pre>const { expect } = require(&quot;chai&quot;);<br>describe(&quot;MyCryptoNFT&quot;, function () {<br> it(&quot;Should return the right name and symbol&quot;, async function () {<br> const MyCryptoNFT = await hre.ethers.getContractFactory(&quot;MyCryptoNFT&quot;);<br> const myCryptoNFT = await MyCryptoNFT.deploy(&quot;MyCryptoNFT&quot;, &quot;MCN&quot;);<br> await myCryptoNFT.deployed();<br> expect(await myCryptoNFT.name()).to.equal(&quot;MyCryptoNFT&quot;);<br> expect(await myCryptoNFT.symbol()).to.equal(&quot;MCN&quot;);<br> });<br>});</pre><p>The test code is an important highlight in the Hardhat NFT tutorial as it helps in deploying the contract to local Hardhat environment. In addition, the code also verifies whether the values of “name” &amp; “symbol” arguments are exactly the same as you expected.</p><p>Upon running the test, you can easily find whether your contract passes the test. It shows you a clear glimpse of your preparedness for the next step.</p><p><strong><em>Deploying the Contract</em></strong></p><p>The curiosity regarding the process to deploy contracts for NFTs is inevitable at this stage. Interestingly, you have many options for deploying your contract, including on a local mirrored implementation of the main network or the mainnet itself. You can also opt for deploying the contract to a testing network.</p><p>Let us assume the deployment process on a local in-memory instance for the Hardhat network to ensure simplicity. The local in-memory instance would run at startup by the default settings. You can start the deploy NFT contract process by creating another directory named “scripts” within the root directory. In addition, you must create the “deploy.js” directory in the new directory by using the following command.</p><pre>mkdir scripts &amp;&amp; cd scripts &amp;&amp; touch deploy.js</pre><p>However, it is important to note that you would need a deploy script for your NFT smart contract. Here is an example of the script for deploying the contract, where you can use constructor values.</p><pre>async function main() {<br> const MyCryptoNFT = await hre.ethers.getContractFactory(&quot;MyCryptoNFT&quot;);<br> const myCryptoNFT = await MyCryptoNFT.deploy(&quot;MyCryptoNFT&quot;, &quot;MCN&quot;);<br> await myCryptoNFT.deployed();<br> console.log(&quot;MyCryptoNFT deployed to:&quot;, myCryptoNFT.address);<br>}<br>main()<br> .then(() =&gt; process.exit(0))<br> .catch((error) =&gt; {<br> console.error(error);<br> process.exit(1);<br> });</pre><p>The process to create NFTs with Hardhat becomes easier with access to Hardhat tutorials. The tutorials can deliver a detailed impression of the functions of each line of code. In the case of the deploy script example, you can notice the “ContractFactory” element in the ethers.js. It is basically an abstraction that helps in deploying new smart contracts. The MyCryptoNFT included with ContractFactory actually works as a factor for different instances of the NFT contract.</p><p>Once you call deploy() on a ContractFactory, it will begin the deployment process along with a “Promise” resolution to the contract. It practically works as the object with a method for each smart contract function.</p><p>After verifying all the checklists for the deployment process, you can deploy the smart contract. You can deploy the NFT smart contract by returning back to the root of the project directory. Now, you can enter the following command in the command line terminal.</p><pre>npx hardhat run scripts/deploy.js</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=751926165e26" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/build-your-nft-on-posi-chain-751926165e26">Build your NFT on POSI Chain</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[POSI Chain Development Programming in Solidity]]></title>
            <link>https://medium.com/position-exchange/posi-chain-development-programming-in-solidity-898c6965c501?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/898c6965c501</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 04:10:12 GMT</pubDate>
            <atom:updated>2022-12-13T09:03:36.041Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5mXMtQffst4n214c9tFEQ.png" /></figure><p>Decentralized applications have evolved as the next important stage in the evolution of digital solutions. They have introduced the possibilities for many new solutions for use cases in different industries alongside encouraging the DeFi ecosystem. How is Solidity programming in Ethereum relevant for decentralized applications? As a matter of fact, most of the decentralized applications are developed on the open source and decentralized Ethereum blockchain.</p><p>Solidity serves as the programming language for decentralized applications, thereby validating its relationship with Ethereum. The following discussion offers a detailed guide on the basics of Solidity programming and its important concepts. You can also learn about the methods for getting started with Solidity programming with detailed steps.</p><p><strong>Definition of Solidity Programming</strong></p><p>One of the first things in any discussion about Solidity would obviously point at possible answers to “What is Solidity Programming?” and its significance. Decentralized applications are just like any other software or application, and they need a programming language to execute the code required for their system.</p><p>Solidity is the primary programming language for developing smart contracts on Ethereum blockchain. One of the important highlights of the Solidity Ethereum connection refers to the fact that Solidity is a contract-oriented language. As a result, smart contracts are accountable for storing the programming logic interacting with the blockchain.</p><p>The statically typed, high-level programming language features considerable similarities to popular languages such as Python, C++, and JavaScript. Most important of all, Solidity has been tailored for working on the Ethereum Virtual Machine or EVM, hosted on Ethereum nodes associated with the blockchain.</p><p>Basically, the importance of Solidity programming for Ethereum blockchain rests in the capability of developing industry-grade blockchain applications. It has been created by the Ethereum Network team, particularly for designing and creating smart contracts on blockchain platforms.</p><p>Solidity helps in creating smart contracts, which can ensure the implementation of business logic followed by generating a chain of transaction records within the blockchain system. The primary functionality of Solidity focuses on developing machine-level code alongside facilitating compilation of the code on Ethereum Virtual Machine or EVM. The design of Solidity is also similar to other programming languages, and it includes variables, classes, arithmetic operations, functions, string manipulation, and other concepts.</p><p><strong>Growth of Solidity Programming</strong></p><p>The growth of Solidity programming in Ethereum is another important highlight in an introduction to the smart contract development language. It is a comparatively new language growing rapidly with many conclusive improvements. Presently, it is the core language for developing smart contracts on Ethereum.</p><p>In addition, it also helps in smart programming contracts for other private blockchain networks on competing platforms such as Monax. Monax uses the Hyperledger Burrow blockchain, which relies on the Tendermint protocol for ensuring consensus. Furthermore, SWIFT has also developed a proof of concept which runs on the Burrow blockchain and leverages the Solidity programming language.</p><p><strong>Importance of EVM and Smart Contracts</strong></p><p>The two most critical highlights in the working of Solidity refer to EVM &amp; smart contracts, and they help in understanding Solidity programming better. First of all, let us learn about the role of EVM for Solidity. EVM or Ethereum Virtual Machine is an integral component for operations on Ethereum blockchain. It serves the runtime environment required for processing Ethereum smart contracts.</p><p>The core objective of EVM focuses on ensuring security from untrusted programs by leveraging a global network of public nodes. The most striking highlight of EVM is evident in the prevention of Denial of Service or DoS attacks. EVM ensures that the decentralized applications cannot access the state of each other while establishing suitable channels for communication without any interruptions.</p><p>The next important aspect you need to learn to Get Started with Solidity Programming would point at smart contracts. Smart contracts are an essential component of the Ethereum ecosystem. They are basically high-level programming codes that are subject to compilation into the EVM before posting on Ethereum blockchain for facilitating execution.</p><p>Smart contracts bring additional value advantages by enabling the options for conducting credible transactions without any third parties. Interestingly, transactions associated with smart contracts are irreversible in nature and provide considerable ease of traceability. Solidity is one of the programming languages used for creating and scripting smart contracts. Some of the other common programming languages used for smart contract development include Mutan, LLL, and Serpent.</p><p><strong>Solidity Data Types<br> </strong>The design of Solidity programming language features many similarities with popular high-level languages such as C++. Python and JavaScript. As an object-oriented programming language, the data types in Solidity are similar to other OOP languages. Some of the common data types supported in OOP languages you can find with Solidity include Boolean, Integer, String, Array, and Modifier.</p><ul><li>Boolean data type evaluates the conditions and returns ‘1’ upon verifying the truth of the condition or ‘0’ upon identifying a false condition.</li><li>The Integer data type in Solidity serves the functionality to sign or unsign integer values with Solidity. Integer data type also provides support for runtime exceptions as well as ‘uint256’ and the ‘uint8’ keywords.</li><li>The String data type in Solidity programming for Ethereum blockchain includes the use of single or double quotes for classifying data as a string.</li><li>Modifier is another crucial data type in Solidity programming language for its role before execution of the smart contract code. The modifier is responsible for verifying that a specific condition is rational before executing the code.</li><li>The syntax for Array data types in Solidity is similar to that of other OOP languages, especially with the support for single as well as multidimensional arrays.</li></ul><p>Another significant highlight in the design of Solidity refers to the facility for mapping data structures with hash values, enums, and operators for returning values in particular storage locations.</p><p><strong>Best Way to Start Using Solidity</strong></p><p>The basics of Solidity in Ethereum can encourage anyone to start designing and creating smart contracts on Solidity. However, it is also important to learn the best practices for getting started with Solidity programming. Most important of all, you need to start with the basic approaches to interact with Solidity. Here are some of the interesting examples of basic code in Solidity programming, along with their significance.</p><p><strong>Version Pragma</strong></p><p>The guide on leveraging Solidity programming in Ethereum would obviously refer to version pragmas and their benefits. Pragmas in Solidity basically serve the directives to the compiler regarding methods for managing code. Therefore, it is important to add a ‘version pragma’ at the beginning of every line of source code in the Solidity programming language.</p><p>The version pragma offers specifications of the version of Solidity compiler suitable for the code. The version pragma is an important highlight for EVM &amp; smart contracts functionality in Solidity. It helps in preventing incompatibility of the code with future versions of the compiler, which might feature significant changes.</p><p><strong>Contract Keyword</strong></p><p>The “Contract” keyword is another important requirement to get started with Solidity programming and its functions. The keyword helps in declaring a contract which would facilitate encapsulation for the code.</p><p><strong>Declaring State Variables</strong></p><p>The state variables are an important class of variables in Solidity programming. State variables on Ethereum blockchain go into permanent maintenance in the smart contract storage. You can declare a state variable named ‘var1’ as a uint type with the line “uint public var1”. The var1 state variable, in this case, would be an unsigned 256-bit integer. It is important to know that declaring state variables is more like introducing additional slots in a database.</p><p><strong>Declaring Functions</strong></p><p>Another notable basic practice in guides on “What is Solidity programming?” would refer to declaring functions. Take the following example of Solidity programming code for declaring a function</p><pre>function set(uint a, uint b) public{}<br>function get() public views return (uint){}</pre><p>In this example, you can notice the function termed “set.” It is an access modifier type public function and uses variables ‘a’ and ‘b’ with the uint data type as parameters. The example of a simple, smart contract like this would focus on updating the value of var1 and var2. At the same time, users who can access Ethereum blockchain could use the “set” function for modifying the values of var1 and var2. Furthermore, the addition of the values of var1 and var2 variables could help in calculating the variable sum. In addition, the smart contract would also help in retrieving and printing the value of the state variable sum by leveraging the “get” function.</p><p><strong>Executing Code in Solidity Programming</strong></p><p>Your knowledge of Solidity programming for Ethereum blockchain also depends on how well you can familiarize yourself with the execution of Solidity programs. You can find two distinct methods for executing a Solidity program, such as through online and offline modes. Let us take a look at the methods for executing a Solidity program in detail.</p><p><strong>Offline Mode</strong></p><p>The first choice for operating Solidity EVM smart contracts refers to the offline mode of operations. However, it is important to follow three important conditions before you try executing a Solidity smart contract in offline mode. The first important condition for operating a Solidity smart contract in offline mode is to download and install node.js. You must also install Truffle and Ganache-CLI as the prerequisites for operating smart contracts on Solidity in offline mode. How do you execute Solidity smart contracts in offline mode? Here are the important steps you should follow for executing Solidity smart contract code in an offline state.</p><ul><li>Develop a Truffle project and establish a reliable development network for the same.</li><li>Work on developing and deploying a smart contract for the project.</li><li>Engage with the smart contract through different interactions from the Truffle dashboard.</li><li>Develop tests for evaluation of the primary features of Solidity.</li></ul><p><strong>Online Mode</strong></p><p>The process for using Solidity programming in Ethereum also offers the flexibility for executing code in online environments. Remix IDE serves as the best choice for anyone interested in compiling and running Solidity smart contracts.</p><p><strong>Benefits of Solidity Programming</strong></p><p>The feasibility of Solidity programming for Ethereum blockchain depends a lot on the value advantages it delivers. Other than the basic functionalities, Solidity offers many interesting features which verify that it is a better option than many Ethereum-based programming languages. The first benefit of Solidity programming refers to the support for complicated data types and member variables alongside the fundamental data types.</p><p>Furthermore, Solidity programming language also offers an Application Binary Interface or ABI for enabling data type safety. The ABI could help in the quick identification of errors when the compiler recognizes any data type mismatch for specific variables. Another popular highlight of Solidity programming in Ethereum points towards the effect of ‘Natural Language Specification.’ Solidity leverages the Natural Language Specification for transforming user-centric specifications into a language that is comprehensible to machines.</p><p>The other critical advantages of using Solidity to build decentralized applications and smart contracts would include the following,</p><ul><li>Easy access to object-oriented attributes in smart contracts, such as multi-level inheritance traits.</li><li>Solidity supports multiple variants of supporting roles by leveraging the Application Binary Interface or ABI.</li><li>The easier syntax helps beginners in learning the fundamentals of smart contracts and blockchain development.</li><li>Development of smart contracts on Solidity programming language would help in driving secure and trustworthy processes for various platforms dealing with agreements between two parties.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=898c6965c501" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/posi-chain-development-programming-in-solidity-898c6965c501">POSI Chain Development Programming in Solidity</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Position DEX 2.0: Incentivized Testnet]]></title>
            <link>https://medium.com/position-exchange/position-dex-2-0-incentivized-testnet-b73fde545e68?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/b73fde545e68</guid>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[decentralized-exchange]]></category>
            <category><![CDATA[decentralized-finance]]></category>
            <category><![CDATA[derivatives-exchange]]></category>
            <dc:creator><![CDATA[Alicia Position]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 16:58:49 GMT</pubDate>
            <atom:updated>2022-12-20T10:04:23.935Z</atom:updated>
            <content:encoded><![CDATA[<p>To kick off the Incentivized Testnet program for DEX 2.0, which will be held at 12:00 UTC from December 7 to December 28, Position Exchange wants to spread the joy with a prize pool of up to $20,000 (in POSI).</p><p>The reward will be distributed at the end of the program, from December 30 to January 12.</p><h3>List of activities</h3><p>The Incentivized Testnet program consists of 4 activities regarding Trading competition, Bug hunting, Video creation, and Social media referral specified as follows:</p><h3><strong>Trading Competition</strong></h3><p>The total prize pool is $4,000 for the trading competition. To join this program, participants have to trade Position Exchange Spot Trading/Swap. Each participant will be granted 10k BUSDT on the Testnet to start trading/swap.</p><p><strong>How to claim the BUSDT Test?</strong></p><ol><li>Navigate to <a href="https://beta.position.exchange/trade/BTCT/BUSDT">Beta Position Exchange</a></li><li>Click “Connect your wallet” -&gt; Choose the BNB Smart Chain Testnet</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vJPVq9Xgjeu6w2o9RCfPg.png" /></figure><p>3. Choose your Wallet</p><p>4. Scroll a bit, you should see the BUSDT claimable, just click “Claim”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KDA4COYz-C5Q1MmuVAxfPw.png" /></figure><ul><li>Note: Please make sure that your wallet has enough BNB Test before you attempt to claim the BUSDT.</li></ul><p>Then now you can use BUSDT to Trade, Swap or Add Liquidity in order to get ranked on the leaderboards.</p><p>There are two leaderboards for the trading competition:</p><p><strong>Trading Leaderboard</strong></p><p><strong>Rules:</strong></p><ul><li>Base on profit and loss ratio (PnL)</li><li>During the competition, the leaderboard will be continuously updated in real-time, based on the player’s PnL in BUSDT.</li><li>At the end of the competition, the participant’s rank will depend on the PnL converted to in BUSDT. This means that before the end of the competition, players must convert all assets on the testnet into BUSDT, as BUSDT is the only asset recognized on the leaderboard. After the competition, the player’s rank will be converted into points.</li><li>The Profit &amp; Loss (PnL) for each user is calculated by taking their latest BUSDT balance + fees earned from liquidity + total liquidity (calculated in BUSDT) — their initial balance (10k BUSDT)</li><li>PnL will be calculated every 10 minutes.</li></ul><p><strong>Point calculation:</strong></p><ul><li>1st place: 50 points</li><li>2nd place: 35 points</li><li>3rd place: 30 points</li><li>4–50: 15 points</li><li>50–150: 10 points</li><li>100–300: 5 points</li><li>300+: 2 points</li></ul><p><strong>Reward:</strong></p><p>The winners are the ones ranking in the top 300 of the leaderboard, and get a share of $2000.</p><p>The reward will be divided based on winners’ rankings as follows:</p><ul><li>1st place: $300</li><li>2nd place: $150</li><li>3rd place: $100</li><li>4–300: $5 each</li></ul><h4>Liquidity Leaderboard</h4><p><strong>Rules:</strong></p><p>Participants will be ranked on this leaderboard based on the most recent liquidity volumes. The higher your liquidity volume, the higher you’ll rank on the leaderboard. Your total liquidity volume will be calculated across all BUSDT (BUSD Test) pairs. User’s liquidity will be synced every ~10 minutes.</p><p><strong>Point calculation:</strong></p><ul><li>1st place: 50 points</li><li>2nd place: 35 points</li><li>3rd place: 30 points</li><li>4–50: 15 points</li><li>50–150: 10 points</li><li>100–300: 5 points</li><li>300+: 2 points</li></ul><p><strong>Bonus</strong></p><p>Participants will receive 2 points for the first time creating a new liquidity pair.</p><p><strong>Reward:</strong></p><p>The winners are the ones ranking in the top 300 of the leaderboard, and get a share of $2000.</p><p>The reward will be divided based on winners’ rankings as follows:</p><ul><li>1st place: $300</li><li>2nd place: $150</li><li>3rd place: $100</li><li>4–300: $5 each</li></ul><h3><strong>Bug hunting</strong></h3><p>The total prize pool is $12,000.</p><h4>Bug reporting process</h4><ul><li>Find bugs on Position DEX 2.0 Testnet and report them by filling in <a href="https://forms.gle/3p8ZRbfQc2La52vv5">google form</a> with their portraying image/video as evidence.</li><li>Our Quality Control team checks and confirms if they are valid bugs.</li><li>If the bug is valid, the reporter will receive the reward based on the criteria specified below.</li></ul><h4>Bug classification criteria</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*iG51i_N2esBMArfTU8vItQ.png" /></figure><h4>Note</h4><ul><li>In cases of late reporting or if the bug was fixed before reporting: the bug will be considered invalid.</li><li>In cases where users report a bug that has been found, no reward will be given.</li><li>The list of errors will be published on the Position Exchange Testnet and on other official channels.</li><li>Follow Position Exchange’s official channels to get updated.</li><li>Position Exchange reserves the right to change these terms and conditions at any time without prior notice.</li></ul><h3><strong>Video creation</strong></h3><ul><li>The total prize pool is $3,000.</li><li>Create a video reviewing/sharing about Position DEX and post it on your social media channels with hashtag #PositionDEX #TheTrueDEX (Video length: from a minimum of 1 minute to a maximum of 4 minutes)</li><li>Fill out <a href="https://forms.gle/DbZvYEB1JMgy5fCU7">the Google form</a> with the video link from your social media channels.</li></ul><p>Winners are those who have videos in the top 200 with the most likes, shares, and comments. They will be rewarded based on their ranking as follows:</p><ul><li>1st place: $500</li><li>2nd place: $300</li><li>3rd place: $200</li><li>4th-200th: $10 each</li></ul><p><strong>Note:</strong></p><p>A video is valid when:</p><ul><li>Publicly uploaded on social networks along with hashtag #PositionDEX #TheTrueDEX</li><li>Have a minimum of 20 views and a minimum of 20 interactions (interactions = likes + shares + comments).</li></ul><h3><strong>Social Media Referral</strong></h3><p>The total prize pool is $1,000 for the social media referral. In this activity, participants have to refer their friends to join the campaign on social media channels.</p><p>200 participants with the most referees joining the Incentivized campaign will be rewarded based on their ranking as follows:</p><ul><li>1st place: $50</li><li>2nd place: $30</li><li>3rd place: $20</li><li>4–200: $5 each</li></ul><p><strong>Note:</strong></p><ul><li>This referral is for Discord only.</li><li>You only need to invite your friends to join the Position Exchange community on Discord. The more friends you invite, the higher your chances of winning.</li></ul><p>Join now: <a href="https://discord.gg/position-exchange">https://discord.gg/position-exchange</a></p><p>Happy Trading!</p><p>Position Exchange Team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b73fde545e68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/position-dex-2-0-incentivized-testnet-b73fde545e68">Position DEX 2.0: Incentivized Testnet</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to design back-end and front-end DApp on POSIChain (Part II)]]></title>
            <link>https://medium.com/position-exchange/how-to-design-back-end-and-front-end-dapp-on-posichain-part-ii-75e513980486?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/75e513980486</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Sat, 03 Dec 2022 05:14:03 GMT</pubDate>
            <atom:updated>2022-12-03T05:14:03.408Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Design front-end DApp</strong></p><p><strong>Components of a dApp</strong></p><p>The components of a dApp can be split into three different categories: smart contracts, the front-end logic and user interface, and data storage.</p><ul><li><strong>Smart Contracts:</strong> Smart contracts store the business logic for a dApp along with the state of the application. This is the biggest difference between a dApp and a traditional web application, and what gives a dApp all the benefits mentioned above.</li><li><strong>Frontend/User Interface: </strong>While the backend logic of a dApp requires a developer to write smart contract code to be deployed on a blockchain, the frontend or client side of a dApp can use standard web technologies such as HTML and JavaScript. This allows developers to use familiar tools, libraries, and frameworks. The client-side user interface is usually linked to the smart contracts via client-side libraries such as Web3.js or Ethers.js, which are bundled with the frontend resources and sent to the browser together with the UI. Interactions with smart contracts such as signing messages and sending transactions to the smart contracts are usually conducted via a browser-based Web3 wallet, such as MetaMask.</li><li><strong>Data Storage:</strong> Most applications need to store data, but due to the distributed nature of blockchains, storing large amounts of data on-chain is not feasible, and can get very expensive. This is why many dApps that need to store data make use of off-chain data storage services such as IPFS or Filecoin, leaving the blockchain to store crucial business logic and state only. You can also use traditional cloud-based storage services. However, many developers choose decentralized options to maintain and extend the trust-minimized properties that a blockchain-powered dApp provides.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0aOzuzQMAmbaL4gr" /></figure><p><strong>Creating the Frontend Application</strong></p><p>The frontend logic and user interface of your dApp can be built using a wide variety of different frameworks.</p><p>React is one of the most popular JavaScript libraries for building feature-rich web user interfaces, and is therefore used by a lot of Web3 dApps. In addition to this, Ethers.js is a JavaScript library for connecting to and interacting with EVM-based blockchains and smart contracts. When you combine the two, you have a sensible starting point for building out the frontend of your dApp.</p><p>In this section, we’ll create a new React application <em>(ChainLink Dapp Price-Feeds)</em> to fetch the last price from ChainLink ( you can read more about ChainLink price feed <a href="https://docs.chain.link/data-feeds/">here</a>) using the create-react-app boilerplate generator. Then we’ll introduce some off-chain logic that uses Ethers.js to connect the user interface with the deployed smart contract, giving us a full end-to-end dApp.</p><p><strong>Creating the React Application:</strong></p><p>The first step for creating the frontend is to install and implement the create-react-app boilerplate project, then modify it to suit our dApp. The first step is to install the library into a new “frontend” folder:</p><pre>cd .. <br>npx create-react-app frontend</pre><p>Once this has completed, you should see a new “frontend” folder in your project with all the associated React code. Expand the “frontend” folder and perform the following actions:</p><ul><li>Delete /src/setupTests.js</li><li>Delete /src/ReportWebVitals.js</li><li>Delete /src/logo.svg</li><li>Delete /src/App.test.js</li><li>Delete /src/App.css</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*t19rKIif32Xw3rFb" /></figure><p>We’re now almost ready to start modifying the React application code. But first, be sure to install the libraries for Bootstrap and Ethers.js. Bootstrap is a popular frontend CSS framework that comes with React-friendly UI widgets with CSS styling applied, while Ethers.js allows us to connect our front-end to deployed smart contracts on the blockchain. Ensure these commands are run from within the “frontend” folder.</p><pre>cd frontend <br>npm install bootstrap <br>npm install ethers</pre><p>Now we’re ready to modify the React application code. Open up the App.js file in the /src/ folder and remove the contents. We will start building it from scratch.</p><p>The first step is to tell the application we want to use React (including useEffect and useState libraries) and Ethers.js:</p><pre>import React, { useEffect, useState } from &#39;react&#39;; <br>import { ethers } from &quot;ethers&quot;;</pre><p>Next, create a function called “App” and export it:</p><pre>function App() { } <br>export default App;</pre><p>Now we’ll start filling out the contents of the “App” function. Add the following code to it. The code does the following:</p><ul><li>Set up the storedPrice and setStoresPrice react hooks.</li><li>Creates a connection to your MetaMask Web3 wallet.</li><li>Sets the deployed smart contract address and ABI. Both are required by Ethers.js for us to interact with the deployed smart contract.</li><li>The smart contract address can be obtained from the deployment step earlier in this guide. Plug this value in place of the REPLACE_WITH_DEPLOYED_CONTRACT_ADDRESS string.</li><li>The smart contract ABI can be obtained from the /backend/artifacts/contracts/PriceConsumerV3.json file, in the abi element. You can use a code minifier to format it in a better way for storing in your application.</li></ul><pre>const [storedPrice, setStoredPrice] = useState(&#39;&#39;); <br>const provider = new ethers.providers.Web3Provider(window.ethereum) <br>const signer = provider.getSigner();<br>const contractAddress = &lt;REPLACE_WITH_DEPLOYED_CONTRACT_ADDRESS&gt;&#39;&#39;; const ABI = &#39;[{&quot;inputs&quot;:[],&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;type&quot;:&quot;constructor&quot;},{&quot;inputs&quot;:[],&quot;name&quot;:&quot;getLatestPrice&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;int256&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;int256&quot;}],&quot;stateMutability&quot;:&quot;view&quot;,&quot;type&quot;:&quot;function&quot;},{&quot;inputs&quot;:[],&quot;name&quot;:&quot;storeLatestPrice&quot;,&quot;outputs&quot;:[],&quot;stateMutability&quot;:&quot;nonpayable&quot;,&quot;type&quot;:&quot;function&quot;},{&quot;inputs&quot;:[],&quot;name&quot;:&quot;storedPrice&quot;,&quot;outputs&quot;:[{&quot;internalType&quot;:&quot;int256&quot;,&quot;name&quot;:&quot;&quot;,&quot;type&quot;:&quot;int256&quot;}],&quot;stateMutability&quot;:&quot;view&quot;,&quot;type&quot;:&quot;function&quot;}]&#39;;<br>const contract = new ethers.Contract(contractAddress, ABI, signer);</pre><p>Now we’ll create two functions to be used in our application:</p><ul><li>getStoredPrice will connect to the deployed smart contract and obtain the current value of the storedPrice() getter function.</li><li>setNewPrice will call the deployed smart contract’s storeLatestPrice function, wait for the transaction to complete, then call the getStoredPrice function to retrieve the stored price in the smart contract.</li></ul><p>We’ll also add a call to getStoredPrice in our App function so that it will initially call the getter function on page load:</p><pre>const getStoredPrice = async () =&gt; {<br> try {<br> const contractPrice = await contract.storedPrice();<br> setStoredPrice(parseInt(contractPrice) / 100000000);<br> <br> } catch (error) {<br> console.log(&quot;getStoredPrice Error: &quot;, error);<br> }<br> }<br> async function updateNewPrice() {<br> try {<br> const transaction = await contract.storeLatestPrice();<br> await transaction.wait();<br> await getStoredPrice();<br> } catch (error) {<br> console.log(&quot;updateNewPrice Error: &quot;, error);<br> }<br> }<br> getStoredPrice()<br> .catch(console.error)</pre><p>The final step in creating the frontend is for your application to return the JSX code for the browser to render. Paste in the following code at the bottom of your App function, under the <strong>getStorePrice</strong>() call. This code does the following:</p><ul><li>Returns a simple two-column grid layout.</li><li>The first column contains the currently stored ETH/USD price in the smart contract.</li><li>The second column contains a button that the user can use to interact with the smart contract and update the stored price. Pressing the button calls the setNewPrice function above.</li></ul><pre>return (<br> &lt;div className=&quot;container&quot;&gt;<br> &lt;div className=&quot;row mt-5&quot;&gt;<br> &lt;div className=&quot;col&quot;&gt;<br> &lt;h3&gt;Stored Price&lt;/h3&gt;<br> &lt;p&gt;Stored ETH/USD Price: {storedPrice}&lt;/p&gt;<br> &lt;/div&gt;<br> &lt;div className=&quot;col&quot;&gt;<br> &lt;h3&gt;Update Price&lt;/h3&gt;<br> &lt;button type=&quot;submit&quot; className=&quot;btn btn-dark&quot; <br>onClick={updateNewPrice}&gt;Update&lt;/button&gt;<br> &lt;/div&gt;<br> &lt;/div&gt;<br> &lt;/div&gt;<br> );</pre><p>Your application is now ready. If required, you can compare your code to the completed example to ensure you’ve done everything correctly. Now you’re ready to run your dApp.</p><p><strong>Running Your dApp</strong></p><p>After ensuring you have all the files saved, start your dApp locally by running the following command from the frontend folder:</p><pre>npm run start</pre><p>After the application loads, a new window should appear in your browser displaying your dApp user interface. You should also receive a popup notification from MetaMask asking you to connect your wallet to the application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75e513980486" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/how-to-design-back-end-and-front-end-dapp-on-posichain-part-ii-75e513980486">How to design back-end and front-end DApp on POSIChain (Part II)</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Position Exchange — NovemberWrap-up and December Strategies]]></title>
            <link>https://medium.com/position-exchange/position-exchange-novemberwrap-up-and-december-strategies-2fac85cc4e8f?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/2fac85cc4e8f</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 13:34:48 GMT</pubDate>
            <atom:updated>2022-12-01T13:34:48.393Z</atom:updated>
            <content:encoded><![CDATA[<h3>Position Exchange — NovemberWrap-up and December Strategies</h3><p><em>It’s time to look back at what the Position Exchange team achieved in November. With all effort, the development team is about to accomplish our goals this month. We’re on track with Phrase IV in regards towards building a completely decentralized and community driven project using innovative instruments for value boosting within DeFi ecosystem as well as helping people reach the true “ Freedom Of Money”. In an effort to make Position Exchange the best platform in DeFi, all of our teams were 100% focused on building products and working 12 hours or more per day. We’ve made significant milestones this past November with 80% completion for UI/backend development, 100% for smart contract on DEX 2.0 and 85% done with implementing DPTP 2.0. The team also made 4606+ pushes/7500+ commits which are vital steps in bringing next generation decentralized finance products forward!</em></p><h3>November Wrapback</h3><p>In November, the Position Exchange team endeavored to bring the best convenience to our beloved users. Let’s recall our achievements in November and cheer for the development team’s contribution of working hard.</p><h3>Contribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1tUPKaMiw8mj9akH" /></figure><p>In November, development teams consisting of 34 contributors completed 4,606 pushes and 75,255 commits. This number is 3 times more than the commits they did in October.</p><p>This November, we completed 80% of the DEX 2.0 and 85% of the DPTP 2.0 mainnet release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ek7uj77RX3aWE5SL_etaWA.png" /><figcaption>DEX 2.0 is upon us!</figcaption></figure><p>Following the goal in November, we are excited to be able to release a public testnet version in a couple of days. Stay tuned for more updates!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wlmQg9pgpts76jyKd1lcIg.png" /><figcaption>New DPTP Interface Coming (Still under development)</figcaption></figure><h3>DPTP Incentive Testnet Increased to $30,000</h3><p>The DPTP Testnet Video Campaign was successfully organized from the 18th to the 27th of November with a reward of $1,000.</p><p>Our DPTP Incentivized Testnet Program has attracted more than 10,000 participants within 3 weeks.</p><p>Especially, users who joined DPTP Incentivized Testnet Program have gained a great ROI:</p><p>- Round1: Top 1 gained 1,310% from DPTP Testnet</p><p>- Round 2: Top 1 gained 1,280%</p><p>- Round 3: Top 1 gained 1,760%</p><p>That demonstrates how potential users can leverage their funds compared to other DeFi investments.</p><p>The program will continue in the next month with multiple attractive rewards. Join our <a href="https://discord.com/invite/position-exchange?event=1039045952096436264">Discord</a> now and do not miss the treasures.</p><h3>Social media</h3><h4>CoinmarketCap</h4><p>Position Exchange on <a href="https://coinmarketcap.com/">CoinmarketCap</a> becomes one of the favorite informative channels while updating information and reference of not only Position Exchange features but also trading and blockchain knowledge.</p><p>To prove that, Position Exchange reached:</p><ul><li>Top 3 Projects with the most article views growth on Oct 28th and Nov 03rd</li><li>Top 5 Articles with highest views growth on Nov 04th and Nov 20th</li></ul><h4>Twitter</h4><p>On Twitter, <a href="https://twitter.com/PositionEx">Position Exchange</a> has been continuously growing with numbers of 41,000 impressions and 30,000 mentions</p><h4>Discord</h4><p>Our <a href="https://discord.com/invite/position-exchange?event=1039045952096436264">Discord</a> reached 32,100 members within 1 month</p><h3>Plan for December</h3><p>Development teams are hard at work preparing for the release of our new Decentralized Exchange 2.0 and Decentralized Perpetual Trading Protocol 2.0 in December 2022. All teams will be put on alert as we aim to have it live by this deadline, though there’s no guarantee that it can happen before time since markets constantly change things up last minute sometimes without warning — but don’t worry because we have planned ahead! We’re going to make sure everything goes smoothly with an awesome launching strategy aiming toward achieving millions of dollars worth of success. Get ready for the explosion!</p><h3>DEX2.0</h3><p>Outstanding features DEX Ver 2.0 will bring about</p><ul><li>Provide the best price among DEXs</li><li>Lower slippage than traditional AMM DEXs</li><li>Higher liquidity than traditional AMM DEXs</li><li>Supports Orderbook and Limit orders can be placed On-Chain</li><li>Restrict Sandwich Attack</li></ul><h3>DPTP 2.0</h3><p>There are excellent benefits that DPTP 2.0 will bring about:</p><ul><li>Lower gas fee.</li><li>Lower operating costs.</li><li>New Interface</li><li>Creating a futures exchange that enables users to profit quickly and leverage their investment for greater gains.</li><li>Constructing an on-chain public exchange that is transparent and allows users to check all of their transactions.</li><li>Granting users the ability to place orders directly from their DeFi wallets. We do not hold your funds.</li></ul><h3>Conclusion</h3><p>Even though it takes a lot of effort, we are looking forward to launching DEX and DPTP Ver 2.0 to the market as planned in December. Position Exchange promises not to disappoint you regarding these two anticipated improvements.</p><p>We want to say thank you for your patience beside us while we are trying our best and we hope to receive support from all of you henceforward.</p><p>Keep building!</p><p>Position Exchange Team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fac85cc4e8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/position-exchange-novemberwrap-up-and-december-strategies-2fac85cc4e8f">Position Exchange — NovemberWrap-up and December Strategies</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to design back-end and front-end DApp on POSIChain (Part I)]]></title>
            <link>https://medium.com/position-exchange/how-to-design-back-end-and-front-end-dapp-on-posichain-eff932167529?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/eff932167529</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 08:10:21 GMT</pubDate>
            <atom:updated>2022-11-21T08:35:58.513Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>POSIChain introduction</strong></p><p>POSI Chain is a decentralized blockchain with high security and scalability, built as an open network of nodes governed by Posination. It provides 2-second transaction finality with lower fees.</p><p>POSI Chain is your open platform for assets, collectibles, identity, and governance. Our secure bridge offers cross-chain asset that transfers with BNB Chain and is expected to become a bridging protocol among several leading blockchains such as Ethereum, Polygon, and Avalanche in the near future.</p><p><strong>Decentralized Applications on POSIChain</strong></p><p>These secure and unchangeable programs running on a decentralized network (POSIChain) in combination with traditional front-end and back-end technologies are what we call decentralized applications (DApps) today. Though some of them can be semi-centralized, a major part of activities in the truly decentralized application should happen out of a central party’s control.</p><p>However, as those networks are not scalable today, we combine different approaches to achieve the maximum decentralization level for our applications. The “traditional” back-end as we know isn’t going anywhere. For instance:</p><ul><li>We use the back-end to host the front-end for a decentralized application.</li><li>We use back-end for integrations with any other existing technologies and services. In reality, world-class applications can not live in an isolated environment.</li><li>We use back-end to store and process anything big enough for a decentralized network (blockchain in particular).</li><li>Not to mention, IPFS and similar storage layers can not guarantee the accessibility of files, hence we can not rely on them without hosting the files ourselves either. In other words, there’s always a need for a dedicated running server.</li></ul><p><strong>Decentralized Applications back-end</strong></p><p>Here I want to highlight some of the points which arise most of the questions, namely:</p><ul><li>Listening to network events and reading data from the POSIChain and storage in the database</li><li>Publishing transactions &amp; how to do it securely</li></ul><p><strong>Listening to Network Events</strong></p><p>In POSIChain, as well as in other decentralized networks, the concept of smart contract events (or event logs, or just logs) allows off-chain applications to be aware of what is happening in the blockchain. These events can be created by smart contract developers at any point in the smart contract code.</p><p>For example, within the well-known PRC20 token standard, each token transfer has to log the Transfer event, thus letting off-chain applications know that there is a token transfer happening. By “listening” to these events we can perform any (re)actions. For instance, some mobile crypto-wallets send you a push/email notification when tokens are transferred to your address.</p><p>In fact, there’s no reliable solution for listening to network events out of the box. Different libraries allow you to track/listen to events, however, there are many cases when something can go wrong, resulting in losing or unprocessed events. To avoid losing events, we have to build a custom back-end, which will maintain the events sync process.</p><p>Depending on your needs, the implementation can vary. But to put you in a picture here is one of the options for how you can build reliable POSIChain events delivery in terms of microservice architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/0*3lArvRDaWHaQbbdg" /></figure><p><em>Reliable delivery of POSIChain events to all back-end services</em></p><p>These components work in the following way:</p><ul><li>Events sync back-end service constantly polls the network, trying to retrieve new events. Once there are some new events available, it sends these events to the message bus. Upon successful event submission to the message bus, as for blockchain, we can save the last event’s block in order to request new events from this block next time. Keep in mind that retrieving too many events at once may result in requests failed, so you have to limit the number of events/blocks you request from the network.</li><li>The message bus (for example, Rabbit MQ) routes the event to every queue which was set up individually for each back-end service.</li><li>When the message-bus consumes service data successfully, the logic code of the business DApp will handle data. After the data is resolved, we will store it in the database. The database can be used: MySql, PostgreSql, Mongo, Graphql. The database service need to provide enough performance, storage capacity,…</li></ul><p>As a result, each back-end service only gets the events it needs. Moreover, the message bus guarantees the delivery of all events once they are published to it. Of course, you can use something else instead of the message bus: HTTP callbacks, sockets, etc. In this case, you’ll need to figure out how to guarantee callback delivery yourself: manage exponential/custom callback retries, implement custom monitoring and so on.</p><p><strong>Publishing Transactions</strong></p><p>There are a couple of steps we have to perform in order to publish a transaction to the decentralized network:</p><ul><li>Preparing the transaction</li></ul><p>Along with transaction data, this step implies requesting the network state in order to find out whether this transaction is valid and is going to be mined (gas estimation in POSIChain) and the transaction’s sequential number (nonce in POSIChain). Some of the libraries try to do this under the hood, however, these steps are important.</p><ul><li>Signing the transaction</li></ul><p>This step implies the usage of the private key. Most likely, here you’ll want to embed the custom private key assembly solution (for instance).</p><ul><li>Publishing and republishing the transaction</li></ul><p>One of the key points here is that your published transaction always has a chance to get lost or dropped from the decentralized network. For example, in POSIChain, the published transaction can be dropped if the network’s gas price suddenly increases. In this case, you have to republish the transaction. Moreover, you may want to republish the transaction with other parameters (at least with a higher gas price) in order to get it mined as soon as possible. Thus, republishing the transaction can imply re-signing it, if the replacement transaction wasn’t pre-signed before (with different parameters).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ufsviO_dwb80jf6N" /></figure><p><em>The above points regarding POSIChain transaction publishing visualized</em></p><p>By utilising the above approaches you can end up building something similar to the thing which is presented in the sequence diagram below. In this particular sequence diagram, I demonstrate (in general!) how the blockchain recurring billing works (there’s more in a linked article):</p><p>The user executes a function in a smart contract, which ultimately allows the back-end to perform a successful charge transaction.</p><p>A back-end service responsible for a particular task listens to the event of charge allowance and publishes a charge transaction.</p><p>Once the charge transaction is mined, this back-end service responsible for a particular task receives an event from the POSIChain network and performs some logic (including setting the next charge date).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eff932167529" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/how-to-design-back-end-and-front-end-dapp-on-posichain-eff932167529">How to design back-end and front-end DApp on POSIChain (Part I)</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Issue Token on POSI Chain]]></title>
            <link>https://medium.com/position-exchange/how-to-issue-token-on-posi-chain-17deb299b131?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/17deb299b131</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 15:38:49 GMT</pubDate>
            <atom:updated>2022-11-07T15:38:49.522Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Before we start</strong></h4><p>You will need some of the below components to build your own token:</p><ul><li>POSI Address (POSI Chain Network)</li><li>Some POSI native coins (POSI Chain Network)</li><li>A text editor (I.e. Sublime / Atom, RemixEthereum)</li><li>Solidity contract knowledge</li></ul><h4><strong>POSI Chain Testnet</strong></h4><p>We have created our own faucet where you can faucet POSI Testnet. Just access <a href="https://faucet.posichain.org/">https://faucet.POSIChain.org/</a> and put your POSI Chain address and our smart contract will send you some. There are many ways to issue your token on POSI Chain.</p><h4><strong>Issue your token</strong></h4><p>You can use remix, hardhat, or truffle,…to issue your token.</p><p>In this tutorial, we will show you how to issue a token with Remix Ethereum.</p><ol><li>Go to <a href="https://remix.ethereum.org/">https://remix.ethereum.org/</a> website and create a file solidity in the contract directory with the name of your token. For example, I put my token name as <strong><em>HuskyToken, </em></strong>so my file is <strong><em>HuskyToken.sol</em></strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*M0gPlL1EBaTmsQ9L" /></figure><p>2. In the next step, we will code your token. Contracts called token run on EVM have standard EIP-20( ERC20)(<a href="https://eips.ethereum.org/EIPS/eip-20">link</a>). So you must base your token on the type of ERC20. In this <strong>HuskyToken, </strong>I used a base token from <strong>OpenZeppelin (</strong>this base is open-source and free).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/0*rZ-b2h4OCmn-alNy" /></figure><p>You can see in <strong><em>line-5</em></strong>, I imported from open source GitHub. Now, you choose a name, and symbol of your token and replace it. You may change the name <strong><em>HuskyToken</em></strong> token in <strong><em>line-9</em></strong> and <strong><em>line-14</em></strong> with your name, after that, replace the symbol <strong><em>HT</em></strong> with the symbol of your token</p><p>3. In this step, I will show you how to compile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hanMtNxiX90xhCfX" /></figure><p>Select the compiler greater than or equal to the compiled version of your code (<strong><em>line-2)</em></strong>. And press the button Compile.</p><p>4. After compiling, you will need to deploy your token on POSI Chain. The mainnet and testnet of POSI Chain are the same, nothing to differentiate between them. But in testnet you can faucet POSI testnet and can try millions of times with millions of contracts for testing before running your main contract on mainnet.<br>First thing, you switch the network on Metamask to POSI Chain testnet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/0*Y_d_n4tjRsZLqdDy" /></figure><p>In Remix, you must inject an environment from Metamask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*mPxgyeJTnxoI01jy" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/0*TdyCkguPFE4AMO6h" /></figure><p>Now, let’s deploy your token. Just press the button <strong><em>Deploy </em></strong>and confirm the transaction in the metamask popup. Wait a few seconds, you can see your token address</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/0*kxEkdAGJzWNA84f6" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/0*nD29qPkx3N7MLeKq" /></figure><p>Congratulations! You have your token on POSI Chain. Try many times on Testnet before deploying your token on POSI Chain mainnet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17deb299b131" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/how-to-issue-token-on-posi-chain-17deb299b131">How to Issue Token on POSI Chain</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Position Exchange’s Decentralized Perpetual Trading Protocol — Incentivized Testnet Program]]></title>
            <link>https://medium.com/position-exchange/position-exchanges-decentralized-perpetual-trading-protocol-incentivized-testnet-program-ab7686a7c5e3?source=rss----2b6d1f7f8fb0---4</link>
            <guid isPermaLink="false">https://medium.com/p/ab7686a7c5e3</guid>
            <dc:creator><![CDATA[Doris Position]]></dc:creator>
            <pubDate>Thu, 03 Nov 2022 10:21:16 GMT</pubDate>
            <atom:updated>2022-11-03T10:21:46.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>Position Exchange’s Decentralized Perpetual Trading Protocol — Incentivized Testnet Program</h3><p>After months of trying our best in research and engineering, our Position Exchange team is ready to announce the Incentivized Testnet program for DPTP 2.0, which will start on November 7th.</p><p>Position Exchange Decentralized Perpetual Trading Protocol (DPTP) 2.0 Testnet is the preparation stage for the best version of the DPTP 2.0 mainnet. Node operators, developers, auditors, ecosystem builders and of course, Posination, are all invited to participate and rewarded for their contributions toward this goal. All feedbacks from the Position Exchange community during this exciting time are extremely meaningful to our team. We are looking forward to receiving your comments about your experience as an user to improve and bring stress-tested and best-qualified products to the community.</p><p>The Position Exchange DPTP 2.0 Testnet will be incentivized for 2 weeks from November 7th to November 21st.</p><h3>Overview</h3><p><strong>Round 1: Week 1 Competition</strong></p><p>Timeline: November 7th — November 13th</p><p><strong>Round 2: Week 2 Competition</strong></p><p>Timeline: November 14th — November 21th</p><p>In both rounds, you will have to complete offered tasks to gain attractive rewards:</p><ul><li>Open positions to trade on DPTP 2.0 testnet</li><li>Report existing bugs to the Position Exchange team</li><li>Join activities on Position Exchange’s social media</li></ul><p>These tasks’ will be available to you with clear and well-specified guidelines in our <a href="https://discord.gg/TJ8ktEPhty">Discord server.</a></p><h3>How to participate</h3><p>Jump into <a href="https://discord.gg/TJ8ktEPhty">our Discord channel</a> and turn on the notification to receive the announcement and details of the Incentivized Testnet event at the earliest.</p><h3>Rewards</h3><p>Whoever joins the DPTP 2.0 Testnet activities will have chances to receive up to <strong>$610</strong> in the pool of <strong>$3,000</strong> total reward.</p><p>Join as soon as possible to become one of the pioneers in our community and catch the most attractive incentives.</p><p>Keep updated about Position Exchange news on our Social Media Platforms:<br><a href="https://twitter.com/PositionEx"><strong>Twitter</strong></a><strong> | </strong><a href="https://t.me/PositionExchange"><strong>Telegram</strong></a><strong> | </strong><a href="https://discord.gg/TJ8ktEPhty"><strong>Discord</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab7686a7c5e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/position-exchange/position-exchanges-decentralized-perpetual-trading-protocol-incentivized-testnet-program-ab7686a7c5e3">Position Exchange’s Decentralized Perpetual Trading Protocol — Incentivized Testnet Program</a> was originally published in <a href="https://medium.com/position-exchange">Position Exchange</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>