SWOOP is a fork from Uniswap, please check, the Uniswap V2 whitepaper has most relevant math for Uniswap V2.
Last updated 4 years ago