# ERC20 Permit2

{% hint style="info" %}
**2HOT DAO** uses UNISWAP v3 system (ATM-until DAO) for token buying and contracts. \
Uniswap secure Permit2 Contract can be found at the address:\
0x000000000022D473030F116dDEE9F6B43aC78BA3\
Uniswap v3 Router:\
0xE592427A0AEce92De3Edee1F18E0157C05861564
{% endhint %}

### What is ERC20 Approval/Permit2?

ERC20 approval is a process in which an Ethereum token holder grants permission to a smart contract to spend a specific amount of tokens on their behalf. This approval is necessary for the transfer of tokens from one address to another.\
\
2HOT DAO approval is done directly on the verified Ethereum Contract, and cannot be spendable after the "Buying of the xHOT"

```
// function buy(uint256 _amount) external nonReentrant {
        uint256 weiAmount = _amount.mul(price).div(decimals);
        token.safeTransferFrom(msg.sender, owner, _amount);
        totalSold = totalSold.add(_amount);
        emit Sold(msg.sender, _amount);
    }
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://2hot-dao.gitbook.io/2hotdao-docs/xhot-whitepaper/how-to-buy-xhot/erc20-permit2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
