4 ms·
Interestingly, while some are quoting a "single line of code", the article is actually using some even stranger information: > "Mr. Wang created this back door
by tsimionescu 4y ago
Interestingly, while some are quoting a "single line of code", the article is actually using some even stranger information:
> "Mr. Wang created this back door by inserting a single number into millions of lines of code [emphasis mine] for the exchange, creating a line of credit from FTX to Alameda, to which customers did not consent," [FTX lawyer Andrew Dietderich] added. "And we know the size of that line of credit. It was $65 billion."
- conanbatt 4y ago> inserting a single number into millions of lines of code So basically a clean npm install.
- faangiq 4y agoAbsolutely lulzy to think of cranking out millionssss of lines of code in the ~2 years FTX existed.
- connicpu 4y agoI feel like it's safe to say the bulk of that was generated, and/or they're including all code imported as vendored dependencies
- beaned 4y agoMaybe some specific accounts were hard-coded to have credit lines of certain amounts, and they just changed the one for Alameda from 0 (or whatever) to 65 billion. Not uncommon for a startup to hack features into code directly before there's a db column and frontend to support updating values through an admin interface.
- Centigonal 4y ago$65B seems oddly specific - could it be that they just set the liquidation limit for Alameda's account to 65,535 (max 16bit unsigned int), in millions of dollars?
- dahfizz 4y agoIt feels more likely that he just chose $65B rather than an exchange using unsigned 16 bit integers to do accounting.
- detrites 4y agoThis is FTX, remember.
- dahfizz 4y agoThis is less of a "haha FTX so dumb" and more of a "how could that possibly ever hang together for 2 years??"
- cdjk 4y agoNah, seems like they'd be more likely to use floats for accounting.
- ben_w 4y agoNot quite the worst use for floats, bad though that would be. I've received a few SMSes over the pandemic that used a float for their caller ID. Not sure why the German Federal government chose to identify itself as "+4.4786E+11" when welcoming me into the country (actually me switching my UK SIM card to no-longer-Airplane-mode) and telling me to quarantine and test.
- mgsouth 4y agoI recently recieved an email from Phillips (re CPAP recall) which said "In the meantime, your device registration confirmation number is 2.02xxxxE+15." [some digits obscurred by me, although they dropped some of the trailing digits].
- beau_g 4y agoIt must have been an existing boolean flag he set to true, allowSecret65BillionDollarBackdoor