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

Wrapper #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Wrapper #12

wants to merge 4 commits into from

Conversation

0xfennel
Copy link
Contributor

No description provided.

Token6 public immutable USDC; // solhint-disable-line var-name-mixedcase

/// @dev Batcher address
ITwoWayBatcher public batcher;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm thinking maybe we should just make this immutable as well since we'll have to change the batcher-related code for different batcher implementations, so it will require a redeploy either way.

Maybe we should add a better interface to the batchers so we don't need to do that in the future 😓 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What if we deploy a wrapper before a batcher?

@github-actions
Copy link

Unit Test Coverage Report

Coverage after merging fennel/wrapper into master will be
60.47%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
contracts/batcher
   Batcher.sol97.73%83.33%100%100%100
   TwoWayBatcher.sol92.11%78.57%100%100%32, 49, 77
   WrapOnlyBatcher.sol100%100%100%100%
contracts/interfaces
   IBatcher.sol100%100%100%100%
   IEmptySetReserve.sol100%100%100%100%
   ITwoWayBatcher.sol100%100%100%100%
   IWrapper.sol100%100%100%100%
contracts/mock
   MockEmptySetReserve.sol0%100%0%0%21–22, 24–25, 29, 35, 39
   MockTwoWayBatcher.sol0%100%0%0%13–14, 18–19, 23–24
contracts/wrapper
   Wrapper.sol0%0%0%0%39–40, 42–47, 47, 47, 52, 52–55, 62, 62–64, 64, 64–65, 67, 69, 76, 76–78, 78, 78–79, 81, 83

@github-actions
Copy link

Integration Test Coverage Report

Coverage after merging fennel/wrapper into master will be
97.67%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
contracts/batcher
   Batcher.sol97.73%83.33%100%100%100
   TwoWayBatcher.sol92.11%78.57%100%100%32, 49, 77
   WrapOnlyBatcher.sol80%100%75%75%25
contracts/interfaces
   IBatcher.sol100%100%100%100%
   IEmptySetReserve.sol100%100%100%100%
   ITwoWayBatcher.sol100%100%100%100%
   IWrapper.sol100%100%100%100%
contracts/mock
   MockEmptySetReserve.sol75%100%60%85.71%29
   MockTwoWayBatcher.sol100%100%100%100%
contracts/wrapper
   Wrapper.sol94.59%83.33%100%100%62, 76

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