Skip to content

Commit

Permalink
Add tutorial cross ref
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Apr 19, 2024
1 parent 0a08cbf commit 7ca6315
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/tutorials/make-uniswap-v3-swap-in-python.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _uniswap-v3-swap:

.. meta::
:title: How to swap tokens on Uniswap v3 using Python
:description: Python Uniswap 3 token swap tutorial
Expand Down
7 changes: 6 additions & 1 deletion eth_defi/uniswap_v3/swap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Uniswap v3 swap helper functions."""
"""Uniswap v3 swap helper functions.
- :ref:`Read full tutorial <uniswap-v3-swap>`_.
"""
import warnings
from typing import Callable
import logging
Expand Down Expand Up @@ -30,6 +33,8 @@ def swap_with_slippage_protection(
"""Helper function to prepare a swap from quote token to base token (buy base token with quote token)
with price estimation and slippage protection baked in.
:ref:`Read full tutorial <uniswap-v3-swap>`_.
Example:
.. code-block:: python
Expand Down

0 comments on commit 7ca6315

Please sign in to comment.