If a liquidity provider adds assets in the correct ratio, their LP shares should match the fraction of the pool they added.
Implement lp_shares_to_mint.
Use:
x_deposit * total_lp_supply / x_reserveIf the pool has:
10001000And the depositor adds 250 X proportionally, they should receive:
250 * 1000 / 1000 = 250