Skip to content

Commit cf7c212

Browse files
authored
Merge pull request #8953 from aviggiano/patch-1
Remove dangling code block
2 parents a7da942 + f80da5b commit cf7c212

File tree

1 file changed

+0
-6
lines changed
  • src/content/developers/tutorials/uniswap-v2-annotated-code

1 file changed

+0
-6
lines changed

src/content/developers/tutorials/uniswap-v2-annotated-code/index.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,12 +1068,6 @@ Putting it all together we get this graph. Assume you're trying to deposit a tho
10681068

10691069
![Graph](liquidityProviderDeposit.png)
10701070

1071-
```solidity
1072-
}
1073-
}
1074-
}
1075-
```
1076-
10771071
You could deposit liquidity directly into the core contract (using [UniswapV2Pair::mint](https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2Pair.sol#L110)), but the core contract only checks that it is not getting cheated itself, so you run the risk of losing value if the exchange rate changes between the time you submit your transaction and the time it is executed. If you use the periphery contract, it figures the amount you should deposit and deposits it immediately, so the exchange rate doesn't change and you don't lose anything.
10781072

10791073
```solidity

0 commit comments

Comments
 (0)