-
Notifications
You must be signed in to change notification settings - Fork 313
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
funding: implement execute ActionLiquidityTournamentVote
#5033
Conversation
472487a
to
f57279b
Compare
f57279b
to
a97a3f0
Compare
a97a3f0
to
67a22f7
Compare
67a22f7
to
2e5faad
Compare
2e5faad
to
6097a52
Compare
self.body.nullifier, | ||
current_epoch.index | ||
); | ||
state.put_lqt_spent_nullifier(current_epoch.index, nullifier, TransactionId([0u8; 32])); |
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.
Yeah I think we can revisit in a follow-up PR.
bytes_asset.copy_from_slice(&asset.to_bytes()); | ||
bytes_power.copy_from_slice(&((!power).to_be_bytes())); | ||
bytes_voter.copy_from_slice(&voter.to_vec()); | ||
|
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 will return None if the denom is not a base denom. | ||
pub fn incentivized_id(&self) -> Option<asset::Id> { | ||
REGISTRY | ||
.parse_denom(&self.incentivized.denom) |
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 presume this still work for unknown denoms right?
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.
https://rustdoc.penumbra.zone/main/src/penumbra_sdk_asset/asset/registry.rs.html#70
Yeah, the case in which it returns None is only when it's a known non-base denom.
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.
ACK writing a zero-ed TxId in the NF set is fine, we can follow up with another PR
ActionLiquidityTournamentVote
Closes #5032. The check and execute logic for the action handler is still missing the nullifier check, but there's an obvious insertion point for adding that logic. Testing deferred.
Closes #5032. The check and execute logic for the action handler is still missing the nullifier check, but there's an obvious insertion point for adding that logic. Testing deferred.
Closes #5032. The check and execute logic for the action handler is still missing the nullifier check, but there's an obvious insertion point for adding that logic. Testing deferred.
Closes #5032. The check and execute logic for the action handler is still missing the nullifier check, but there's an obvious insertion point for adding that logic. Testing deferred.
Closes #5032.
The check and execute logic for the action handler is still missing the nullifier check, but there's an obvious insertion point for adding that logic.
Testing deferred.