File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
token-lending/program/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2115,7 +2115,7 @@ fn get_price(
21152115}
21162116
21172117fn 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 ;
21192119
21202120 if * pyth_price_info. key == spl_token_lending:: NULL_PUBKEY {
21212121 return Err ( LendingError :: NullOracleConfig . into ( ) ) ;
@@ -2196,7 +2196,7 @@ fn get_switchboard_price(
21962196 switchboard_feed_info : & AccountInfo ,
21972197 clock : & Clock ,
21982198) -> Result < Decimal , ProgramError > {
2199- const STALE_AFTER_SLOTS_ELAPSED : u64 = 100 ;
2199+ const STALE_AFTER_SLOTS_ELAPSED : u64 = 240 ;
22002200
22012201 if * switchboard_feed_info. key == spl_token_lending:: NULL_PUBKEY {
22022202 return Err ( LendingError :: NullOracleConfig . into ( ) ) ;
You can’t perform that action at this time.
0 commit comments