Skip to content

leeftk/uniswapV4-points-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniswap V4 Airdrop Points Hook

This is a Uniswap V4 hook that shows the basic functionality of creating a points systems based on a users swap of a specfic assets.

The contract uses the afterSwap hook to calculate the amount of tokens and user has swapped and mint the respecitve "points" tokens for them.

A user can them claim their rewards in the contract by burning their points tokens.

The hook is very simple and straight forward

To run clone this repo.

  • Run forge install

  • Run forge test

Security Considerations

This is NOT production grade or audited. Use at your own risk. Also this does not consider the gas costs and assumes that users do not care about the price of the transaction.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published