Submitted by csanuragjain
The period size is not updated to current while creating a new pair. This means even if period size has been reduced from default value, this new pair will still point to the higher default value.
Add a new variable which stores the updated period size. Once a pair is created, update its period size using this new variable:
nivasan1 (Canto) confirmed
