Skip to content

fea: add withdraw methods for buyback#98

Merged
ricklista merged 1 commit into
masterfrom
feature/buyback-v3
Dec 11, 2025
Merged

fea: add withdraw methods for buyback#98
ricklista merged 1 commit into
masterfrom
feature/buyback-v3

Conversation

@ricklista

Copy link
Copy Markdown
Contributor

📄 Description

Add withdraw function for Buyback and ListaAutoBuyback

🧠 Rationale

Allow bot to withdraw erc20 token or native token to the receiver addres.

🧪 Example / Testing

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

🧬 Changes Summary

  • Buyback contract add function wtihdraw(address _token, uint256 _amount) onlyRole(BOT)
  • ListaAutoBuyback contract add function wtihdraw(address _token, uint256 _amount) onlyRole(BOT)

@ricklista ricklista force-pushed the feature/buyback-v3 branch from e2ed864 to 3af173e Compare August 8, 2025 03:19

@qingyang-lista qingyang-lista left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ricklista ricklista merged commit c8be75b into master Dec 11, 2025
1 check passed
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.

2 participants