# Minting IST - PSM

## Step 1: Connect PSM Dapp to Agoric Smart Wallet

1. Navigate to <https://psm.inter.trade/> . **Note: if you are using Brave browser, please ensure to turn off Brave shields before proceeding as it will interfere with the dapp->wallet communication.**
2. Verify you are connecting to 'Agoric Mainnet' in drop-down then click ***'Connect Keplr'*** on far right:
3.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2F7copq96Mq7BLRUnxr6Xs%2Fimage.png?alt=media&#x26;token=96444052-4398-47a1-aa31-415aba75c45a" alt=""><figcaption></figcaption></figure>
```

4. Once complete you'll see 'Keplr Connected' and you will see IST Swap panel features appear however you will need to accept the dapp connection in your Agoric Smart wallet to continue:
5.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FS3ncJFzpWuvRdUYJeI8l%2Fimage.png?alt=media&#x26;token=bf0a77dd-0fb1-4b68-b3a0-c844394f8e18" alt=""><figcaption></figcaption></figure>
```

6. Launch <https://wallet.agoric.app/wallet/>. In 'Dashboards' view - hit *'**Accept'*** for PSM Dapp Connection.
7.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FCaO33xk1QOGf32n42yOm%2Fimage.png?alt=media&#x26;token=10140753-7594-4213-aeeb-4e3408f0f945" alt=""><figcaption></figcaption></figure>
```

8. You've now connected the PSM Dapp to your Agoric Smart Wallet and are ready to mint IST on the PSM!

## Step 2: Mint IST

1. Navigate back to the your PSM UI browser tab (or re-open <https://psm.inter.trade/> in a new tab)
2. On the IST Swap feature input screen, click 'Select Asset' in the 'Swap From' dropdown and select the stable asset you wish to swap for IST.
3.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FsUETlRSUCCPKZvLimPEQ%2Fimage.png?alt=media&#x26;token=ba2a2302-6173-4c73-9d3a-4a6b63bb8490" alt=""><figcaption></figcaption></figure>
```

4. Enter the amount you would like to swap and hit **'Create Swap Offer'** (Note: Any applicable fees (in IST) will be deducted and reflected in your quoted IST amount.):
5.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FofQXpz4Nai78DAEfLYlQ%2Fimage.png?alt=media&#x26;token=1f74f8e3-8889-4906-b48a-571ac12a993f" alt=""><figcaption></figcaption></figure>
```

6. You will see confirmation of swap offer sent in bottom right corner of the PSM:&#x20;
7. ![](https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FlYkZykBR5Uf2HQU7Jc9I%2Fimage.png?alt=media\&token=1d472770-b965-464e-9c03-7b7cbefab95e)
8. Navigate back to your **Agoric Smart Wallet** browser tab. You will see the swap offer appear as a panel on the right of you purses. In this example the stable token you are swapping for IST is the 'Give In' token with 'Want Out' token being IST. You will also see the Review and hit **'Approve'**:
9.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FCed5J9TfrVb7EKpQFqRX%2Fimage.png?alt=media&#x26;token=5f9daeb4-b2b4-442d-88c0-4156c60efd5a" alt=""><figcaption></figcaption></figure>
```

10. You will then be prompted to approve transaction in your Keplr wallet (or your Ledger) - hit **'Approve'**:
11. ![](https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FwwLLpxDsjatTOvLs6Ge9%2Fimage.png?alt=media\&token=9d93e476-34b9-4dd0-affa-e5aa0d5efe95)
12. Upon completion of the swap, the offer will update from 'Pending' to 'Accepted', your IST will appear in your **Agoric Smart Wallet** purse and in your **Keplr** wallet (under ‘**Tokens**’):
13. ![](https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FOExHa9ceifBcsEOx1fcI%2Fimage.png?alt=media\&token=f1a521ec-5577-45c5-a4ff-032c6f1658b4)
14. ![](https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2FqX5tjCSeKoJ5E1TWuBvQ%2Fimage.png?alt=media\&token=22d6f487-8a97-4341-bbf5-cb3c627a32d2)
15.

```
<figure><img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2F8cyHFuIkWshsVC0uN9BV%2Fimage.png?alt=media&#x26;token=f31b4647-cdf4-4895-a241-feb8cc2d7739" alt=""><figcaption></figcaption></figure>
```

16. Congratulations! You have just minted $IST and are ready to #ridethecosmos!

## To Swap IST back for a stable token

**Note: We strongly advise that you do not trade away all of your IST as doing so means you will no longer have any IST for future trades.**

To swap your IST back to a stable token, hit the ‘***reverse/switch***’ toggle on the IST Swap dialog box on <https://psm.inter.trade/>.

You will need to similarly approve the offer in your Agoric Smart Wallet and approve Keplr transaction (as above).&#x20;

<img src="https://1714907370-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjDqipfC042hCrAnrGTsP%2Fuploads%2F1xWZSxZgQ68kgUF4vHfq%2Fimage.png?alt=media&#x26;token=52123a07-bdd3-461b-9c8f-98a2d4f97336" alt="" data-size="original">
