Closed gbalabasquer closed 7 years ago
So functionally everything checks, good job.
The one thing I would like to see changed is the name of the accumulator (pay_amt or buy_amt depending on the function).
We're repeating a name that already has an established behavior elsewhere. In terms of an offer, the buy_amt and pay_amt signify the amount on the make/take side remaining. If an order is partially filled buy_amt and pay_amt decrease. If an order is completely filled they implicitly go to zero.
This makes the additive mechanism of recycling these memes for use in an accumulator confusing (to me).
Does this bother anyone else or am I looking at this wrong?
Guys, I have checked your wok and I have found no errors, or things I could optimize. If Nik agrees we can merge.