in many token contracts the amount parameter is called wad
I was not able to make sense what this means or where it comes from. Does someone have a clue?
As i know it was introduced by Dapp tool-suite (part of dapphub project) as a concept representing a number with 18 decimals. So i presume the contract developed using Dapp libraries or tools use the same names.
A wad is a decimal number with 18 digits of precision that is being represented as an integer.
A ray is a decimal number with 27 digits of precision that is being represented as an integer.
Under the hood, they both are uint (i.e. uint256).
Introduced by DS-Math library. With DS-Math you can safely add, subtract, multiply, and divide uint numbers without fear of integer overflow. You can also find the minimum and maximum of two numbers.
This naming convention helps a programmer avoid mistakes while performing arithmetic operations on these values.
Hope this helps!
Everything Badr and Raman said, plus I don't think it's an actual acronym, but I like to make it as one. Pick whichever you like: