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

Refactor current_goal_state #167

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

saimeunt
Copy link
Contributor

Pull Request

Changes description

This PRs refactors the current_goal_state variable in favor of an ERC20 token balance.
The ERC20 token address has been added as a parameter of the fund to be able to create funds compatible with any ERC20 token.
The ongoing tests for withdraw might be impacted by this refactor.

Time spent breakdown

Half a day spent on reading the codebase, refactoring according to guidance and modifying tests accordingly.

Copy link
Collaborator

@EmmanuelAR EmmanuelAR left a comment

Choose a reason for hiding this comment

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

tks @saimeunt for the help, some changes

contracts/src/fund.cairo Outdated Show resolved Hide resolved
contracts/src/fund.cairo Outdated Show resolved Hide resolved
contracts/src/fund.cairo Outdated Show resolved Hide resolved
contracts/src/fundManager.cairo Outdated Show resolved Hide resolved
contracts/src/token.cairo Outdated Show resolved Hide resolved
@saimeunt
Copy link
Contributor Author

@bitfalt @EmmanuelAR I just made the requested changes, thanks for reviewing 👌

Copy link
Collaborator

@EmmanuelAR EmmanuelAR left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@bitfalt bitfalt left a comment

Choose a reason for hiding this comment

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

lgtm! i loved how you did the test. Great job! :D

@EmmanuelAR EmmanuelAR merged commit 89b68fe into web3wagers:dev Oct 30, 2024
5 checks 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.

[fix] Refactor current_goal_state
4 participants