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

😈 [Feature Enhancement] - <Additional changes in v2.5 contracts> #273

Closed
zaryab2000 opened this issue Jan 29, 2024 · 0 comments · Fixed by #276
Closed

😈 [Feature Enhancement] - <Additional changes in v2.5 contracts> #273

zaryab2000 opened this issue Jan 29, 2024 · 0 comments · Fixed by #276
Assignees
Labels
enhancement New feature or request priority-2 Medium priority

Comments

@zaryab2000
Copy link
Collaborator

Feature name

Core Contract folder includes v2.5 and v2_Temp contracts

Describe the Enhancement

Based on the recent review of all changes of Temp and v2.5 contract files, the following changes are suggested:

  1. sendFunds() function shouldn't be part of PushCoreV2_Temp since the temp contract's main purpose is to simply provide pausability feature for staking-related functions.
  2. Some of the changes of PushCoreV2.5 contracts is not in sync with PushCoreV2_Temp. (Although the contract will eventually be upgraded, it migtht be better to keep them in sync for the sake readability and future reviews. Additionally, not all functions will be paused during Temp, so users still need the updated functions in Temp too)
  • setMinPoolContribution() function's custom error is different between the two contracts
image
  • setFeeAmount function has a missing statement in core_temp
image
  • destroyTimeBoundChannel function's if statement is not in sync
image

POC if available

No response

Contract Name

Core Contract

@zaryab2000 zaryab2000 added the enhancement New feature or request label Jan 29, 2024
@zaryab2000 zaryab2000 added the priority-2 Medium priority label Jan 29, 2024
@Zartaj0 Zartaj0 linked a pull request Jan 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-2 Medium priority
Projects
None yet
2 participants