Skip to content

chore(dao): add PreIPODistributor impl-only deploy script for BSC - #122

Merged
lawson-ccy merged 1 commit into
masterfrom
fix/pre-ipo-audit
Jul 29, 2026
Merged

chore(dao): add PreIPODistributor impl-only deploy script for BSC#122
lawson-ccy merged 1 commit into
masterfrom
fix/pre-ipo-audit

Conversation

@razww

@razww razww commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds an impl-only Foundry deploy script for PreIPODistributor on BSC: scripts/foundry/dao/deploy_PreIPO_impl.sol.

Deploys a new implementation (no proxy, no upgrade call) for the admin multisig (DEFAULT_ADMIN_ROLE) to wire into the live proxy.

Details

  • Chain-aware deployer key: DEPLOYER_BSC_PRIVATE_KEY (mainnet 56) / DEPLOYER_TESTNET_PRIVATE_KEY (testnet 97).
  • Deploys new PreIPODistributor(), logs the impl address, and prints ready-to-use upgrade calldata for the multisig to run on the proxy:
    • first settlement upgradeupgradeToAndCall(impl, initializeV2()) (runs initializeV2, setting waitingPeriod = 6h)
    • subsequent impl swapsupgradeTo(impl)

Usage

forge script scripts/foundry/dao/deploy_PreIPO_impl.sol:PreIPODistributorImplDeploy --rpc-url bsc --broadcast --verify -vvvv

Requires env: DEPLOYER_BSC_PRIVATE_KEY / DEPLOYER_TESTNET_PRIVATE_KEY, BSCSCAN_API_KEY (for --verify).

Deploys a new PreIPODistributor implementation (no proxy, no upgrade call)
on BSC mainnet (56) / testnet (97) with a chain-aware deployer key, for the
admin multisig to wire into the live proxy via upgradeToAndCall/upgradeTo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hashdit-bot

hashdit-bot Bot commented Jul 29, 2026

Copy link
Copy Markdown

Pull Request Review

This Solidity/Foundry PR adds a BSC mainnet/testnet deployment script that deploys only a new PreIPODistributor implementation and prints multisig-ready upgrade calldata. The PR description also documents a MANAGER-only changeUserTranche correction flow, although the corresponding contract change is not present in the provided diff.

Sensitive Content

No sensitive content detected.

Security Issues

No serious security issues detected.


Generated by Hashdit Bot. This tool can absolutely NOT replace manual audits.

@razww razww changed the title feat(dao): PreIPO changeUserTranche correction + BSC impl deploy script chore(dao): add PreIPODistributor impl-only deploy script for BSC Jul 29, 2026

@lawson-ccy lawson-ccy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lawson-ccy
lawson-ccy merged commit 5b21171 into master Jul 29, 2026
1 check passed
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