Burning LP shares returns the same fraction of each reserve.
Implement withdraw_amounts.
Use:
x_out = lp_burn * x_reserve / total_lp_supply
y_out = lp_burn * y_reserve / total_lp_supplyBurning 250 LP out of 1000 total supply means burning 25% of the pool.
So from reserves (1200, 2400) the provider receives:
300 600