Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wagmiwiz/nft-owners-only-uniswap-hook
https://github.com/wagmiwiz/nft-owners-only-uniswap-hook
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/wagmiwiz/nft-owners-only-uniswap-hook
- Owner: wagmiwiz
- License: mit
- Created: 2023-07-04T14:17:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-04T14:21:04.000Z (over 1 year ago)
- Last Synced: 2024-08-01T18:24:28.680Z (4 months ago)
- Language: Solidity
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-uniswap-v4-hooks - NFT Owners Only
- awesome-uniswap-hooks - NFT Owners Only
- awesome-uniswap-v4-resources - NFT Owners Only
- awesome-uniswap-v4-resources - NFT Owners Only
README
# nft-owners-only-uniswap-hook
A Uniswap v4 hook that disallows a swap if sender doesn't own an ERC721 NFT
__Note that this is just a toy example and it will obviously not work for real as in most cases the senders are routers and aggregators__
Thanks to:
- [saucepoint](https://twitter.com/saucepoint) for their [v4 hooks template](https://github.com/saucepoint/v4-template)