-
Notifications
You must be signed in to change notification settings - Fork 1k
pgf: v2 #1838
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
pgf: v2 #1838
Conversation
8ae2e68 to
c711f20
Compare
c711f20 to
6871d4b
Compare
| &funding.detail.target, | ||
| ); | ||
| } else { | ||
| tracing::info!( |
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.
Should we log this at a different level to make it stand out?
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.
good point, maybe warn is better
| address, | ||
| ); | ||
| } else { | ||
| tracing::info!( |
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.
Same question as before for the log level
| for (address, percentage) in steward.reward_distribution { | ||
| let pgf_steward_reward = pgf_steward_reward | ||
| .checked_mul(&percentage) | ||
| .unwrap_or_default(); |
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.
Should we log something in case of an overflow?
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.
this can never happen cause percentage is between 0 and 1
shared/src/ledger/tx.rs
Outdated
| }: args::ResignSteward, | ||
| gas_payer: &common::PublicKey, | ||
| ) -> Result<Tx, Error> { | ||
| // if !rpc::is_steward(client, &steward).await && !tx_args.force { |
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.
Don't we need these checks?
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.
we need them, you are right!
| } | ||
| } | ||
|
|
||
| /// Get governane parameters |
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.
Typo
| /// Get governane parameters | |
| /// Get governance parameters |
core/src/types/uint.rs
Outdated
| let is_negative = (self.is_negative() || v.is_negative()) | ||
| && !(self.is_negative() && v.is_negative()); |
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.
I think you can write this as
| let is_negative = (self.is_negative() || v.is_negative()) | |
| && !(self.is_negative() && v.is_negative()); | |
| let is_negative = self.is_negative() != v.is_negative(); |
grarco
left a comment
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.
Minor comments but looks good to me, thanks!
5ae0df5 to
ef6a161
Compare
ef6a161 to
0851f54
Compare
0851f54 to
84cf6ed
Compare
* origin/fraccaman/pgf: pgf: minor fixes e2e: fix pgf test pgf: added vp pgf validation pgf: minor fixes, added basic tests pgf: added resign and update steward reward txs multisig: fix hashes ordering pgf: rework fundings storage pgf: improve storage api, fix tallying client: refactor router, fix minor ui issues
* origin/fraccaman/pgf: pgf: minor fixes e2e: fix pgf test pgf: added vp pgf validation pgf: minor fixes, added basic tests pgf: added resign and update steward reward txs multisig: fix hashes ordering pgf: rework fundings storage pgf: improve storage api, fix tallying client: refactor router, fix minor ui issues
* origin/fraccaman/pgf: pgf: minor fixes e2e: fix pgf test pgf: added vp pgf validation pgf: minor fixes, added basic tests pgf: added resign and update steward reward txs multisig: fix hashes ordering pgf: rework fundings storage pgf: improve storage api, fix tallying client: refactor router, fix minor ui issues
Describe your changes
Indicate on which release or other PRs this topic is based on
0.21.1
Checklist before merging to
draft