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

SOV-4316 upgradeable contract #3

Open
wants to merge 47 commits into
base: bobDevelopment
Choose a base branch
from

Conversation

cwsnt
Copy link
Collaborator

@cwsnt cwsnt commented Aug 13, 2024

No description provided.

@tjcloa tjcloa requested review from tjcloa and koirikivi and removed request for tjcloa and koirikivi August 13, 2024 20:58
script/deploy-core.s.sol Outdated Show resolved Hide resolved
script/deploy-core.s.sol Show resolved Hide resolved
script/deploy-core.s.sol Outdated Show resolved Hide resolved
script/deploy-paused-target.s.sol Outdated Show resolved Hide resolved
script/deploy-paused-target.s.sol Outdated Show resolved Hide resolved
src/LBDexUpgradeableBeacon.sol Outdated Show resolved Hide resolved
src/LBDexUpgradeableBeacon.sol Outdated Show resolved Hide resolved
src/LBFactory.sol Outdated Show resolved Hide resolved
src/LBRouter.sol Show resolved Hide resolved
src/LBRouter.sol Show resolved Hide resolved
@tjcloa tjcloa self-requested a review August 13, 2024 23:25
src/LBPair.sol Outdated Show resolved Hide resolved
@cwsnt cwsnt changed the base branch from SOV-4323-remove-legacy-contracts to bobDevelopment August 14, 2024 13:50
@cwsnt cwsnt requested a review from tjcloa August 16, 2024 06:24
Copy link

@tjcloa tjcloa left a comment

Choose a reason for hiding this comment

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

script/deploy-core.s.sol Show resolved Hide resolved
script/config/deployments.json Show resolved Hide resolved
src/LBPairBeaconProxy.sol Outdated Show resolved Hide resolved
src/LBPairBeaconProxy.sol Outdated Show resolved Hide resolved
src/LBFactory.sol Outdated Show resolved Hide resolved
script/deploy-paused-target.s.sol Outdated Show resolved Hide resolved
src/LBPairUpgradeableBeacon.sol Outdated Show resolved Hide resolved
script/deploy-paused-target.s.sol Outdated Show resolved Hide resolved
script/deploy-core.s.sol Show resolved Hide resolved
script/deploy-core.s.sol Outdated Show resolved Hide resolved
script/deploy-core.s.sol Outdated Show resolved Hide resolved
src/LBFactory.sol Outdated Show resolved Hide resolved
src/LBPair.sol Outdated Show resolved Hide resolved
Copy link

@tjcloa tjcloa left a comment

Choose a reason for hiding this comment

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

another round of review completed.
after addressing new comments, we should be good to go.
apart from the code comments:

  1. the compiler is complaining on the unused param Version in the function _getLBPairInformation - pls remove it.
  2. according to the foundry docs vm.createSelectFork will not work for deployment on live chains but on a fork
    if using --chain as a param then no need to change network - it will be used in the script it under the hood.
    block.chainid can be used in the script to identify which deployment config is required.
    if you want to switch networks the right way seems to set the chainId via vm.chainId(60808) .
    update:
    it will work, but still confusing and not clear why setting a fork does deployment on a live chain, could be an issue with foundry, so using vm.chainid is more appropriate, but leaving it to you to decide on that.

Copy link

@koirikivi koirikivi left a comment

Choose a reason for hiding this comment

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

Overall good stuff!

Some changes requested, mostly about git related stuff (there's a ton of unneeded crap in the abi folder which made the review pretty cumbersome too). I also added one comment about removing create2 in LBFactory, and some minor ones here and there.

I didn't look into the deploy scripts or tests too carefully.

abi/build-info/05339ee983b0f3765a6820c847776e5b.json Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
script/deploy-core.s.sol Show resolved Hide resolved
src/LBFactory.sol Outdated Show resolved Hide resolved
abi/ImmutableClone.t.sol/Implementation.json Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
abi/build-info/05339ee983b0f3765a6820c847776e5b.json Outdated Show resolved Hide resolved
src/LBPair.sol Outdated Show resolved Hide resolved
src/LBPair.sol Outdated Show resolved Hide resolved
src/LBPairUpgradeableBeacon.sol Outdated Show resolved Hide resolved
Copy link

@tjcloa tjcloa left a comment

Choose a reason for hiding this comment

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

just to push pending comments

src/LBPair.sol Outdated Show resolved Hide resolved
src/LBFactory.sol Outdated Show resolved Hide resolved
@tjcloa tjcloa self-requested a review September 2, 2024 08:03
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