Skip to content

Commit 8634806

Browse files
committed
Docstring fixes
1 parent 0761cbf commit 8634806

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

eth_defi/uniswap_v2/fees.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Uniswap v2 price impact and fee calculations.
1+
"""Uniswap v2 token price, fee and price impact calculations.
2+
3+
- To get a price in Uniswap v2 pool in human-readable format see
4+
:py:func:`estimate_sell_price` and :py:func:`estimate_buy_price`.
25
36
`Mostly lifted from Uniswap-v2-py MIT licensed by Asynctomatic <https://github.com/nosofa/uniswap-v2-py>`_.
47
"""
@@ -284,9 +287,9 @@ def estimate_sell_price(
284287
)
285288
286289
# Estimate the price of selling 1 ETH
287-
usdc_per_eth = estimate_price(
290+
usdc_per_eth = estimate_sell_price(
288291
uniswap_v2,
289-
weth,user_1
292+
weth,
290293
usdc,
291294
1 * 10**18, # 1 ETH
292295
)

0 commit comments

Comments
 (0)