https://github.com/jamesbachini/Uniswap-V4-Torres-Token-Sale
A Solidity ERC20 token using Uniswap v4 hooks to create a compliant token sale system following judge Torres ruling in the XRP case
https://github.com/jamesbachini/Uniswap-V4-Torres-Token-Sale
Last synced: about 2 months ago
JSON representation
A Solidity ERC20 token using Uniswap v4 hooks to create a compliant token sale system following judge Torres ruling in the XRP case
- Host: GitHub
- URL: https://github.com/jamesbachini/Uniswap-V4-Torres-Token-Sale
- Owner: jamesbachini
- Created: 2023-07-14T20:06:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T20:06:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T20:45:28.970Z (7 months ago)
- Language: Solidity
- Size: 4.88 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-uniswap-v4-hooks - Torres Token Sale
- awesome-uniswap-v4-resources - Torres Token Sale
- awesome-uniswap-v4-resources - Torres Token Sale
- awesome-uniswap-hooks - Torres Token Sale
README
# Uniswap v4 Token Sale
This repo is an unfinished/untested experiment to create a compliant token sale contract following the regulatory guidance coming out of the XRP case.
Concept: https://jamesbachini.com/xrp-legal-case/
The idea is to have an ERC20 token which get's distributed to stakeholders in the project. A percentage of their holdings gets deposited to a Uniswap v4 liquidity pool. The pool includes a hook which allows VC's and crypto funds to buy tokens for a period of time with a minimum sale amount. Once the private round is over the hook is bypassed to enable public trading.
Test in foundry (recommend using WSL or a unix based OS)
```
curl -L https://foundry.paradigm.xyz | bash
source /home/james/.bashrc
foundryup
forge install https://github.com/Uniswap/v4-core --no-commit
forge install https://github.com/Uniswap/v4-periphery --no-commit
forge install openzeppelin/openzeppelin-contracts --no-commit
forge install marktoda/forge-gas-snapshot --no-commit
forge test
```More info on Uniswap v4 hooks at https://jamesbachini.com/uniswap-v4-hooks/
Note that this code is a work in progress and shouldn't be forked or used in a production environment