![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
Four.meme은 Pump.fun과 유사한 Binance Academy에 의해 인큐베이션 한 Memecoin Launchpad입니다. 플랫폼에서 Memecoin Snowboard (https://four.meme/token/0x4abfd9a204344bd81a276c075ef89412c9fd2f64)가 해커들에 의해 공격을 감지했습니다.
Four.meme, a memecoin launchpad incubated by Binance Academy, is attacked by hackers
Binance Academy가 인큐베이션 한 Memecoin Launchpad 인 Four.Meme은 해커의 공격을받습니다.
We noticed that memecoin snowboard ( https://four.meme/token/0x4abfd9a204344bd81a276c075ef89412c9fd2f64 ) on the platform was attacked by hackers. The loss was about 15,000 USD. The attack transaction was: https://bscscan.com/tx/0x2902f93a0e0e32893b6d5c907ee7bb5dabc459093efa6dbc6e6ba49f85c27f61
플랫폼에서 Memecoin Snowboard (https://four.meme/token/0x4abfd9a204344bd81a276c075ef89412c9fd2f64)가 해커들에 의해 공격을 받았다는 것을 알았습니다. 손실은 약 15,000 USD였습니다. 공격 트랜잭션은 다음과 같습니다. https://bscscan.com/tx/0x2902f93a0e32893b6d5c907e7bb5dabc459093efa6dbc6e6ba49f85c27f61
Attack and incident analysis
공격 및 사고 분석
Principle of Four.meme
4의 원리
four.meme is a memecoin launchpad on bnb smartchain, similar to pump.fun. Three main stages of similar launchpad platforms:
Four.Meme은 BNB SmartChain의 Memecoin LaunchPad로 PUMP.FUN과 유사합니다. 유사한 런치 패드 플랫폼의 3 가지 주요 단계 :
• Phase 1: Users create memecoins on the platform by customizing their names, logos, descriptions, social accounts (optional), etc.
• 1 단계 : 사용자는 이름, 로고, 설명, 소셜 계정 (선택 사항) 등을 사용자 정의하여 플랫폼에서 메모 코인을 만듭니다.
• Phase 2: Other users can buy and sell the memecoin on the platform
• 2 단계 : 다른 사용자는 플랫폼에서 밈인을 사고 팔 수 있습니다.
• Phase 3: When the market value of the memecoin reaches a certain threshold (24 BNB), it will be migrated to DEX (PancakeSwap)
• 3 단계 : Memecoin의 시장 가치가 특정 임계 값 (24 BNB)에 도달하면 Dex (Pancakeswap)로 마이그레이션됩니다.
Below, we take a closer look at the specific technical details of each stage.
아래에서는 각 단계의 특정 기술 세부 사항을 자세히 살펴 봅니다.
Phase 1
1 단계
On the launchpad platform, users fill in the specific information of the memecoin they want to create through the interface.
LaunchPad 플랫폼에서 사용자는 인터페이스를 통해 작성하려는 메모 인의 특정 정보를 작성합니다.
After filling in the form, pay the handling fee to complete the creation of the memecoin on-chain contract. Of course, this contract is created by the official contract of launchpad, so the owner of the created ERC-20 Token is also the official contract of launchpad. Let's take a look at an example of memecoin creation by four.meme:
양식을 작성한 후, 핸들링 수수료를 지불하여 Memecoin 온 체인 계약의 생성을 완료하십시오. 물론이 계약은 LaunchPad의 공식 계약에 의해 만들어 지므로 생성 된 ERC-20 토큰의 소유자는 또한 LaunchPad의 공식 계약입니다. Four.meme의 Memecoin Creation의 예를 살펴 보겠습니다.
First, the user pays the handling fee, the launchpad official contract completes the deployment of the memecoin ERC-20 Token contract, and mints 1,000,000,000 initial funds (the total virtual pool of the memecoin is expected to be 30 BNB).
먼저, 사용자는 취급 수수료를 지불하고 LaunchPad 공식 계약은 Memecoin ERC-20 토큰 계약의 배치를 완료하고 Mints 1,000,000,000 초기 자금 (Memecoin의 총 가상 풀은 30 bnb 일 것으로 예상됩니다).
Then, we see that the owner of the created Token is also the smart contract of the launchpad official website.
그런 다음 생성 된 토큰의 소유자는 LaunchPad 공식 웹 사이트의 스마트 계약이라는 것을 알 수 있습니다.
This means that although memecoin is created by the user on launchpad, the owner of the ERC-20 contract on the chain is not the user. This can prevent malicious behaviors such as users minting on their own. Once the memecoin smart contract is deployed on the chain, it enters the second stage, and all users on the platform can buy and sell.
즉, Memecoin은 LaunchPad의 사용자가 Memecoin을 생성하지만 체인의 ERC-20 계약의 소유자는 사용자가 아닙니다. 이렇게하면 사용자가 스스로 마무리하는 것과 같은 악의적 인 행동을 방지 할 수 있습니다. Memecoin Smart Contract가 체인에 배치되면 두 번째 단계로 들어가고 플랫폼의 모든 사용자가 구매 및 판매 할 수 있습니다.
Phase 2
2 단계
Other users on the platform can buy and sell through the platform, but the tokens after buying and selling cannot be transferred to other users through transfer. We can take a look at the source code of the ERC-20 Token on the chain.
플랫폼의 다른 사용자는 플랫폼을 통해 구매 및 판매 할 수 있지만 구매 및 판매 후 토큰은 전송을 통해 다른 사용자에게 전송할 수 없습니다. 체인에서 ERC-20 토큰의 소스 코드를 살펴볼 수 있습니다.
In _beforeTokenTransfer, the transfer is restricted by the parameter _mode
_beforetokentRansfer에서 전송은 매개 변수 _Mode에 의해 제한됩니다.
At this point, we can see that the _mode corresponding to the Token in phase 2 is 1, which is MODE_TRANSFER_RESTRICTED, restricting third-party transfers.
이 시점에서 2 단계의 토큰에 해당하는 _mode가 1이라는 것을 알 수 있습니다.
This is to prevent the influence of OTC on the price. When buying and selling, the four.meme contract sets _mode to 2 first and then uses transfer to transfer to the user. After the transfer is completed, _mode is set to 1 to restrict other users from transferring. To complete the transfer of memecoin after purchase.
이것은 OTC가 가격에 미치는 영향을 방지하기위한 것입니다. 구매 및 판매 할 때 4.meme 계약을 먼저 2로 설정 한 다음 전송을 사용하여 사용자에게 전송합니다. 전송이 완료된 후 _mode는 다른 사용자를 전송하는 것을 제한하기 위해 1로 설정됩니다. 구매 후 Memecoin의 양도를 완료합니다.
Phase 3
3 단계
When the market value of the memecoin reaches 24 BNB, the Bonding Curve Process reaches 100%. Launchpad will migrate the remaining 20% of memecoin and 24 BNB to DEX PancakeSwap. At this point, Phase 3 is officially completed. The following transaction is the transaction in which Launchpad migrated the memecoin to PancakeSwap.
밈의 시장 가치가 24 Bnb에 도달하면 결합 곡선 프로세스가 100%에 도달합니다. LaunchPad는 Memecoin의 나머지 20%와 24 BNB를 Dex Pancakeswap으로 마이그레이션합니다. 이 시점에서 3 단계는 공식적으로 완료됩니다. 다음 거래는 LaunchPad가 Memecoin을 Pancakeswap으로 마이그레이션 한 거래입니다.
We can see that first, launchpad officials set the _mode of memecoin to 0, that is, MODE_NORMAL, allowing users to conduct over-the-counter transactions. Then, launchpad officials created a trading pair of memecoin and WBNB, and finally added 23.5BNB (0.5 BNB is the fee) and 200 million memecoin liquidity to the trading pair. The price of adding liquidity is sqrtPriceX96 = 27169599998237907265358521. Because the calculation formula of sqrtPriceX96 is as follows:
먼저 LaunchPad 관계자는 Memecoin의 _mode를 0으로 설정하여 Mode_normal로 설정하여 사용자가 처방전없이 구입할 수있는 거래를 수행 할 수 있음을 알 수 있습니다. 그런 다음 LaunchPad 관계자는 Memecoin과 WBNB의 거래 쌍을 만들었고 23.5BNB (0.5 BNB는 수수료)와 2 억 개의 Memecoin 유동성을 거래 쌍에 추가했습니다. 유동성을 추가하는 가격은 sqrtpricex96 = 271699999999907265358521입니다. sqrtpricex96의 계산 공식은 다음과 같습니다.
Therefore, the price of this memecoin when adding liquidity is 0.0000001175 WBNB, which can also be obtained by dividing 2
따라서 유동성을 추가 할 때이 밈의 가격은 0.0000001175 WBNB이며, 2를 나누어 얻을 수 있습니다.
부인 성명:info@kdj.com
The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!
If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.