
{"id":86613,"date":"2025-08-07T06:27:06","date_gmt":"2025-08-07T06:27:06","guid":{"rendered":"https:\/\/mycryptomania.com\/?p=86613"},"modified":"2025-08-07T06:27:06","modified_gmt":"2025-08-07T06:27:06","slug":"dex223-development-report-june-july","status":"publish","type":"post","link":"https:\/\/mycryptomania.com\/?p=86613","title":{"rendered":"DEX223 Development Report\u200a\u2014\u200aJune\u2013July"},"content":{"rendered":"<h3>DEX223 Development Report\u200a\u2014\u200aJune\u2013July<\/h3>\n<p>The Dex223 development team has published a <a href=\"https:\/\/gist.github.com\/Dexaran\/108b78e597fccb4ec9947dcd4df7ac95\">report<\/a> covering the June\u2013July period.<\/p>\n<p>Previous reports can be found here: <a href=\"https:\/\/www.dex223.io\/development\">DEX223_development<\/a>.<\/p>\n<p>This article is a review with comments from the author on the provided report. The report contains a description of the development status: the DEX core, the margin trading module, and the D223 holders\u2019 income system. Let\u2019s go through everything in\u00a0order.<\/p>\n<h3>Completion of the DEX Core Development<\/h3>\n<p>The developers report that the platform core is completed, and this is excellent news.<\/p>\n<p>What is the DEX core? The core of any DEX is a minimal set of smart contracts and user interface elements that enable token\u00a0swaps.<\/p>\n<p>The set of smart contracts of the DEX223 core deployed on the Ethereum\u00a0mainnet:<\/p>\n<p><a href=\"https:\/\/etherscan.io\/address\/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2#code\">WETH9<\/a>\u200a\u2014\u200athis contract is a wrapper for native coins, it transforms native coins into tokens and back. This principle of working with native coins is used on all DEX in EVM blockchains.<a href=\"https:\/\/etherscan.io\/address\/0xe7E969012557f25bECddB717A3aa2f4789ba9f9a#code\">TOKEN_CONVERTER<\/a>\u200a\u2014\u200aEIP-7417 token converter for switching between ERC223 and\u00a0ERC-20.<a href=\"https:\/\/etherscan.io\/address\/0xfA5930D2Ef1b6231e220aeDda88E28C4E8F0F3a0#code\">POOL_LIBRARY<\/a>\u200a\u2014\u200acontract that defines all liquidity pool\u00a0logic.<a href=\"https:\/\/etherscan.io\/address\/0xFd4cE11db9db9433286734304049526E9336139E#code\">POSITION_MANAGER<\/a>\u200a\u2014\u200aworks with NFTs that represent a liquidity provider\u2019s position in the\u00a0pool.<a href=\"https:\/\/etherscan.io\/address\/0x8dae173016f65F61e90631Ee5f28C9E47b1ebc06#code\">FACTORY<\/a>\u200a\u2014\u200aa contract producing other contracts, for example, liquidity pools. As soon as a liquidity provider creates a pool that did not yet exist on the DEX, the Factory contract comes into\u00a0play.<a href=\"https:\/\/etherscan.io\/address\/0xbeBAB9Ab58f8099fbFEb15E14b663615D19304Fa#code\">SWAP_ROUTER<\/a>\u200a\u2014\u200atoken swap router, this is exactly what traders interact with when swapping\u00a0tokens.<a href=\"https:\/\/etherscan.io\/address\/0x029f10E06Dc7d6264f9432ACA3F52572543c48e0\">CORE_AUTOLISTING<\/a>\u200a\u2014\u200aautolisting contract implying payment of listing\u00a0fees.<a href=\"https:\/\/etherscan.io\/address\/0xa7089d8cbcc47543388a346dd6ebf0b05106a477\">FREE_AUTOLISTING<\/a>\u200a\u2014\u200afree autolisting contract. Core and Free imply two different lists.<a href=\"https:\/\/etherscan.io\/address\/0x105F43A70aFCEd0493545D04C1d5687DF4b3f48f\">AUTOLISTINGS_REGISTRY<\/a>\u200a\u2014\u200athe registry that contains all tokens that have gone through the autolisting process.<\/p>\n<p>Currently, the status of the main functionality of Dex223 is pending approval by the quality analysis team. But even now you can look around and interact with the main functionality of Dex223\u200a\u2014\u200afor this you just need to go to <a href=\"http:\/\/app.dex223.io\/\">app.dex223.io<\/a>.<\/p>\n<p>SwapLiquidity PoolsToken Manager and Auto\u00a0Listings<\/p>\n<h3>Margin Trading\u00a0Module<\/h3>\n<p>As planned earlier, the margin trading module entered the active development phase immediately after the completion of the platform core development. The active development phase revealed problems with price oracles, leading to numerous subsequent <a href=\"https:\/\/github.com\/EthereumCommonwealth\/Dex223-contracts\/commits\/main\/contracts\/dex-core\/Dex223Oracle.sol\">updates<\/a>.<\/p>\n<p>The issue lies in how fixed-point numbers are (or rather, are not) stored in the EVM environment. Therefore, fixed-point numbers are represented in the <a href=\"https:\/\/medium.com\/@bloqarl\/uniswaps-q64-96-explained-essential-security-tips-for-hook-developers-4bfc4afad2f7\">Q64.96<\/a> format, where \u201c64\u201d is the number of bits of the integer part, \u201c96\u201d is the number of bits for the fractional part, for a total of 160 bits. This is a huge number necessary for working with a wide range of prices and liquidity. Operations with such numbers can potentially lead to an overflow of the <a href=\"https:\/\/soliditybeginner.com\/uint-vs-uint256-solidity\/\">uint256<\/a> format (the main type for representing integer variables), which in turn will lead to unpredictable consequences.<\/p>\n<p>And as history shows, ignoring the specifics of decentralized oracles leads to losses of millions of\u00a0dollars:<\/p>\n<p><a href=\"https:\/\/peckshield.medium.com\/cheese-bank-incident-root-cause-analysis-d076bf87a1e7\">Cheese Bank<\/a>\u200a\u2014\u200aNovember 2020, $3.3\u00a0million.<a href=\"https:\/\/slowmist.medium.com\/analysis-of-warp-finance-hacked-incident-cb12a1af74cc\">Warp Finance<\/a>\u200a\u2014\u200aJanuary 2021, $7.7\u00a0million.<a href=\"https:\/\/blog.solidityscan.com\/uwulend-hack-analysis-77eb9181a717\">UwuLend<\/a>\u200a\u2014\u200aJune 2024, $19.4\u00a0million.<a href=\"https:\/\/cointelegraph.com\/news\/kiloex-exploited-attacker-used-price-oracle-7-5-million\">KiloEX<\/a>\u200a\u2014\u200aApril 2025, $7.5\u00a0million.<a href=\"https:\/\/www.auditone.io\/blog-posts\/the-loopscale-incident-a-case-study-in-oracle-exploitation\">LoopScale<\/a>\u200a\u2014\u200aApril 2025, $5.5\u00a0million.<\/p>\n<p>This is only a small part of the incidents where attackers deliberately targeted decentralized oracles. If you look at the dates of the incidents, the conclusion suggests itself: developers have been aware of these pitfalls for years but continue to encounter them.<\/p>\n<p>In order to reduce the likelihood of manipulation of a decentralized oracle, the team decided to simplify calculations by reducing the price to the first 6 digits. It was also decided to use the Chainlink oracle as a backup. The backup oracle is important not only for liquidation accuracy but also if a user decides to run their own\u00a0oracle.<\/p>\n<p>In order to ensure that in an emergency situation the users\u2019 funds are not locked in the contract, in the initial implementation the developers will have the ability to manually manage the contract.<\/p>\n<p>The liquidity pool contract also includes the observations function, which stores historical data for TWAP calculations. Time\u2011delay or time\u2011weighted average prices (TWAP) is protection against instant manipulations.<\/p>\n<p>Changes in the backend part naturally led to changes in the UI. In the test version of Dex223, <a href=\"https:\/\/test-app.dex223.io\/en\/margin-swap\">margin trading<\/a> is present, as well as <a href=\"https:\/\/test-app.dex223.io\/en\/margin-trading\">position tracking<\/a> functionality, however, this is not yet the last update on the way to the final implementation.<\/p>\n<p>For testing and debugging, the developers launched a trader <a href=\"https:\/\/sepolia.etherscan.io\/address\/0xBca81278ff25E0BA088fcdFd3E2D798CDC3D2358\">contract<\/a> in the Sepolia test network and a decentralized <a href=\"https:\/\/sepolia.etherscan.io\/address\/0xc569D09E6de44679A2a7f1a31CC82eEB5feA0dC3\">oracle<\/a>. The developers urge users to join the testing of the margin trading module, for which they have provided a step-by-step instruction in the\u00a0report.<\/p>\n<h3>UI update<\/h3>\n<p>As mentioned above, the UI underwent changes:<\/p>\n<p>The design system was updated (affects the displayed interactive elements like buttons, dropdowns, etc.).The margin module contracts differ from the original plan due to newly discovered challenges during development; therefore, UI needed to be\u00a0updated.Particularly, Margin Swap UI was updated to display positions that the user is swapping\u00a0from.Token import functionality was significantly simplified.Core UI was finalized, missing tooltips and minor bugs were fixed. It is now production-ready: <a href=\"http:\/\/app.dex223.io\/\">app.dex223.io<\/a>A new page \u201cLiquidation risks\u201d was\u00a0added.Remove liquidity and Borrow Market UI templates were updated to account for the latest contracts\/Oracles change.Margin swap directly from an Order was added (more on this one in the next report as we are currently working on this feature).Position and Order management was reworked.A \u201cPosition health status\u201d was implemented after analyzing competitor designs. It was recognized that most of the users are already familiar with this concept and\u00a0format.Manual liquidation through UI was\u00a0created.<\/p>\n<p>Figma templates for the <a href=\"https:\/\/www.figma.com\/design\/8ogeGWWFTcmjUBDWXLlIMU\/%F0%9F%94%84-DEX223-Exchange---All-mockups---Current-version--Copy-?node-id=2460-62488&amp;t=uPJgy4R8eJIXHMq7-1\">core<\/a> and margin trading <a href=\"https:\/\/www.figma.com\/design\/dcgcSLN3cQKtq3umsEsK0C\/Margin-module--Copy-?node-id=0-1&amp;t=BJiFJOPtSyIULLHT-1\">module<\/a> are available via hyperlinks.<\/p>\n<h3>D223 Profitability<\/h3>\n<p>This module was planned to be addressed after the completion of the margin trading module, so currently, neither a <a href=\"https:\/\/gist.github.com\/Dexaran\/9601c5369000f20069bb0b54fe7c9357\">contract<\/a> nor a UI has been implemented<\/p>\n<h3>An important ideological victory<\/h3>\n<p>The co-founder and driving force behind DEX223, the author of the ERC-223 standard\u200a\u2014\u200aDexaran\u200a\u2014\u200ais celebrating a victory he has been striving for almost a year. A detailed explanation of the ERC-20 flaw\u200a\u2014\u200aaccounting for $83.6 million in losses\u200a\u2014\u200ahas been added to the official <a href=\"https:\/\/ethereum.org\/en\/developers\/docs\/standards\/tokens\/erc-20\/\">Ethereum.org<\/a> website.<\/p>\n<p><a href=\"https:\/\/ethereum.org\/en\/developers\/docs\/standards\/tokens\/erc-20\/\">Ethereum.org<\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>This time, in addition to the report, a working version of DEX223 is also presented.<br \/>There are issues inherent to the entire industry, and they need to be addressed; with 100% certainty, no one wants to join the collection of projects that have lost millions from frivolous games with oracles. Therefore, the project is moving forward steadily, albeit not quickly, incorporating the best secure coding solutions in the EVM ecosystem as well as offering its own unique\u00a0ones.<\/p>\n<p>The release of the main core and the official recognition of the ERC-20 problem are strong signals of progress. As Dexaran emphasizes, these tools can and should be used to promote a new style of application design in the EVM ecosystem, and in fact, this will be the beginning of a large-scale marketing campaign for\u00a0DEX223.<\/p>\n<p><a href=\"https:\/\/medium.com\/coinmonks\/dex223-development-report-june-july-ce76d1f0bb3a\">DEX223 Development Report\u200a\u2014\u200aJune\u2013July<\/a> was originally published in <a href=\"https:\/\/medium.com\/coinmonks\">Coinmonks<\/a> on Medium, where people are continuing the conversation by highlighting and responding to this story.<\/p>","protected":false},"excerpt":{"rendered":"<p>DEX223 Development Report\u200a\u2014\u200aJune\u2013July The Dex223 development team has published a report covering the June\u2013July period. Previous reports can be found here: DEX223_development. This article is a review with comments from the author on the provided report. The report contains a description of the development status: the DEX core, the margin trading module, and the D223 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-86613","post","type-post","status-publish","format-standard","hentry","category-interesting"],"_links":{"self":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/86613"}],"collection":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86613"}],"version-history":[{"count":0,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/86613\/revisions"}],"wp:attachment":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}