Skip to content

Commit b8b1afa

Browse files
committed
changed c return value of update price to indicate aggregation (#190)
* changed c return value of update price to indicate aggregation * forgot to add bindings * removed the need for casting * fixed update_no_fail * removed unnecessary docker packages
1 parent 2d81559 commit b8b1afa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

program/c/src/oracle/oracle.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
extern "C" {
77
#endif
88

9+
910
//A return value indicating that the aggregate price was updated
1011
//this triggers SMA trackers to update
1112
//values 0-14 are defined in solana_sdk.h (v1.10.31 )

program/rust/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ pub extern "C" fn entrypoint(input: *mut u8) -> u64 {
1616
} else {
1717
return c_ret_val;
1818
}
19+
20+
1921
}

0 commit comments

Comments
 (0)