File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,22 @@ def get_fees(
4141 above : bool ,
4242) -> float :
4343 """Returns the liquidity fee."""
44- tick_fee_key = ' fees_out_tao' if quote else ' fees_out_alpha'
44+ tick_fee_key = " fees_out_tao" if quote else " fees_out_alpha"
4545 tick_fee_value = fixed_to_float (tick .get (tick_fee_key ))
4646 global_fee_value = global_fees_tao if quote else global_fees_alpha
4747
4848 if above :
49- return global_fee_value - tick_fee_value if tick_index <= current_tick else tick_fee_value
49+ return (
50+ global_fee_value - tick_fee_value
51+ if tick_index <= current_tick
52+ else tick_fee_value
53+ )
5054 else :
51- return tick_fee_value if tick_index <= current_tick else global_fee_value - tick_fee_value
55+ return (
56+ tick_fee_value
57+ if tick_index <= current_tick
58+ else global_fee_value - tick_fee_value
59+ )
5260
5361
5462def get_fees_in_range (
You can’t perform that action at this time.
0 commit comments