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 LBP Tests #1270

Open
wants to merge 9 commits into
base: lbp-one-weight-change
Choose a base branch
from
Open

Refactor LBP Tests #1270

wants to merge 9 commits into from

Conversation

joaobrunoah
Copy link
Contributor

Description

This PR refactors and add new tests to LBPs. The refactor includes a base file to test LBPs and a deployer that can reuse hardhat artifacts in forge tests.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Optimization: [ ] gas / [ ] bytecode
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • Complex code has been commented, including external interfaces
  • Tests have 100% code coverage
  • The base branch is either main, or there's a description of how to merge

@joaobrunoah joaobrunoah marked this pull request as ready for review February 5, 2025 22:02
@@ -322,7 +323,7 @@ contract LBPool is ILBPool, WeightedPool, BaseHooks {
revert IVaultErrors.InvalidTokenConfiguration();
}

return pool == address(this);
return pool == address(this) && factory == _trustedFactory;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if we should check the factory here.

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.

1 participant