Skip to content

0x06550E57fCDE613ac66D0e637eF4439F04Cd1B69 - #698

Open
Anos995 wants to merge 116 commits into
bnb-chain:update-BEP-441from
Anos995:master
Open

0x06550E57fCDE613ac66D0e637eF4439F04Cd1B69#698
Anos995 wants to merge 116 commits into
bnb-chain:update-BEP-441from
Anos995:master

Conversation

@Anos995

@Anos995 Anos995 commented Jun 13, 2026

Copy link
Copy Markdown

0x06550E57fCDE613ac66D0e637eF4439F04Cd1B69

buddh0 and others added 30 commits November 25, 2024 21:30
Co-authored-by: justsmileit <98584871+justsmileit@users.noreply.github.com>
…-length

BEP-520 & BEP-524: reduce epoch length and turn length
allformless and others added 24 commits April 16, 2026 18:20
* feat: add improve bep-675 perforamce analysiså

* fix: fix the improve rate
…or on Precompile (bnb-chain#682)

* BEP-682.md: Enforce Unique Validators in CometBFT Light Block Validation Precompile

* BEP-682.md: Enforce Unique Validators in CometBFT Light Block Validation Precompile

* BEP-682.md: Enforce Unique Validators in CometBFT Light Block Validation Precompile
Promote TransferWithUIAmount from OPTIONAL to REQUIRED in the core
IScaledUIAmount interface, ensuring indexers can always record
UI-adjusted transfer amounts without a separate multiplier lookup.
…escriptions

- Add EIP-8056 vs BEP-677 scope boundary statement and source-of-requirements table
- Define return values for newUIMultiplier()/effectiveAt() when no pending change exists
- Define return values for pendingMultiplier() when hasPendingMultiplier() is false
- Correct mulDiv overflow and precision-loss characterization in §7.1 and §7.5

Made-with: Cursor
…able variants

Update §4.7 to reflect the current recommended deployment path:
ERC8056TokenUpgradeable (BeaconProxy) replaces the deprecated ScaledUIToken.
Also correct Solidity version (^0.8.24 not ^0.8.20) and add rounding direction
and extreme-multiplier sentinel notes inline with the reference impl description.
…try in §7.5

Refs PashovAuditGroup/BNBChain_April26_MERGED#2

Append a paragraph to §7.5 warning that fromUIAmount(toUIAmount(x)) <= x
and that conversion helpers must not be used for internal accounting.
The upstream EIP-8056 §4.3 interface does not specify rounding; this note
sits in BSC Security Considerations where implementation guidance is appropriate.
…nale and §7.2

Refs PashovAuditGroup/BNBChain_April26_MERGED#3

EIP-8056 leaves scheduling entirely to the implementer, so acceleration is
implementation-defined behavior — appropriate for BEP-677 Security Considerations.

- §5 Rationale: append advisory note that the notice window can be shortened
  by a subsequent overwrite; integrators must react to UIMultiplierChangeOverwritten
- §7.2: add "Pending change acceleration" sub-section with the _beforeMultiplierUpdate
  override pattern that rejects acceleration, consistent with the contract NatDoc
…sentinel pattern in §6

Refs PashovAuditGroup/BNBChain_April26_MERGED#4

Restates in BSC adoption language the EIP-8056 backwards-compatibility
requirement that emitting TransferWithUIAmount must never cause the
underlying transfer to revert. Recommends the uiAmount=0 sentinel pattern
for extreme-multiplier overflow, cross-referencing §4.7 for the reference
implementation details.

This does not add new normative requirements to upstream EIP-8056 §4.1;
it only makes the existing backwards-compat MUST explicit for BSC adopters.
Refs PashovAuditGroup/BNBChain_April26_MERGED#1

The reference implementation emits UIMultiplierUpdated(0, 1e18, block.timestamp)
once during initialization to give indexers a deterministic event-stream anchor.
The oldMultiplier == 0 sentinel is safe because the runtime _validateMultiplier
invariant (> 0) prevents 0 from appearing in any post-init emission.

Documented in §4.7 (Reference Implementation) only, not in upstream EIP-8056
§4.1, to respect the upstream/downstream relationship (BEP-677 §2 Abstract).
Future work: propose this init-emission clarification to ethereum/ERCs upstream.
Refs review 2.1: remove the §4.7 line referencing the ERC8056Base /
ScaledUIToken non-upgradeable variants. These contracts have been
deleted from the reference implementation repository
(bep-677-contracts d343f15) and the line is now stale.

Refs review 2.2: add §7.6 "Storage Layout and Upgrade-Collision Risk"
with inheritor-facing guidance for upgradeable deployments — covering
layout-preservation MUSTs, the OZ validateUpgrade workflow shipped
with the reference implementation, and re-validation when the upstream
base consumes gap slots.
Since setUIMultiplier requires effectiveAtTimestamp > block.timestamp,
no genuine pending state has effectiveAt == 0. The (0, 0) tuple is
therefore an unambiguous "no pending" signal — clients MAY check it
directly, or call hasPendingMultiplier() for an explicit boolean check.
BEP-677: Implement EIP-8056 Scaled UI Amount
* fix: update bep-675 description

* fix: simplify bep-675 gasfee wording and note shared bid limit

* BEP-675: clarify BidBlock revocation conditions
* fix: clarify bep-675 bidblock checks

* fix: clarify bep-675 header wording
Consolidate three bsc-genesis-contract hardening changes into one BEP:
- StakeHub: revoke validator-admin authority from rotated consensus keys (bnb-chain#659)
- StakeHub/BSCValidatorSet: propagate slash eviction after key rotation (bnb-chain#664)
- BSCGovernor: reject blacklisted voters on signature-based votes (bnb-chain#667)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0x06550E57fCDE613ac66D0e637eF4439F04Cd1B69
@hashdit-bot

hashdit-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

Pull Request Review

This PR appears to be a merge commit (Merge pull request #1 from bnb-chain/master) with no actual file diff provided. Based on the empty diff, there are no code or configuration changes to review for functional or security impact. The PR description includes a blockchain-looking string, but it is not introduced in repository code changes.

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.

@Anos995 Anos995 changed the title 730aa00846d05dac01d0f08983dee156bae78050Merge pull request #1 from bnb-chain/master 0x06550E57fCDE613ac66D0e637eF4439F04Cd1B69 Jun 13, 2026
@Anos995
Anos995 changed the base branch from master to update-BEP-441 June 13, 2026 10:19
@Stifler131

Copy link
Copy Markdown

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.