Image for post
Image for post

Dear OneSwap users,

After nearly a month of development and testing, OneSwap has completed the compatibility and deployment of the Binance Smart Chain network. OneSwap now officially supports the Binance Smart Chain network and BEP20 tokens trading since January 15, 2021 (UTC).

The Binance Smart Chain network is a faster and cheaper smart contract network. It will greatly accelerate OneSwap’s transaction speed, cut transaction fees, and cater to users’ transaction needs with more diverse asset options.

While improving the trading experience, the support for the Binance Smart Chain network on OneSwap has also promoted its DeFi ecosystem construction on various…


Image for post
Image for post

Dear OneSwap users,

OneSwap launched an incentive plan for project developers on November 30. According to this plan, issuers of the token who have verified their identity by signature are entitled to 20% of the transaction fees as a reward in the relevant markets on OneSwap. At the same time, OneSwap Agents can receive an additional 5% of the transaction fees by inviting project developers to settle in OneSwap.

How to bind Token?

You need to verify the signature with the issued token contract address. Please refer to the help guide for details.

What markets can provide rewards?

All trading…


Image for post
Image for post

Dear OneSwap users,

ONET, a governance token issued by OneSwap on the TRON network, has been officially launched today. ONET is an independent token irrelevant with ONES issued by OneSwap on Ethereum.

The total amount of ONET is fixed at 100 million. 40% of OneSwap’s transaction fees on the TRON network is automatically used to repurchase and burn ONET.

The initial circulation of ONET is 0. The distribution and circulation of ONET are as follows:


Image for post
Image for post

Dear OneSwap users,

After nearly a month of development and testing, OneSwap has completed the compatibility and deployment of the TRON network. OneSwap now officially supports the TRON network and TRC20 tokens trading since November 14, 2020 (UTC).

The TRON network is a faster and cheaper smart contract network. It will greatly accelerate OneSwap’s transaction speed, cut transaction fees, and cater to users’ transaction needs with more diverse asset options.

While improving the trading experience, the support for the TRON network on OneSwap has also promoted its DeFi ecosystem construction on various blockchains and considerably enriched its application scenarios. …


Image for post
Image for post

This article mainly introduces how to use javascript to write a simple offline arbitrage robot to make a risk-free profit in various decentralized exchanges. This automated program does not have a production environment test. It is only for research. Readers assume sole responsibility for the potential risks.

Decentralized Exchange

Two decentralized exchanges are used in the project: UniSwapand OneSwap; with the function of flashSwap provided by UniSwap, risk-free arbitrage can be implemented in various decentralized exchanges.

  • flashSwap: Simply put, a user borrows a certain token from UniSwap’s trading pair pool and calls the pre-deployed arbitrage contract for the risk-free arbitrage with the…


Image for post
Image for post

This series of articles summarizes in detail the various practical experiences and skills learned/accumulated during the development of the OneSwap project, and emphasizes one point: It is not difficult to develop smart contracts on Ethereum using the Solidity programming language, yet it is not easy to develop gas-efficient and bug-free smart contracts. If that is your goal, in addition to following the best practices and techniques we introduced earlier, it is also necessary to fully test the code, and an effective tool can greatly facilitate the development. Truffleis such a one-stop tool, which integrates many functions such as dependency management…


Image for post
Image for post

For programmers, these four operations are commonplace:

  1. Create a symbolic link (Linux) or shortcut (Windows) for the program, and click this symbolic link or shortcut to start the program
  2. Use a dynamic link library to reduce the size of executable files
  3. Regularly upgrade the operating system and applications, to enhance functions, and apply security patches
  4. Source or exec another script in a script, and use environment variables to pass information to it

These operations seem unrelated to each other, but in Solidity, to achieve similar effects, we need the same mechanism: delegatecall.

The delegatecall in Solidity is so special that…


Image for post
Image for post

The Solidity language is easy to learn, and so is to write Ethereum smart contracts using Solidity. But it is very difficult to write smart contracts that are completely free of security risks. To help Solidity programmers write more robust smart contracts, Franz Vollandsummarizes 14 commonly used Solidity patterns. The OneSwap project has fully drawn on these design patterns in its development, and also created several new patterns. This article will introduce some of these patterns summarized by Franz Volland and their specific applications in OneSwap. The following is a list of these 14 patterns:

Behavioral Patterns

OneSwap

A fully decentralized exchange protocol on Smart Contract, with permission-free token listing and automated market making.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store