Based on the weighted stableswap invariant, as derived in the whitepaper. Pool and staking contract follow specification.
# Install foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
# Install ape and mpmath
pip install eth-ape
pip install mpmath
# Install required ape plugins
ape plugins install .
ape test