• © Goverland Inc. 2026
  • Privacy Policy
  • Terms of Use
dYdXdYdXby0x5A15eE20D9E73B67a1A60E486dDe7282A9D5794D0x5A15…794D

V3 StarkEx Contract Data Availability Bug

Voting ended almost 3 years agoSucceeded

A bug has been identified in the current version of the dYdX StarkEx Cairo code, which is only triggered for the specific case of a Trade resulting in the collateral balance (i.e. value) equaling exactly zero (after all fees are paid) and for an account that still has positions open. In this case, instead of sending the correct funding timestamp for the position, a zero value is sent on-chain, thus, the timestamp won’t be converted into the actual funding indices which constitute the state. This may result in the inability to retrieve funds once the exchange is frozen (doomsday scenario) and both dYdX and StarkWare are unable to provide assistance to users (become malicious or maliciously hacked). Starkware has prepared a fix to the relevant Cairo code to prevent this, and confirmed that other operational change from Starkware or dYdX Trading is minimal around the issue; the on-chain data does not have to change except in this rare-case scenario.

Off-Chain Vote

Yes, fix the bug
20.93M DYDX100%
No, leave it as it is
62.68 DYDX0%
Download mobile app to vote

Discussion

dYdXV3 StarkEx Contract Data Availability Bug

Timeline

Mar 30, 2023Proposal created
Mar 31, 2023Proposal vote started
Apr 04, 2023Proposal vote ended
Oct 26, 2023Proposal updated