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

feat: proxy for KatanaV3Factory and NonfungiblePositionManager #7

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

thaixuandang
Copy link
Collaborator

Description

Checklist

  • I have clearly commented on all the main functions following the NatSpec Format
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works

@thaixuandang thaixuandang changed the title feat: proxy for KatanaV3Factory and NonfungilePositionManager feat: proxy for KatanaV3Factory and NonfungiblePositionManager Jul 24, 2024
@thaixuandang thaixuandang changed the base branch from release/v1.0.0 to feature/statistic July 29, 2024 10:06
treasury = _treasury;
emit TreasuryChanged(address(0), _treasury);
function initialize(address owner_, address treasury_) external {
require(!_initialized);
Copy link
Collaborator

Choose a reason for hiding this comment

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

provide error message

Copy link
Collaborator

@TuDo1403 TuDo1403 left a comment

Choose a reason for hiding this comment

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

please storage gap for all logics for proxy contracts.

emit OwnerChanged(address(0), _owner);
constructor() {
// disable initialization
_initialized = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

emit event

Copy link
Collaborator

Choose a reason for hiding this comment

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

can we not used Initializable extension?

src/core/KatanaV3Factory.sol Show resolved Hide resolved
function initializeImmutables(address factory_, address token0_, address token1_, uint24 fee_, int24 tickSpacing_)
public
override
{
require(!_immutablesInitialized);
Copy link
Collaborator

Choose a reason for hiding this comment

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

provide error message

@@ -125,8 +125,10 @@ contract KatanaV3Pool is IKatanaV3Pool {
_immutablesInitialized = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

emit event

src/core/KatanaV3Factory.sol Show resolved Hide resolved
emit OwnerChanged(address(0), _owner);
constructor() {
// disable initialization
_initialized = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we not used Initializable extension?

Copy link
Collaborator

Choose a reason for hiding this comment

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

please add gap and disable initializer

…proxy

chore(`proxy`): merge from `release/v1.0.0`
Base automatically changed from feature/statistic to feature/flash-loans August 26, 2024 08:20
@thaixuandang thaixuandang changed the base branch from feature/flash-loans to release/v1.0.0 August 26, 2024 08:34
@thaixuandang thaixuandang merged commit df1ce8f into release/v1.0.0 Aug 26, 2024
2 checks passed
@thaixuandang thaixuandang deleted the feature/proxy branch August 26, 2024 08:34
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