Alti, something else is bugging me about your calculus approach. Would we have to set the sell price and buy price equal to each other? The idea right now is that if you buy and sell in maxordersize amounts, you end up paying exactly what the person who sold that stock to the store got for it, so the store breaks even and is basically a medium between the two players. (When you buy and sell in less than maxordersize amounts it makes a small profit on the deal.) If you use the calculus to smoothly vary the price, then that means the person who sold the stock gets paid less for it, and the person who buys it pays more for it, right? (Meaning that the store would always make a significant profit, and more quickly gets filled up with items that can’t ever get bought back out again because the populace lacks the necessary po8.) So are you assuming we’d just have one buy *and* sell price, or am I missing something significant about your approach?
The calculus approach is identical to yours only smoother.
If somebody sells something, and gets 100 po8 from the sale, and then somebody turns around and buys exactly what the person just sold, it would cost 100 po8.
The store is making zero money with the calculus method.
To use my method for buying from the store instead of selling to the store, use a negative number for the quantity.