Closed nventuro closed 3 years ago
It's been suggested to have multiple types of Trading Strategies, including one that only requires information about the pair being traded, and one that requires all balances in the pool. This information could be packed along with the Strategy's address.
This will also apply to reading and writing cash
and investment
structs (see here).
This seems to be mostly done, but it'd be good to perform some measurements to make sure we're indeed packing data correctly.
Completed with #163.
Pack the pool struct and access it in such a way that storage reads are minimized in high-frequency actions. For example,
swap
might only require reading the swap fee and token balances.