Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update providing-liquidity.md #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/docs/milestone_1/providing-liquidity.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@ Let's now actually test minting.

To test minting we need tokens. This is not a problem because we can deploy any contract in tests! Moreover, Forge can
install open-source contracts as dependencies. Specifically, we need an ERC20 contract with minting functionality. We'll
use the ERC20 contract from [Solmate](https://github.com/Rari-Capital/solmate), a collection of gas-optimized contracts,
use the ERC20 contract from [Solmate](https://github.com/transmissions11/solmate), a collection of gas-optimized contracts,
and make an ERC20 contract that inherits from the Solmate contract and exposes minting (it's public by default).

Let's install `solmate`:
```shell
$ forge install rari-capital/solmate
$ forge install transmissions11/solmate
```

Then, let's create `ERC20Mintable.sol` contract in `test` folder (we'll use the contract only in tests):
Expand Down Expand Up @@ -586,4 +586,4 @@ providing liquidity? Here are a couple of hints:

I'll leave it for you to implement these scenarios! Feel free peeking at [the code in the repo](https://github.com/Jeiwan/uniswapv3-code/blob/milestone_1/test/UniswapV3Pool.t.sol).

{{< katex display >}} {{</ katex >}}
{{< katex display >}} {{</ katex >}}