-
Notifications
You must be signed in to change notification settings - Fork 0
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
(govern) display contract config fields on details page #76
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b05315f
to
cc9a7a2
Compare
cc9a7a2
to
c5a116c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tanya-atatakai Sorry, but I wouldn’t copy-paste. Instead, we could create a different feature library and import it—this is one of the key aspects of a monorepo. Maybe feature-staking-contract
🤔 ?
@mohandast52 makes sense to discuss that but I wouldn't want that to block the feature going live. If you agree to refactor that then let's do it in a follow up PR. |
@oaksprout Sure, I’ll approve it. However, I believe it shouldn’t be a major change—just create a library, copy-paste, and import. |
@mohandast52 that's why I didn't create a separate lib - I was struggling with where to put it, both Maybe we can discuss this in our next engineering meeting? Generally, for this purpose, we could create something like the @truemiller would like to hear your thoughts too |
Proposed changes
Added staking contract config fields on details page in Govern. It's copy-pasted from Launch with some updates in both:
useMaxNumServices
anduseRewardsPerSecond
and can be requested with help ofuseStakingContractConstant
, moved it close to the other similar hooks(sec)
to, seconds
so that they match the structure of other fieldsI know it could be somehow a shared component in the libs folder, but the labels might change in the future, because they don't suit for the governor role
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that apply