Bitget App
Trade smarter
Buy cryptoMarketsTradeFuturesEarnWeb3SquareMore
Trade
Spot
Buy and sell crypto with ease
Margin
Amplify your capital and maximize fund efficiency
Onchain
Going Onchain, without going Onchain!
Convert
Zero fees, no slippage
Explore
Launchhub
Gain the edge early and start winning
Copy
Copy elite trader with one click
Bots
Simple, fast, and reliable AI trading bot
Trade
USDT-M Futures
Futures settled in USDT
USDC-M Futures
Futures settled in USDC
Coin-M Futures
Futures settled in cryptocurrencies
Explore
Futures guide
A beginner-to-advanced journey in futures trading
Futures promotions
Generous rewards await
Overview
A variety of products to grow your assets
Simple Earn
Deposit and withdraw anytime to earn flexible returns with zero risk
On-chain Earn
Earn profits daily without risking principal
Structured Earn
Robust financial innovation to navigate market swings
VIP and Wealth Management
Premium services for smart wealth management
Loans
Flexible borrowing with high fund security
Yearn Finance says faulty script wiped out 63% of treasury

Yearn Finance says faulty script wiped out 63% of treasury

The BlockThe Block2023/12/13 17:51
By:The Block

Quick Take Yearn Finance said a faulty script wiped out 63% of its treasury, but user funds were not affected. Yearn is asking users who profited from the bug to return a “reasonable” amount to the protocol’s multisig.

Yearn Finance says faulty script wiped out 63% of treasury image 0

Yield-farming protocol Yearn Finance said a faulty multisig script wiped out 63% of its treasury. No user funds were affected. 

The incident took place during a "regular fee token conversion process on behalf of Yearn's treasury," according to a disclosure post on Github. The faulty script caused Yearn's entire treasury balance of 3,794,894 lp-yCRVv2 tokens to be swapped for 779,958 yvDAI tokens.

"The entire treasury balance of lp-yCRVv2 (POL, plus fees) was mistakenly transferred to the trading multisig, when only expected a much smaller fees portion. The script used by the trading multisig to swap tokens lacked sufficient output checks and contained a logical error that would have capped the trade size to a reasonable amount,” the post stated.

The trade led to significant price slippage, "which arbed back to the normal price by the market shortly after," the protocol team wrote, asking any users that profited from the price movement caused by the incident "to return an amount that they feel is reasonable to Yearn's main multisig."

Steps to come

To prevent such incidents in the future, the protocol developers plan to "separate POL funds into dedicated manager contracts, introduce more human-readable output messages on trading scripts and enforce stricter price impact thresholds," the post stated.

Earlier this year , an exploit involving an early Yearn version, called iearn, caused damages of $11.6 million, according to PeckShield. In February, an exploit resulted in the loss of $11 million worth of crypto from one of its vaults.


0

Disclaimer: The content of this article solely reflects the author's opinion and does not represent the platform in any capacity. This article is not intended to serve as a reference for making investment decisions.

PoolX: Locked for new tokens.
APR up to 10%. Always on, always get airdrop.
Lock now!

You may also like

Subscribe to TANSSI Savings and enjoy up to 15% APR

Bitget Announcement2025/07/15 11:00

TACUSDT now launched for futures trading and trading bots

Bitget Announcement2025/07/15 10:40

Bitget Spot Bot adds PUMP/USDT

Bitget Announcement2025/07/15 08:00