Function calcLPPrice

    • Calculates the LP price

      Parameters

      • r0: bigint

        pool supply of asset 0

      • r1: bigint

        pool supply of asset 1

      • p0: bigint

        price of asset 0

      • p1: bigint

        price of asset 1

      • lts: bigint

        circulating supply of liquidity token

      Returns bigint

      bigint LP price