Deep Dive into Curve V1: Unraveling the StableSwap Invariant