We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d593d8 commit d9b915cCopy full SHA for d9b915c
program/rust/src/processor/upd_price.rs
@@ -153,7 +153,8 @@ pub fn upd_price(
153
// Check that publisher is publishing a more recent price
154
pyth_assert(
155
!is_component_update(cmd_args)?
156
- || cmd_args.publishing_slot > latest_publisher_price.pub_slot_,
+ || (cmd_args.publishing_slot > latest_publisher_price.pub_slot_
157
+ && cmd_args.publishing_slot <= clock.slot),
158
ProgramError::InvalidArgument,
159
)?;
160
}
0 commit comments