File tree 1 file changed +2
-2
lines changed
token-lending/program/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2115,7 +2115,7 @@ fn get_price(
2115
2115
}
2116
2116
2117
2117
fn get_pyth_price ( pyth_price_info : & AccountInfo , clock : & Clock ) -> Result < Decimal , ProgramError > {
2118
- const STALE_AFTER_SLOTS_ELAPSED : u64 = 20 ;
2118
+ const STALE_AFTER_SLOTS_ELAPSED : u64 = 240 ;
2119
2119
2120
2120
if * pyth_price_info. key == spl_token_lending:: NULL_PUBKEY {
2121
2121
return Err ( LendingError :: NullOracleConfig . into ( ) ) ;
@@ -2196,7 +2196,7 @@ fn get_switchboard_price(
2196
2196
switchboard_feed_info : & AccountInfo ,
2197
2197
clock : & Clock ,
2198
2198
) -> Result < Decimal , ProgramError > {
2199
- const STALE_AFTER_SLOTS_ELAPSED : u64 = 100 ;
2199
+ const STALE_AFTER_SLOTS_ELAPSED : u64 = 240 ;
2200
2200
2201
2201
if * switchboard_feed_info. key == spl_token_lending:: NULL_PUBKEY {
2202
2202
return Err ( LendingError :: NullOracleConfig . into ( ) ) ;
You can’t perform that action at this time.
0 commit comments