# Custom ERC-20

Before starting your sale in your collection, you must install the ERC-20 app to your collection and add the custom token to your contract.

### **Step 1: Install the ERC-20 App**

Make sure you have installed the ERC-20 app to your collection before proceeding to the next step. To install:

* [Go to your collection dashboard](https://app.niftykit.com/dashboard?tab=collections) in NiftyKit
* Navigate to the app tab
* **Click on \[Add] in ERC-20 to install.**

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F2g72Ka03GB3hNnRZ5WZg%2Fimage.png?alt=media&#x26;token=d1d288e0-2558-4071-914e-8e0428ed732c" alt="" width="375"><figcaption><p>Apps you can install with your Diamond Contract in NiftyKit</p></figcaption></figure>

### **Step 2: Verify Token Existence**

Ensure that your **custom ERC-20 token exists on the Ethereum network** where your NFT collection is deployed.

### **Step 3: Access your Contract via** [**louper.dev**](https://louper.dev/)

Go to[ louper.dev](https://louper.dev/), the platform where you can configure the Smart Contract of your NFT Collection. Access our contract by searching your contract address

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FlYgg07Rc5jlcccA1Yw36%2Fimage.png?alt=media&#x26;token=d97aabaa-6c7b-4032-93aa-24c428479dea" alt="" width="563"><figcaption><p>Searching Your Contract in louper.dev</p></figcaption></figure>

### **Step 4: Add the Custom ERC-20 Token**

Within louper.dev, you need to:

* Navigate to the "Write" function, find the option named `"erc20SetActiveToken."`
* Enter the `tokenAddress` of your custom ERC-20 token into this field. This specifies which token will be accepted as payment for NFTs in your collection.
* "Execute" to confirm the transaction.

{% hint style="info" %}
Make sure the wallet connected is the collection owner and the token exists on the network
{% endhint %}

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FQ4n8Hz9lRDmH7asuArRz%2Fimage.png?alt=media&#x26;token=37d9b393-70af-459e-b3ac-2ab9fdbd233e" alt=""><figcaption><p>Adding custom ERC-20 token in your contract via louper</p></figcaption></figure>

### **Step 5: Refresh the Collection Dashboard**

* After you've entered the custom token's address in louper, [go back to your collection dashboard](https://app.niftykit.com/login) and refresh the page. Once it's properly added a "CUSTOM" active token  will show under your overview dashboard.

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2Fabe3524HQxNsS00u3LmG%2Fimage.png?alt=media&#x26;token=c9844c58-be15-47b8-8621-c7c2297e0d85" alt=""><figcaption><p>Custom Token added to your collection dashboard</p></figcaption></figure>

### **Step 6: Verify Custom Token**

Click edit and check your custom ERC-20 token is now listed.

### **Step 7: Adjust Sale Settings**

You can activate the sale of your NFTs via the \[Prepare Drop Button]. You will still have the option to use either the base token (e.g., ETH) or an app token (e.g., apeCoin) according to your preferences

{% hint style="danger" %}
If you want to switch from one token to another while the sale is active, collectors may encounter errors when trying to mint NFTs. In such cases, you should "Stop Sale" and then restart your sale with the newly selected ERC-20 token.
{% endhint %}

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FnHp0lQd5vdYYgrIH1oTs%2Fimage.png?alt=media&#x26;token=474847d7-c9a1-4621-8406-ac902db9e3d8" alt=""><figcaption><p>Starting your Pre-sale or Public Sale</p></figcaption></figure>

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F04rnR0I2hhgEqZRec6Fm%2Fimage.png?alt=media&#x26;token=5c8cd2d7-3cbd-4f90-85c5-c68e1b8e89e4" alt="" width="375"><figcaption><p>Choosing your Custom ERC-20 Token to accept as payment for your NFT Sales</p></figcaption></figure>

&#x20;**Note on USD Conversion**

Please note that custom tokens may not display a USD conversion in the user interface for the Drop Sale (start sale) dialog or the Mint Checkout dialog.&#x20;

The default will be to show the Tokens Total + Mint Fee ($USD Total)

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FEISbPab1Wj6YXwL28STK%2Fimage.png?alt=media&#x26;token=be82a608-3e8b-4afd-bcc7-4ea665c6b8a4" alt=""><figcaption></figcaption></figure>
