diff --git a/contracts/programs/store/src/lib.rs b/contracts/programs/store/src/lib.rs index ac18a3733..b73c95f5d 100644 --- a/contracts/programs/store/src/lib.rs +++ b/contracts/programs/store/src/lib.rs @@ -169,7 +169,7 @@ pub mod store { }; let feed_address = ctx.accounts.feed.key(); - if is_valid { + if !is_valid { // raise flag if not raised yet // if the len reaches array len, we're at capacity