Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: withdraw in MicroGrantsBaseStrategy does not decrement poolAmount #446

Open
therealharpaljadeja opened this issue Dec 27, 2023 · 0 comments

Comments

@therealharpaljadeja
Copy link

function withdraw(address _token) external onlyPoolManager(msg.sender) onlyInactivePool {

I can keep calling withdraw even though there is no poolAmount and also getPoolAmount in BaseStrategy returns the wrong value because of this.

function getPoolAmount() external view virtual override returns (uint256) {
return poolAmount;
}

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

No branches or pull requests

1 participant