Skip to content

Commit

Permalink
Removed upper bound that does not exist in implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
poliwop committed Jul 14, 2023
1 parent b11f448 commit fed15b9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hydradx/model/amm/omnipool_amm.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,6 @@ def execute_add_liquidity(
if (state.total_value_locked + quantity * usd_price(state, tkn_add)) > state.tvl_cap:
return state.fail_transaction('Transaction rejected because it would exceed the TVL cap.', agent)

if (state.liquidity[tkn_add] + quantity) > 10 ** 12:
# TODO: this may not actually exist as part of the protocol
return state.fail_transaction('Asset liquidity cannot exceed 10 ^ 12.', agent)

# assert quantity > 0, f"delta_R must be positive: {quantity}"
if tkn_add not in state.asset_list:
for sub_pool in state.sub_pools.values():
Expand Down

0 comments on commit fed15b9

Please sign in to comment.