Skip to content

chore: wrapper improvements#159

Open
sogipec wants to merge 7 commits into
mainfrom
feat-wrappers
Open

chore: wrapper improvements#159
sogipec wants to merge 7 commits into
mainfrom
feat-wrappers

Conversation

@sogipec
Copy link
Copy Markdown
Contributor

@sogipec sogipec commented Apr 10, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 10, 2026 14:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates partner token wrapper contracts/tests to reflect recent wrapper behavior changes (notably around minting flow), along with some readability/formatting tweaks.

Changes:

  • Make PullTokenWrapperImmutableBase.mint overridable and disable manual mint in PublicWrapperBase.
  • Adjust PullTokenWrapperVaultImmutable ERC20 metadata construction and relax the corresponding constructor revert assertion in tests.
  • Replace test setup minting with direct balance seeding (deal) in burn tests; apply minor formatting changes in scripts/contracts.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/unit/partners/tokenWrappers/PullTokenWrapperVaultImmutable.t.sol Relaxes constructor revert expectation for zero vault.
test/unit/partners/tokenWrappers/NativeTokenUnwrapperImmutable.t.sol Uses deal instead of mint for burn test setup.
test/unit/partners/tokenWrappers/ClaimFeeTokenWrapperImmutable.t.sol Formats constructor call; uses deal instead of mint for burn test setup.
scripts/deployNativeTokenUnwrapper.s.sol Formats deployment constructor arguments across multiple lines.
contracts/partners/tokenWrappers/TokenTGEWrapper.sol Formats ERC20 constructor arguments across multiple lines.
contracts/partners/tokenWrappers/PullTokenWrapperVaultImmutable.sol Changes wrapper token name source to _vault metadata (with implications for revert behavior/metadata consistency).
contracts/partners/tokenWrappers/PullTokenWrapperImmutableBase.sol Marks mint as virtual to allow overriding.
contracts/partners/tokenWrappers/PublicWrapperBase.sol Overrides mint as a disabled/no-op implementation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contracts/partners/tokenWrappers/PullTokenWrapperVaultImmutable.sol
Comment thread contracts/partners/tokenWrappers/PublicWrapperBase.sol
constructor(
address _token,
address _distributionCreator,
address _holder,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you please clarify who is _holder? Is it a contract with a pre-approved wrapper or a multisig?

if (_mezoStaking == address(0)) revert Errors.ZeroAddress();
mezoStaking = _mezoStaking;
lockDuration = _lockDuration;
IERC20(_token).safeApprove(_mezoStaking, type(uint256).max);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

MEZO does not implement safeApprove. You can use approve

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.

3 participants