The four you need first
The things you make
What happens during a run
What starts a run without you
What keeps it safe
→ All of these in detail, with their limits, on
Your account and your keys.
What you set on a trade
Four different limits, routinely confused.
In one line: slippage protects you from other people, and price impact protects
you from yourself.
Only the limit price is enforced on the network itself. A fill below it fails.
The two size limits can only make a trade smaller, so they do not need to be.
Two conventions that trip people up
Amounts are written twice. Machines write amounts as very large integers, so a plan says1000000 where you mean 1.00. Every plan therefore also states
each amount in plain units with the symbol. Read that one.
Prices are two whole numbers, never a decimal. A limit price is written as
out units/in units, for example 1250000/1000000000. A price written as a
decimal has to be converted against two different token scales, and every place
that happens is a place a limit can be multiplied by a million by mistake.