Rebase Bug Completely Breaks Yam Governance

HomeCrypto News

Rebase Bug Completely Breaks Yam Governance

A bug within the hastily-developed contracts for Yam Finance resulted within the governance contracts being “completely damaged” and $750,000 value



A bug within the hastily-developed contracts for Yam Finance resulted within the governance contracts being “completely damaged” and $750,000 value of Curve tokens being locked from use.

Andre Cronje, DeFi developer and founding father of the yEarn protocol, informed Cointelegraph that this resulted from a bugged rebase perform.

Yam is meant to be a stablecoin with an analogous mechanism to Ampleforth, with the contracts creating or destroying provide based mostly on the token’s worth to take care of a $1 peg.

Cronje mentioned {that a} bug within the rebase perform meant that every name after the primary one would “exponentially improve [supply] each time by 10^1e18.” 

This leads to a large inflow of recent tokens, excess of there ought to have been.

However there have been three components to the bug, in response to Cronje. The problem was compounded by a further mechanism utilized by Yam to stability the token’s worth. The rebase perform additionally sells “into the yCRV/YAM pool as much as a max of 10% slippage,” he mentioned, to make sure that the worth displays the up to date provide. The proceeds from the sale and remaining YAM are despatched into the venture’s treasury contract.

An extra side of the system is its governance, which requires a share of all tokens to be dedicated to a proposal for 12.5 hours. Whereas there have been earlier considerations about not sufficient tokens being delegated, triggering a assist marketing campaign to get holders to vote, this was finally futile.

Because the rebase created an enormous quantity of recent YAM and despatched it to the treasury contract, it now holds the overwhelming majority of all tokens. “This implies the obtainable YAM available on the market aren’t sufficient to succeed in quorum,” mentioned Cronje.

The result’s that each the governance and the treasury are actually “bricked” and can’t be accessed. The rebase bug can’t be mounted with out entry to governance, so this could in principle spell the demise of the venture — or no less than its current sensible contracts and tokens.



cointelegraph.com