Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brevis Fee Discount Hook for PancakeSwap Infinity (Token Holding Based)

This repo implements the hook contract that enables swap fee discounts in a PancakeSwap Infinity (v4) pool for long-term token holders.

Specifically, users (who have made at least 1 swap in the pool) are categorized into different fee discount tiers according to their last 30-day Time-Weighted Average (TWA) balances of a given ERC-20 token. The TWA token balance is attested trustlessly using Zero-Knowledge Proofs generated by Brevis zkCoprocessor solution.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages