forked from Cyfrin/solidity-by-example.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uniswap-v3-flash-swap çevirisi tamamlandı
- Loading branch information
Showing
4 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
--- | ||
title: Uniswap V3 Flash Swap Arbitrage | ||
title: Uniswap V3 Flash Swap Arbitraj | ||
version: 0.8.20 | ||
description: Uniswap V3 Flash Swap Arbitrage | ||
description: Uniswap V3 Flash Swap Arbitraj | ||
keywords: [defi, uniswap, v3, swap, arbitrage, amm] | ||
--- | ||
|
||
### Uniswap V3 Flash Swap Arbitrage Example | ||
### Uniswap V3 Flash Swap Arbitraj Örneği | ||
|
||
```solidity | ||
{{{UniswapV3FlashSwap}}} | ||
``` | ||
|
||
### Test with Foundry | ||
### Foundry ile Test Et | ||
|
||
1. Copy and paste this into `test` folder in your foundry project | ||
1. Bu kodu kopyalayıp projenizin `test` klasörüne kaydedin | ||
|
||
```solidity | ||
{{{UniswapV3FlashSwapTest}}} | ||
``` | ||
|
||
2. Execute the following commands to run the test | ||
2. Testi başlatmak için aşağıdaki komutları çalıştırın | ||
|
||
```shell | ||
FORK_URL=https://eth-mainnet.g.alchemy.com/v2/613t3mfjTevdrCwDl28CVvuk6wSIxRPi | ||
forge test -vv --gas-report --fork-url $FORK_URL --match-path test/UniswapV3FlashSwapTest.test.sol | ||
``` | ||
|
||
### Links | ||
### Linkler | ||
|
||
<a href="https://github.com/foundry-rs/foundry" target="__blank">Foundry</a> | ||
|
||
<a href="https://github.com/t4sk/defi-notes" target="__blank">Uniswap V3 Foundry example</a> | ||
<a href="https://github.com/t4sk/defi-notes" target="__blank">Uniswap V3 Foundry örneği</a> |