A costly script error: Yearn Finance loses 63% of its treasury

A costly script error: Yearn Finance loses 63% of its treasury
фото показано с : invezz.com

2023-12-14 21:32

In a recent development, decentralized finance (DeFi) protocol Yearn Finance faced a major setback as a faulty script led to the inadvertent swap of 63% of its treasury.

The incident occurred during a routine token conversion process, impacting Yearn’s protocol-owned liquidity (POL) but leaving user funds unscathed. This article delves into the details of the incident, the technical aspects involved, and the steps Yearn Finance is taking to address the aftermath.

The script error that drained Yearn Finance’s treasury

According to a post on Github, a faulty multisig script triggered the swap of Yearn Finance’s entire treasury balance of 3,794,894 lp-yCRVv2 tokens. This mishap occurred during a standard fee token conversion process on behalf of Yearn’s treasury. Importantly, this loss exclusively involved protocol-owned liquidity (POL) and did not affect user funds.

The faulty script, which lacked sufficient output checks and contained a logical error, caused the entire lp-yCRVv2 treasury balance to be transferred to the trading multisig. This exceeded the expected fees portion, resulting in a substantial loss amounting to 63%.

Notably, the incident prompted a call from Yearn Finance for users who profited from the market movement caused by the error to return a reasonable amount to Yearn’s main multisig wallet (0xFEB4acf3df3cDEA7399794D0869ef76A6EfAff52).

The Yearn Finance (YFI) token remained relatively calm following the incident oscillating between a low of $8,166.96 and a high of $8,465.69.

Safeguarding the future: Yearn’s response

To prevent such mishaps in the future, Yearn Finance is taking proactive steps. Developers plan to implement several safeguards, including the separation of POL funds into dedicated manager contracts, the introduction of more human-readable output messages on trading scripts, and the enforcement of stricter price impact thresholds.

This incident follows earlier exploits in Yearn Finance’s history, emphasizing the ongoing challenges and risks associated with DeFi protocols. As the ecosystem evolves, these experiences contribute to the maturation of DeFi platforms, including Yearn Finance, driving the implementation of enhanced security measures and risk mitigation strategies.

The post A costly script error: Yearn Finance loses 63% of its treasury appeared first on Invezz

origin »

Bitcoin price in Telegram @btc_price_every_hour

yearn.finance (YFI) на Currencies.ru

$ 0 (+0.00%)
Объем 24H $0
Изменеия 24h: 0.00 %, 7d: 0.00 %
Cегодня L: $0 - H: $6229.77
Капитализация $0 Rank 99999
Доступно / Всего 0 YFI

yearn finance treasury script protocol-owned liquidity pol

yearn finance → Результатов: 126


Основатель Yearn.finance указал на необходимость регулирования блокчейн-индустрии

По мнению основателя проекта Yearn. finance Андре Кронье, блокчейн-индустрия нуждается в регулировании. Напомним, Кронье создал DeFi-протокол Yearn. finance, однако в марте он объявил об уходе из состава команды разработчиков.

2022-4-20 07:03


На фоне ухода Андре Кронье из индустрии цена токена yEarn Finance упала на 11%

Старший архитектор решений Fantom Foundation Антон Нелл и ведущий DeFi-разработчик экосистемы, а по совместительству основатель yEarn Finance Андре Кронье решили покинуть криптовалютную индустрию.

2022-3-7 16:19


Белый хакер помог DeFi-протоколу Yearn.Finance исправить уязвимость

Основной разработчик экосистемы DeFi Yearn. Finance (YFI) Бантег (@bantg) сообщил подробности гипотетической атаки на элементы своего протокола, которые раскрыл так называемый белый хакер. Ещё 30 января 2022 года специалист описал сценарий атаки на SingleSidedBalancer, элемент инструментария доходного фермерства Yearn.

2022-2-14 13:43


У Grayscale может появиться траст на базе yEarn.Finance

Крупнейший управляющий криптовалютными активами Grayscale Investments потенциально может запустить траст на базе токена DeFi-проекта yEarn. Finance. Инвестиционный продукт зарегистрировал доверенный представитель фирмы —Delaware Trust Company (DTC).

2021-2-12 11:24


Хакер вывел $2,8 млн из пула DeFi-проекта yEarn.Finance

5 февраля команда DeFi-проекта yEarn. Finance обнаружила и исправила уязвимость в пуле v1 yDAI. Неизвестному злоумышленнику удалось вывести часть средств. We have noticed the v1 yDAI vault has suffered an exploit.

2021-2-5 11:14