$11 000 000 USD

MAY 2021




"Before rebranding, the DeFi space knew Value DeFi as YFValue (YFV). The project was inspired by the Yearn Finance protocol, a platform designed exclusively to cater to yield farmers."


"Value DeFi is a compilation of products and services for the decentralized finance sector that brings innovation and fairness to the community. This project’s main goals are to increase accessibility to yield farming, provide on-chain governance voting, reward stakeholders with flexible yield strategies, and protect user funds through insurance treasuries." "The Value DeFi suite contains five unique products and services."


"[T]he AMM called vSwap from @value_defi is in trouble." "vSwap is an automated market maker product created by Value DeFi that utilizes smart routing to provide the best rates possible for token swaps. Traders can swap tokens while experiencing low slippage rates and minimal price impact no matter what size they are trading."


"The attacker fisrtly swap 0.05 WBNB for vBSWAP token. [T]he attacker make a flashloan, so vSwap contract will transfer the vBSWAP token and WBNB to the attacker. Before completing the entire exchange process and updating the amount of tokens in the pool, different algorithms will be selected according to whether the tokenWeight0 parameter of the pool is 50 to check whether the amount of tokens in the pool meets expectations. Since the tokenWeight0 parameter of the vSwap contract is set to 70, the second algorithm will be used to check the amount of tokens in the pool. The key point of the vulnerability is that when the second algorithm is used for inspection, the inspection can be passed through specially constructed data."


"The second algorithm is checked by calling the ensureConstantValue function of the formula contract and passing in the amount of tokens cached in the pool and the amount of real-time tokens. After specific analysis and debugging of this algorithm, we can find that when using WBNB to exchange the smallest unit (ie 0.000000000000000001) vBSWAP, a huge fluctuation range is allowed between the WBNB value cached in the pool and the real-time value. This algorithm check within this range will pass. Therefore, the attacker can transfer to WBNB to exchange the smallest unit of vBSWAP tokens, and at the same time lend a large amount of WBNB tokens in the pool through flash loan."


"Due to algorithm problems, they can still pass vSwap check without repaying the flash loan. The attacker only needs to repeat this process continuously in all vSwap pools to steal the liquidity in the pool and complete the profit."


"About $11M was stolen today from non 50/50 pools, in addition to $6M already lost this week as a result of contract reinitialization."


"Value DeFi is a trainwreck." "Six months ago they lost $7M. Three days ago they lost $10M." "Now they’ve lost another $11M."


"The incident was due to the improper use of a complex exponentiation power() function behind the calculation and enforcement of the weighted constant product invariant."


"The very first part of our compensation is live. Please refresh the website to claim your missing tokens."


"Value DeFi is a prime example of how developers can survive in the blockchain industry even if they face several challenges and hardships throughout the production process. Despite the fact that it is not yet a serious competitor, it is still worth observing the project’s growth over the past year and its potential future."


"[T]he native token of Value DeFi has recovered somewhat since the latest exploit. However, Nansen shows us that the DEX volume has been decreasing consistently."

ValueDeFi had previous issues in August 2020, November 2020, and again 2 days prior.


They haven't yet proposed compensation for this latest attack.


Decentralized finance is extremely complicated, and these smart contracts function as immutable hot wallets.


The only secure storage of funds is in an offline multi-signature wallet.


Check Our Framework For Safe Secure Exchange Platforms

Sources And Further Reading

 For questions or enquiries, email info@quadrigainitiative.com.

Get Social

  • email
  • reddit
  • telegram
  • Twitter

© 2021 Quadriga Initiative. Your use of this site/service accepts the Terms of Use and Privacy Policy. This site is not associated with Ernst & Young, Miller Thompson, or the Official Committee of Affected Users. Hosted in Canada by HosterBox.