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: implement BEP294 and BEP297 #436

Merged
merged 70 commits into from
Feb 26, 2024
Merged

feat: implement BEP294 and BEP297 #436

merged 70 commits into from
Feb 26, 2024

Conversation

unclezoro
Copy link
Collaborator

Description

This pr is to implement BEP-294: BSC Native Staking after BC Fusion

Rationale

See 4. Motivation in BEP-294

Changes

Notable changes:

  • add StakeHub and StakeCredit
  • add new governance module
  • modify stake & slash logic in BSCValidatorSet and SlashIndicator
  • optimize test settings
  • remove old dependencies

pythonberg1997 and others added 9 commits November 27, 2023 09:59
* feat: implement BEP294

* feat: add BSCGovernor and GovToken contracts for bc-fusion (#403)

* feat: implement BEP294

---------

Co-authored-by: Ethan <cosinlinker@gmail.com>
* chore: add init lock amount

* add annotations

* more comment

---------

Co-authored-by: zjubfd <296179868@qq.com>
* feat: add apy and reward record of validators

* fix review comments
* feat: add ci and add lint check script

* chore: lint code in BC_fusion

* chore: add bc-fusion branch to ci

* fix: test error in SlashIndicator.t.sol
* chore: fix typo

* feat: add python script

* fix review comments

* fix review comments
@unclezoro unclezoro changed the base branch from develop to master December 7, 2023 10:14
@unclezoro unclezoro changed the base branch from master to develop December 7, 2023 10:15
# Conflicts:
#	contracts/SlashIndicator.sol
#	genesis-template.json
#	genesis.json
#	scripts/generate-tendermintLightClient.sh
#	scripts/generate.sh
pythonberg1997 and others added 19 commits February 14, 2024 11:50
* test: add failed cases to token recover portal ut

* chore: emit owner address after TokenRecoverRequested
* fix: improve the code readablity

* fix: change the wrong comment
* fix: add check in `_forceMaintainingValidatorsExit`

* add `latestConsensusAddress`
* chore: update generate script

* change default `SOURCE_CHAIN_ID` in `TokenRecoverPortal`

* update testnet asset protector address

* update testnet INIT_VOTING_DELAY

* fix ut
…eMaintainingValidatorsExit` (#504)

* fix: add check to make sure there is at least one validator in `_forceMaintainingValidatorsExit`

* optimize code
NathanBSC
NathanBSC previously approved these changes Feb 26, 2024
NathanBSC
NathanBSC previously approved these changes Feb 26, 2024
@unclezoro unclezoro added this pull request to the merge queue Feb 26, 2024
Merged via the queue into develop with commit a563781 Feb 26, 2024
2 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Feb 26, 2024
feat: implement BEP294 and BEP297 (#436)
@pythonberg1997 pythonberg1997 deleted the bc-fusion branch September 5, 2024 03:09
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.

7 participants