We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f06773 commit d5144f6Copy full SHA for d5144f6
pyth-sdk/src/error.rs
@@ -0,0 +1,12 @@
1
+use solana_program::program_error::ProgramError;
2
+use thiserror::Error;
3
+
4
+#[derive(Error, Debug, Copy, Clone)]
5
+pub enum LiquidityOracleError {
6
+ #[error("deposits exceeds max depositable")]
7
+ ExceedsMaxDeposits,
8
+ #[error("initial discount rate should not be greater than final discount rate")]
9
+ InitialDiscountExceedsFinalDiscount,
10
+ #[error("final discount rate should not be greater than the discount precision")]
11
+ FinalDiscountExceedsPrecision,
12
+}
0 commit comments