# 【交互教程】StarkSwap测试网教程

By [0x4ever.eth](https://paragraph.com/@0x4ever-eth) · 2022-03-31

---

### 一、项目介绍

StarkSwap是Starknet上的第一个AMM DEX，底层技术是zk-rollup，主打高速+低GAS。

**交互前提示：做此交互一定一定一定一定一定要极其有耐心!!!!!!!!!!!!!!!!!!**

### 二、交互教程

**（一）前期准备：准备Argent X钱包**

该钱包的下载安装详见下述教程中钱包安装部分：

[https://mirror.xyz/0xDBb497d673304aFC37ae7A9Ac72128719E22eb33/n3THwT8HorgQWTyP5T\_dA0qCCbCfzVC2oehP1laiRxE](https://mirror.xyz/0xDBb497d673304aFC37ae7A9Ac72128719E22eb33/n3THwT8HorgQWTyP5T_dA0qCCbCfzVC2oehP1laiRxE)

**（二）交互教程**

1、测试网链接：

[https://www.starkswap.co/](https://www.starkswap.co/)

2、打开Agent X钱包，网络切换至Goerli Testnet

![](https://storage.googleapis.com/papyrus_images/78cdc1e5c6eadafcd338d0edb0f9b39fdddab6f29b3c60881cf116a4228c10c0.png)

3、打开测试网网站，点击Launch App，进入Dapp

![](https://storage.googleapis.com/papyrus_images/d19a4a2a149cbb580db90eb59b38bfec3574fa3c28b2172e22cc779621ca7599.png)

4、点击Connect Wallet

![](https://storage.googleapis.com/papyrus_images/09bf358371dd6471869c49e8a5b99ac56e5471ed1e313ffce10a7048e5d500d3.png)

5、弹出钱包窗口，点击connect

![](https://storage.googleapis.com/papyrus_images/6d460c09bb84fc2d19892861234f810cdcfd7dd1ea20fa1d809401571b316838.png)

6、点击Faucet，然后点击Select a token领取测试代币LAN和BAR

![](https://storage.googleapis.com/papyrus_images/38e8225863e8c71bc84feb47fd4385c1711791e0baba1a92bed5caa8c251c7a9.png)

![ 先点击选择LAN](https://storage.googleapis.com/papyrus_images/32ea3e07c42ac21bdb8055daa103bf364915173fd45dbcb8e2a2666a203a509b.png)

先点击选择LAN

![然后点击 +Add Token，再选择BAR](https://storage.googleapis.com/papyrus_images/e937e8d97d93fe5d950ab866bec59c8a023ab62f4d990ecdaf53b724fe454bb9.png)

然后点击 +Add Token，再选择BAR

7、点击MINT，铸造测试代币（每个测试币种分别最多可铸造1000个）

![](https://storage.googleapis.com/papyrus_images/cc07b1a8290d3fd93bd8781749d14cfa49f443c58daf56187a2423f3514eeacb.png)

8、点击Sign（点击完之后，会回到刚刚的页面，但Starknet这个测试完体验感实在是太差了，可能出现重新跳出钱包的情况，有耐心一点，重新跳出来就继续点Sign好了）。

![](https://storage.googleapis.com/papyrus_images/831abeef999f3c3c82a7c6bec179659aa2680daed19b099a37a2747b281e2ff6.png)

9、出现这个页面即代表测试代币铸造成功

![](https://storage.googleapis.com/papyrus_images/56c8c819095e29f29e221ab4dce1a4b0a84d12dad7ad359edce083cf3f4807d5.png)

11、将测试币添加至钱包：

LAN 合约: 0x03bbfc5f909187acae55466ccd89b60fdbefa7f9e2cc6c36476b77c522548175

BAR 合约: 0x06262afee0366ca716347bde824f1a6a81937f59be15ae261ea0b76018ba9c6c

*   点击+ Add Token
    

![](https://storage.googleapis.com/papyrus_images/9af14c574327d5929b3074777d549e830b775269632d4e3c3a304181aa4e1229.png)

*   在第一行输入代币合约，然后点击continue
    

![](https://storage.googleapis.com/papyrus_images/883aba076ffea207d25a0cdaf43e09877d7907680c8dd16cdb87df2d1b9cba5c.png)

*   可以方便看钱包余额
    

![](https://storage.googleapis.com/papyrus_images/34cc6d60d6140e0ee9ce4c5b49311bb2ca1b27d802282311c9ba5bf0eeba048f.png)

10、使用Swap功能，目前仅能交易LAN- BAR交易对，选择好交易对及数量，点击swap，然后点击confirm swap

![](https://storage.googleapis.com/papyrus_images/e2962dc97da78c3b4605f003844dd932690148e7be67b49ecf4163a019b0802d.png)

![](https://storage.googleapis.com/papyrus_images/6d9016c0da5c7454825c265d09bc0d17aedebec5149e4b159568e5ad5dd86578.png)

11、弹出钱包窗口，点击sign

![](https://storage.googleapis.com/papyrus_images/b8db64269c95bbcc64f3de41b9e98a0719bdb3419092733c353723b6ed0b056e.png)

12、出现此页面，即说明swap成功

![](https://storage.googleapis.com/papyrus_images/94bfdd13beadfeb7dbdf68a57cedc6ddf4b3f4c3d0aa746b81b90ed49f58c247.png)

13、添加流动性，点击Pool，选择LAN- BAR

![](https://storage.googleapis.com/papyrus_images/79e432e93122a5347ef153ef33119aad6c02e1a3d01e71b53ce89bbb22deb600.png)

14、输入组LP的LAN及BAR的数量，调整滑点（默认滑点的话，可能会一直失败），然后点击Deposit，之后点击confirm deposit。

![](https://storage.googleapis.com/papyrus_images/ce1cb4fc73eb99badd77f9917bb3489c1a9afe1b38fc5046a47f62cfdcf72d49.png)

![滑点设置为30%](https://storage.googleapis.com/papyrus_images/c526ee3c48943de55427682744ba91a3196cd32bfe71143bf533d83d84f45757.png)

滑点设置为30%

![](https://storage.googleapis.com/papyrus_images/0ff2c7291087b2bca3f9373ef592bfa771f635851bd2a0f5dd6cfbd4c41df8c7.png)

15、弹出钱包窗口，点击Sign。

![](https://storage.googleapis.com/papyrus_images/56c2f67c0feb56f11bc274a84ad55199f1766b1ae43ec0133c6c01e917440450.png)

16、这样即是添加池子成功。

![](https://storage.googleapis.com/papyrus_images/a30181fca7f2f9b26d6fc3ac1051dfd53053d0e0280bc3885b8ff196b3642343.png)

17、一定记得截图My pool页面！做完测试后，将截图和测试钱包地址发到Discord中的#early adopters频道

![](https://storage.googleapis.com/papyrus_images/0affdca254dd8e1948a95a1f35b15a5464589ac4893177a0fcee2468b84a1d92.png)

18、取出LP，点击withdraw，输入取出的LP数量，然后点击confirm withdraw

![](https://storage.googleapis.com/papyrus_images/5a44d6093573a22b68a76356dc7e10362a4a078ba9f0f1229ecc0649212b3851.png)

19、显示这样即是withdraw成功。

![](https://storage.googleapis.com/papyrus_images/d73ee904535382f7430bb76055445a1add11547d33ea8c25f5f6759d8b00643c.png)

### 再次提醒，做完测试记得将My pool截图和测试钱包地址发到Discord中的#early adopters频道！会给role！

**官方推特：**

[https://twitter.com/starkswap](https://twitter.com/starkswap)

**官方Discord：**

[https://discord.gg/SKYdDS8X](https://discord.gg/SKYdDS8X)

🔔更多内容关注推特

[https://twitter.com/0xforeverever](https://twitter.com/0xforeverever)

---

*Originally published on [0x4ever.eth](https://paragraph.com/@0x4ever-eth/starkswap)*
