Skip to content

Conversation

godzillaba
Copy link
Contributor

No description provided.


address public override inbox;
address public masterVault;
address public masterVaultFactory;
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the reason to have masterVaultFactory here instead of masterVault? isn't every L1*Gateway deals with only one master vault?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the gateways handle multiple tokens, so they'll need to deal with multiple vaults

bytes memory bytecode = abi.encodePacked(
type(MasterVault).creationCode,
abi.encode(token, gateway, gateway)
abi.encode(token)
Copy link
Contributor

Choose a reason for hiding this comment

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

the constructor expect these args:
constructor(address _token, address _gateway, address _owner) Ownable() {

Copy link
Contributor

Choose a reason for hiding this comment

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

@godzillaba do you agree with me on having the token address as part of masterVault storage?

@godzillaba godzillaba merged commit eab1765 into feat/ybb Sep 19, 2025
2 of 9 checks passed
@godzillaba godzillaba deleted the ha/ybb-review branch September 19, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants