image

Submission for the NEAR MetaBUILD Hackathon

DAO Exchange Pool System

Project submission information

1.Project name

DAO Exchange Pool System

2.Elevator pitch

This DAO exchange pool model system is for various types of DAO organizations to raise funds at a fixed price through this pool.

3.Team Name

Rainbowcity Foundation

4.Submission links

In this NEAR MetaBUILD Hackathon event, RainbowCity Foundation submitted a total of 10 projects, which is the address directory of the 10 projects. We are continuing to refine the details of each project.

5.Recorded video demo

https://youtu.be/uommhAyiAy4

6.Testnet Deployment Information

  • Aurora testnet address:

https://testnet.aurora.dev/

  • Contract deployment address

ERC20FACTORY : 0x12bC5979b3FC62a37cB315df3Ac3A5cA44883276

CREATPOOL : 0xD74BCC7c6CD8c59Ba7414dE1797ecE9edB8baA39

CREATTOKENEXCHANGE : 0x2473559c1690B1F4f5387C5c646e1b6b8Fc8100a

TOKEN_A : 0xd9340d89ac32cBCa6B598127364F46402E399362

TOKEN_B : 0x47A6815030E2706b7D2A67113b9aac5e5C10Ed1E

Frontend docs:

https://github.com/RainbowDAO/09-Near-MetaBUILD-DAO-Exchange-Pool/blob/main/Front-end-for-Solidity-version/README.md

Contract docs:

https://github.com/RainbowDAO/09-Near-MetaBUILD-DAO-Exchange-Pool/blob/main/Solidity-version-contract-for-Aurora/README.md

7.What is the Rainbowcity Foundation?

Headquartered in Singapore, RainbowCity Foundation is a non-profit foundation founded by Mr. Kunyuan, which mainly engages in the incubation and investment of the crypto ecosystem. Being a big fan of Bitcoin, Mr. Kunyuan worships Satoshi Nakamoto and dedicates himself to the spread of Satoshi Nakamoto’s great ideas of decentralization. He once put forward the concept of “Bit Civilization” for the first time in the world in July 2021 at the Bitcointalk Forum established by Satoshi Nakamoto. Moreover, he wrote over 50 articles to promote Bitcoin, in the hope of fostering the development of the encryption industry worldwide and practicing the true Bitcoin spirit.

Mr. Kunyuan has had rich experiences in the crypto world. At one time, he was the highest community leader of FCoin, the most influential community exchange in the Chinese world. In November 2018, in a referendum on the FCoin exchange, Mr. Kunyuan was elected the first community committee member and then appointed vice Chairman to fully preside over the work of the FCoin community.

Mr. Kunyuan believes that a super economic powerhouse will emerge in the mankind history in the future; a crypto world which is constructed in the form of decentralized protocols that transform all different decentralized behaviors into a unified economy. He believes it will ultimately become the infrastructure of human civilization and this is in which the RainbowCity foundation originates from this belief.

The RainbowCity Foundation aims to invest in seven major industries in the following ten years, including Rainbow DeFi, Rainbow Investment, Rainbow Culture, Rainbow Network, Rainbow Industry, Rainbow Education and Rainbow R&D. It strives to become a super economic hub with market value worth one trillion US dollars.

8.Project social media:

RainbowDAO website :http://www.rainbowdao.io

Rainbowcity website :https://www.rainbowcity.io

Twitter: https://twitter.com/RainbowDAOio

Discord https://discord.gg/vbnvFEeYRr

Telegram: https://t.me/RainbowDAO

Medium: https://medium.com/rainbowcity

Github: https://github.com/RainbowDAO

Email: Rainbowcitydao@gmail.com

Project Story

1.Inspiration

The design of this product is inspired by the requirements by HAPI.ONE in the sponsor challenge: exchange pool model. According to this requirement, we chose to expand further and created the current small system.

2.What it does

This DAO exchange pool model system is for various types of DAO organizations to raise funds at a fixed price through this pool. This system is for raising DAO fund and can be applied to various types of DAO organizations. Everyone can use this system to raise the funds they need.

3.How we built it

image

Introduction to the function steps of the DAO exchange pool model system:

(1) Initialize an exchange pool, set the name of the exchange pool, the address of the token contract to be sold, the address of the token contract to be purchased, the price and number of the tokens to be sold, the amount of funds raised, the start time and end time of mining pool exchange;

(2) The creator of the exchange pool needs to put the tokens to be sold into the exchange pool when setting the number of exchangeable tokens;

(3) The exchange can only be carried out when the mining pool is in active state, otherwise exchange is not allowed. The exchangers can withdraw the purchased tokens when the exchange is over;

⑷ The creator of the exchange pool can withdraw tokens left after the entire exchange ends;

⑸ After the entire exchange ends, if some tokens are not sold, the creator of the exchange pool can withdraw them. During the exchange period, the creator is not allowed to withdraw the corresponding tokens.

4.Challenges we ran into

The challenge we encountered in developing this system is how to understand the logic of the product clearly and build application scenarios in different forms.

5.Accomplishments that we're proud of

We are proud that we have completely built the product as the sponsor challenge requires and met the most basic needs of the sponsor.

6.What we learned

Through the construction of this system, we got to know more about the different needs of more DAO organizations in actual operation, which is beneficial for us to build a complete DAO infrastructure product.

7.What's next for DAO Exchange Pool System ?

We will continue to carefully review the logic of the product, conduct internal and external audits of the code and deploy it on the public chain network when the time is right.

Project UI

1-Basic-Information

image

2-Confirmation-Token

image

3-Exchange-Time

image

4-Sell-Tokens

image

5-Home

image

6-Info

image

7-Exchange

image

8-Withdraw

image

Built With

Share this project:

Updates