Skip to content

fea: buyback support pancake and other routers#94

Merged
qingyang-lista merged 8 commits intomasterfrom
feature/buyBack-v2
Aug 8, 2025
Merged

fea: buyback support pancake and other routers#94
qingyang-lista merged 8 commits intomasterfrom
feature/buyBack-v2

Conversation

@ricklista
Copy link
Contributor

📄 Description

Update contracts/buyback/Buyback.sol contracts/dao/ListaAutoBuyback.sol
The buyback contract supports Pancake and other routers.

🧠 Rationale

The 1inch router cannot fully meet the requirements. Upgrade the contracts to support more routers.

🧪 Example / Testing

forge test --match-contract ListaAutoBuyBackTest -vvvv
forge test --match-contract BuybackTest -vvvv

🧬 Changes Summary

  1. change oneInchRouterWhitelist to routerWhitelist
  2. add BoughtBack event for new buyback method
  3. add new buyback method
  4. add tokenWhitelist in ListaAutoBuyback
  5. change add/remove 1inchRouter to setRouterWhitelist
  6. add setTokenWhitelist method in ListaAutoBuyback

@ricklista ricklista force-pushed the feature/buyBack-v2 branch 2 times, most recently from 7d2f5f9 to c729fb1 Compare July 24, 2025 07:27
@ricklista ricklista force-pushed the feature/buyBack-v2 branch from c729fb1 to 0e75124 Compare July 29, 2025 08:44
Copy link
Contributor

@qingyang-lista qingyang-lista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qingyang-lista qingyang-lista merged commit 395064d into master Aug 8, 2025
1 check passed
@qingyang-lista qingyang-lista deleted the feature/buyBack-v2 branch August 8, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants