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

fix: update cross chain logic of native stake #295

Merged
merged 3 commits into from
Aug 31, 2022

Conversation

pythonberg1997
Copy link
Contributor

@pythonberg1997 pythonberg1997 commented Aug 25, 2022

Description

There may be some vulnerability in previous native staking design.

Rationale

N/A

Example

For example, if a user sends the delegate transaction with invalid validator, execute the undelegate transaction immediately before receiving the AckPackage of the last delegate transaction, the token from the last delegate transaction will be locked.

Changes

For now, every request from BSC to BC will have an ack package to inform the status of the request. State changes will be done only after the ack package with success status is received.

@unclezoro
Copy link
Collaborator

We need better description of this PR.

@unclezoro unclezoro merged commit 4ab5bb2 into bnb-chain:develop Aug 31, 2022
unclezoro added a commit that referenced this pull request Aug 31, 2022
fix: update cross chain logic of native stake (#295)
@pythonberg1997 pythonberg1997 deleted the cross_stake branch September 2, 2022 06:48
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