Feat: Add public getter for invariant of pools
Alexangelj opened this issue · comments
Description
The invariant is a key variable that is derived from the state of a pool. Its computable, but the steps to compute it are complicated and can easily have errors made in them. To make it easier for developers to get the invariant, we should add a public getter that uses the HyperLib.sol library to derive the invariant.
Can probably do this if it doesn't make the contract size too large.