Alchemix Conversion Bug

Funds are safu

Recently, some community members noticed discrepancies between the amount of collateral they initially deposited and the amount that they had actively working to repay their debts. After some investigation, the Alchemix core team noticed a small bug in the Alchemist.liquidate() function.

Before unwrapping, the Alchemist converts the amount of shares being liquidated into the necessary amount of yield tokens. This issue was caused by a call to the wrong conversion function, thus causing the Alchemist to liquidate more yield tokens than expected (the underlyingTokens:yieldTokens ratio increases during normal operation), while still decrementing the user’s account by the correct amount of shares. The result was that, for any user that calls the liquidate() function, their shares balance was decremented by the correct amount, but every other depositor was subject to a small loss.

A patch was written and deployed within 24 hours of when the issue was first identified.

The Alchemix core team has run an analysis of all the accounts affected by this bug, and, as of today, has deposited the necessary reimbursements to any affected users’ accounts, no matter how small.

The reimbursed funds were pulled from the Elixir module. All liquidated collateral is sent to the Elixir (via the TransmuterBuffer) from the Alchemist, so these funds were never lost.

All funds are safu.

--

--

--

https://alchemix.fi

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I became Google Certified Associate Android Developer at age 13

The product backlog must be connected with objectives and key results

objectives and key results, okr, goals, SMART

Linked lists & Binary Trees

Integrating MongoDB with Flask

Git, HTML/CSS Principles

A Step-By-Step Guide to Predictive Analytics on AWS — Generating Sensor Data with a Raspberry Pi…

Google I/O 2019 takeaways

Review List 4

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alchemix Finance

Alchemix Finance

https://alchemix.fi

More from Medium

New collateral types

Fei Newsletter April 2022

Tips for new DAO contributors

Yearn: takeaways from the blue pill