3 ms·
There is a very large crypto currency project, holding 9.3 billion dollars, that believes that variable names should be mostly meaningless, and furthermore that
by danielvf 5y ago
There is a very large crypto currency project, holding 9.3 billion dollars, that believes that variable names should be mostly meaningless, and furthermore that all nouns should be three letters long, and all verbs four. Here's the start of the method "frob()", from the file "vat":
Urn memory urn = urns[i][u];
Ilk memory ilk = ilks[i];
// ilk has been initialised
require(ilk.rate != 0, "Vat/ilk-not-init");
urn.ink = add(urn.ink, dink);
urn.art = add(urn.art, dart);
ilk.Art = add(ilk.Art, dart);
int dtab = mul(ilk.rate, dart);
uint tab = mul(ilk.rate, urn.art);
- trishmapow2 5y agoThis seems to be MakerDAO VAT contract, for those curious. At least it has comments explaining everything at the top. https://etherscan.io/address/0x35d1b3f3d7966a1dfe207aa4514c12a259a0492b#code https://etherscan.io/address/0x35d1b3f3d7966a1dfe207aa4514c1...
- ehnto 5y agoUncooperative, bordering on antagonistic. (kiddng, do whatever you want, but I wouldn't work on that code)
- commandlinefan 5y agoI used to work on an accounting system and for internationalization purposes we dealt with generic "debit units" and "credit units". We had a developer who shortened "debit unit" to "dunt". Want to guess what he shortened credit unit to?
- driverdan 5y agoThis seems like intentional obfuscation to make it harder for others to understand. I would stay far, far away from it.
- dshpala 5y agoLooks like https://github.com/Keydonix/dai-hrd https://github.com/Keydonix/dai-hrd