Morphling - dApp to join Binance Launchpad without any restriction
Tags: product
Published: 2021-11-02 12:57:53

📝 Morphling - dApp to join Binance Launchpad without any restriction
thanhle.blog (1377 words)


### [](https://thanhle.blog/blog/1#8fab4e693a3f487bba9f9916fbaa0db6 "Why should you read this article?")Why should you read this article?

- More perspective on dAPP. Why do I use Smart Contract instead of something centralized?

- Tips when building apps on EVM-chain (Etherium, Binance Smart Chain, ...)

- The reason this dApp failed (If it fails in the future ‍♂️)

### [](https://thanhle.blog/blog/1#3dccfa5218f7464794155f2f52ceeb98 "What app is that?")What app is that?

[![https://morphling.vercel.app/](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fc4e171a4-e63e-48ee-b984-0a5d70d98571%2FFCwz2cYUYAIpmus.jpeg%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3D3188031b73850919be7b254538db018e2baf28a2225d862aa88ac1f1b21796fc%26X-Amz-SignedHeaders%3Dhost?table=block&id=04d0a1a1-1446-4667-8d7a-55f55b7fed90&cache=v2)](https://morphling.vercel.app/)Morphling is a dApp that allows people in crypto-banned countries to join Binance Launchpad, specifically China.

### [](https://thanhle.blog/blog/1#e446f5b110b94c3f802b5e87e5d5dcd1 "Why build this?")Why build this?

If any of you are used to sending money to CZ or Binance, you must be familiar with a Feature on Binance: [Launchpad](https://coin98.net/binance-launchpad)

With recent data, most of these Launchpad rounds bring huge profits to investors and are almost risk-free, as long as you hold BNB, you got money 🤑

![notion image](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F65965add-babc-4075-bcfa-c7d066a8f07b%2Fphoto_2021-10-30_13.25.28.jpeg%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3D5e6f14c6c3002b87219f56157171013c69eac74cc7cefa61ed7e3153c36f3904%26X-Amz-SignedHeaders%3Dhost?table=block&id=69b1fe46-63b7-483f-a809-93a38593d3ce&cache=v2)

However, there is one problem: Binance does not allow users in some countries to join Launchpad, typically China.

Users from the following countries or regions will not be able to participate in token sales on the Binance Launchpad platform:

*Belarus, People's Republic of China, Democratic Republic of Congo, Cuba, Iraq, Iran, North Korea, Sudan, Syria, United States of America and its territories (American Samoa, Guam, the Northern Mariana Islands, Puerto Rico, and the U.S. Virgin Islands), Zimbabwe.*

To get around this limitation, some of my Chinese colleagues have sent me BNB to join the Launchpad. It was time to hold the BNB number with a value of more than $100,000, in my mind, those questions popped up:

- What if I lose this BNB number?

- What if I "accidentally" lose it? Can the guys in China catch me? Or do I do a few things to build trust and then wait for more than 10 million and then "accidentally" lose it?

- After getting the token from Binance, how can I share it with everyone?

When I joined Launchpad to help the other guys, I also encountered some pretty annoying things like:

- I need to calculate the share ratio for each one, it's quite boring, sometimes I have a few BNB put in, then the calculation is messed up again.

- While holding Launchpad, someone withdraws BNB because the loan interest is increasing dramatically 🏃‍♂️, or sometimes while holding, someone deposits extra BNB to participate.

- Distribute the reward for each person. This part is the most annoying to me because it takes lots of time. After calculating the number of BNB and Token to distribute to each person, I must: `Ask for their Address, confirm, go to Binance to withdraw, input OTP email, input OTP password, input OTP 2FA, input my YubiKey, confirm that they have received Token` 😫. And each user I will have to redo this series twice because Binance does not support sending BNB and Token at the same time.

There was a time when I sent the wrong Token via BNB, so I had to send all the tokens to him and ask him to re-distribute the token to others. And my friend also had to do endless steps like me to re-distribute it.

If we look broadly, it can be seen that this model only works based on individual beliefs with each other. That party trust me, so they send lots of BNB to me, I also really trust them once I sent all the rewards to that person.

So I came up with `Morphling`It's a Dota hero famous for his ability to change between Agility and Strength (Damage and HP)

![notion image](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0811195f-a4b2-475d-afed-e7f5b4f67c96%2FUntitled.png%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3Da6538970eee57f9ec754419e9bd2d10986adb9fe3bbe5a93e24ff86f21bfec93%26X-Amz-SignedHeaders%3Dhost?table=block&id=899801c7-17ec-48de-a684-5425268e9488&cache=v2)



![notion image](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F40e5abda-c91e-4eb3-ba3b-8b7f289a9f28%2FBinance_Launchpad_investment_%25281%2529.jpg%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3D1e9547ba290a7f2ed5e722960a91095ddb7e7ef5def896b182e5c50c97d1939c%26X-Amz-SignedHeaders%3Dhost?table=block&id=e1db32e2-1e5c-45c8-b0a8-1a7579fc8864&cache=v2)

#### [](https://thanhle.blog/blog/1#71ac5430609e4ce1a05b2ed6d2352d57 "Operation model")Operation model

My idea is quite simple, the system will have 3 pools

- Cover pool

- Staking pool

- Reward pool

1. To solve the trust issue when I am the representative holding BNB, I will need to put some money in to make a trust. When things go wrong, this pool cover will be un-locked to distribute among those who have put BNB into staking.

2. After it's time to hold BNB on Launchpad, I will lock the staking pool and withdraw funds from this pool, then put it on Binance to join the launchpad.

3. Finally, when Binance gave me back my BNB and Token. I just need to withdraw and put it into the pool. Then this pool will be divided equally according to the rate deposited in the staking pool

By circulating BNB and tokens in the 3 pools above, I don't have to run the calculation, distribute tokens to everyone manually (Save me 10 minutes for each user, and reduce the risk of wrong input number, or sent by mistake at the same time). In addition, the timing of returning tokens to everyone is also quite sensitive, price can go up and down!

#### [](https://thanhle.blog/blog/1#568cc0ea67fb42d6bb6bc1ad1ec32b99 "Income 🤑")Income **🤑**

Nothing for free, I charge 5% for the reward token. So if I do it manually, holding about $10,000 will only get paid about $50-$100, the risk ratio is too high. Therefore, if I can scale this model, I can have a decent cash flow without doing much

Ex: 100 users, each deposit 5BNB and get about $100 token reward each person

**So I can make a profit: 100\*100\*5% = $500** already (Depending on the Pump level of the reward token, the profit may be different)

My part of the risk will be pushed to the Smart Contract side, or I will not suffer anything, or I will lose everything

#### [](https://thanhle.blog/blog/1#e6f6333740414da5b65f1646a226b74e "It's not that easy 😌")It's not that easy **😌**

In terms of operation, it is quite simple, but if you think more deeply, you will need to handle a lot of questions?

- If the cover is too little, will the user trust to stake BNB?

- What if the amount of cover is greater than the amount of BNB in the staking pool? Then just put 1BNB and then claim to redeem 1.2BNB cover is done, it's a risk-free investment in a few minutes 🤷‍♂️.

- If after getting the token, BNB from Launchpad, if I eat a little less and then deposit it into the Reward pool, how will the Users side handle it?

- What's the use of this dApp when buying a Binance account in another country?

- Usually, the token payment time will be delayed randomly compared to the time that the token is listed on the exchange, if that token dumps or pumps, how does it affect this model?

- Each user participating in Launchpad will be limited to the maximum number of tokens that can be purchased, called Hardcap, so if I need to to run this modal to many other Binance accounts, I need to design the modal so that they will not take BNB and run away.

### [](https://thanhle.blog/blog/1#74fdf659cfd140bb852c175a6b5bb663 "Why Smart Contracts?")Why Smart Contracts?

Naming a piece of code that runs on ETH or Binance is already something that I find very cool! Why not set it to Decentralize Logic, Distributed code,...

![notion image](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ff65f6ef0-172b-49fb-b69b-7129347216a3%2FUntitled.png%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3D2ccaa5443543f7d4475d5962ab197a48a5da4eb0f66102fda829a7f4bc12135a%26X-Amz-SignedHeaders%3Dhost?table=block&id=5fc081ff-8894-456f-92e3-4ec860627833&cache=v2)

By definition, a contract is an agreement between 3 parties: Party A, Party B, and a third party to ensure fairness between Party A and Party B. In fact, all contracts that you agree to. For daily transactions such as labor contracts, real estate purchase and sale contracts, etc., the third party is the state.

The smart contract is 3rd party to ensure the cooperation of party A and party B is the logical lines that you code. Therefore, in terms, the economic model in Smart Contract must be very careful and carefully calculated. It's like you're coding a strict referee in a football match.

![Pierluigi Collina](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2cf05794-3af6-473f-b52e-53bd167cfc48%2FUntitled.png%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3D5115f02de0a474684f55e9606c2aaecdd9fbbec47a78a1828a0020708a7bfb13%26X-Amz-SignedHeaders%3Dhost?table=block&id=16f0a787-9f9b-43e3-8bea-b9d6dbf03e63&cache=v2)

Pierluigi Collina 

As you can see, in `Morphling`, there is party A: BNB recipient to join Launchpad, party B: stake BNB to profit from participating in Launchpad. And the third party, which is a smart contract that is responsible for ensuring that Party A does not cheat on Party B, and Party B does not cheat on Party A or if even they cheat, then, in the end, the cheater will also be the one pay the bill 😭

Therefore, designing a set of rules for this Smart Contract guy needs a lot of brain 🧠 power and it is the most basic foundation in the era of Decentralized everything. Does your platform have developers? Are there any users using it? Is anyone participating in running the node? Is there any user deposit liquidity pool?... All must be built on the set of rules it defines.

This is a very difficult and interesting problem, maybe I will write more on this topic, but basically, the Rules will be built on 2 basic fundamentals:

- Game theory

- Nash equilibrium

![notion image](https://www.notion.so/image/https%3A%2F%2Fs3.us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ffd61b8c4-b6cc-49e8-b50d-13d02df94c7b%2FUntitled.png%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DAKIAT73L2G45O3KS52Y5%252F20211102%252Fus-west-2%252Fs3%252Faws4_request%26X-Amz-Date%3D20211102T100252Z%26X-Amz-Expires%3D86400%26X-Amz-Signature%3D52dd3ad332511aaf71ea2bef22377e9b92850d130e2c8d4c153a20ed8238421c%26X-Amz-SignedHeaders%3Dhost?table=block&id=461464ed-e153-477f-a57e-631a64c5e671&cache=v2)

#### [](https://thanhle.blog/blog/1#cdc7b786c1ac4ffd8817276a53193a69 "Where's the code?")Where's the code?

I'm beta testing this app, so I won't publicize the code at the moment, but will soon. Stay tuned!

#### [](https://thanhle.blog/blog/1#310a3ad902fd41bcaaff135cce7ada7c "Building journey")Building journey

*I'm thinking of a way to show some problems/tips during app build like a timeline. But right now, it's not built yet, so I leave this section blank*