link.png

ID:

ddc-token-1078

Date:

Status:

Incident Count:

August 29, 2022

Verified

1

info.png
target.png
REKT

Contributor:

chain.png

web3rekt.com

KYC By:

KYC:

None

info.png

Audit By:

Audits:

None

Loss Amount:

104,600

info.png

Recovered:

-

Rewards:

Currency:

USD, DDC

info.png

Key Indicators

Platform:

Type:

Category:

Method:

Data Sources:

Binance Smart Chain

Assets

Token

Flash Loans

Extended Method:

Logic error

info.png

Days in Operation:

0

(0.00 Years)

chain.png
chain.png
chain.png
chain.png
datasource.png

Beosin Alert reported that DDC token was exploited for $104,600 in a flash loans incident.

The attacker swapped 1.3 USD for 26 DDC. The attacker used balanceOf to get all the $DDC in the pool and called the handleDeductFee function of the DDC contract. The attacker transferred almost all the DDC tokens in the victim pool into the handleDeductFee function, then called sync to update the k-value. As the balance of DDC in the pool was reduced to 0.0003 DDCs, after the k-value was updated, the price of $USD corresponding to $DDC is significantly raised, and a large amount of USD can be swapped via a small amount of $DDC. The hacker used 23 $DDC to swap for 104,600 USD.

info.png

DISCLAIMER: While web3rekt has used the best efforts in aggregating and maintaining this database, this web site makes no representations or warranties with respect to the accuracy or completeness of its information and data herein, and specifically disclaim any implied warranties of merchantability or fitness for any particular purpose. 

Under no circumstances, shall web3rekt be liable for any loss of profit or funds, any regulatory or governmental penalties, any legal costs, or any other commercial and non-commercial damages, including but not limited to special, incidental, consequential, or other damages from any or all usage of the data and information derived from this database.