Skip to content

Commit

Permalink
Added METISdao "tethys" DEX
Browse files Browse the repository at this point in the history
  • Loading branch information
tsarbuig committed Mar 2, 2022
1 parent d9a040b commit 3086267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LimitSwap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3350,7 +3350,7 @@ def calculate_base_price():

pair_contract = client.eth.contract(address=pair_address, abi=lpAbi)
reserves = pair_contract.functions.getReserves().call()
basePrice = Decimal((reserves[1] / DECIMALS_STABLES) / (reserves[] / DECIMALS_ETH))
basePrice = Decimal((reserves[1] / DECIMALS_STABLES) / (reserves[0] / DECIMALS_ETH))
printt_debug("METIS PRICE: ", "{:.6f}".format(basePrice))

else:
Expand Down

0 comments on commit 3086267

Please sign in to comment.