numotrade/strat-maker

Swap Structural Improvements

Closed this issue · 0 comments

Gas improvements can be made to the swap function by caching data such as liquidityTotal and liquiditySwap in between swaps. Also keeping track of offset (the number of strikes to the right or left that are considered active) could help increase the efficiency of loops. If possible use a high order function to perform looping.