core.test_uniswap_edge

def test_hodl_value_zero():

Test IL calculation when HODL value is zero. This can happen if the initial position was zero. Expected behavior: IL should be zero, no division by zero error.

def test_investment_zero():

Test IL vs deposit when the initial investment is zero. Expected behavior: IL should be zero, no division by zero error.

def test_lp_value_zero():

Test IL calculation when the LP value has gone to zero.

def test_normal_il_case():

Test a standard IL calculation for both functions.