Skip to content

Commit

Permalink
feat:examples-folder (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannythedawger authored Dec 13, 2022
1 parent 9fa96df commit b662f85
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: The Full Contract
sidebar_position: 6
---

Below we have the complete functioning code example: a contract that can custody Uniswap V3 position NFT's and manipulate the positions and liquidity therein by collecting fees, increasing or decreasing liquidity, and minting new positions. View on github [here](https://github.com/Uniswap/uniswap-docs/blob/main/smart_contract_examples/LiquidityExamples.sol).
Below we have the complete functioning code example: a contract that can custody Uniswap V3 position NFT's and manipulate the positions and liquidity therein by collecting fees, increasing or decreasing liquidity, and minting new positions. View on github [here](https://github.com/Uniswap/uniswap-docs/blob/main/examples/smart-contracts/LiquidityExamples.sol).

```solidity
// SPDX-License-Identifier: GPL-2.0-or-later
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/v3/guides/04-fetching-prices.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This guide will teach you how to fetch the current market price of any token on

### Calling the functions

Similar to other examples, you first must set up your pool. If you’re unsure how to collect all the parameters necessary in creating a `Pool` instance see [Creating a Pool Instance](../guides/03-creating-a-pool.md) or look at this typescript [example](https://github.com/Uniswap/uniswap-docs/blob/main/sdk-examples/AddAndRemoveLiquidity.tsx). The `Pool` class contains two getter methods `token0Price` and `token1Price` which will return the prices of each token respectively as a `Price`.
Similar to other examples, you first must set up your pool. If you’re unsure how to collect all the parameters necessary in creating a `Pool` instance see [Creating a Pool Instance](../guides/03-creating-a-pool.md) or look at this typescript [example](https://github.com/Uniswap/uniswap-docs/blob/main/examples/sdk/AddAndRemoveLiquidity.tsx). The `Pool` class contains two getter methods `token0Price` and `token1Price` which will return the prices of each token respectively as a `Price`.

After constructing the pool, you can save the token prices as constants:

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/v3/guides/liquidity/06-removing-liquidity.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ const { calldata, value } = NonfungiblePositionManager.removeCallParameters(posi

## The example code

You now know how to mint a liquidity position, add liquidity, and remove liquidity. Here's the [full example code](https://github.com/Uniswap/uniswap-docs/blob/main/sdk-examples/AddAndRemoveLiquidity.tsx) for reference.
You now know how to mint a liquidity position, add liquidity, and remove liquidity. Here's the [full example code](https://github.com/Uniswap/uniswap-docs/blob/main/examples/sdk/AddAndRemoveLiquidity.tsx) for reference.
File renamed without changes.
File renamed without changes.

1 comment on commit b662f85

@vercel
Copy link

@vercel vercel bot commented on b662f85 Dec 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs-uniswap.vercel.app
docs-git-main-uniswap.vercel.app
docs.uniswap.org

Please sign in to comment.