File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
token-lending/sdk/src/state Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ impl Pack for RateLimiter {
205205}
206206
207207#[ cfg( test) ]
208+ /// generate a random rate limiter for testing
208209pub fn rand_rate_limiter ( ) -> RateLimiter {
209210 use rand:: Rng ;
210211 let mut rng = rand:: thread_rng ( ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub const MAX_BONUS_PCT: u8 = 25;
3636pub const MAX_PROTOCOL_LIQUIDATION_FEE_DECA_BPS : u8 = 50 ;
3737
3838/// Upper bound on scaled price offset
39- pub const MAX_SCALED_PRICE_OFFSET_BPS : i64 = 2000 ;
39+ pub const MAX_SCALED_PRICE_OFFSET_BPS : i64 = 5000 ;
4040
4141/// Lower bound on scaled price offset
4242pub const MIN_SCALED_PRICE_OFFSET_BPS : i64 = -2000 ;
@@ -2380,7 +2380,7 @@ mod test {
23802380 } ) ,
23812381 Just ( ReserveConfigTestCase {
23822382 config: ReserveConfig {
2383- scaled_price_offset_bps: 2001 ,
2383+ scaled_price_offset_bps: 5001 ,
23842384 ..ReserveConfig :: default ( )
23852385 } ,
23862386 result: Err ( LendingError :: InvalidConfig . into( ) ) ,
You can’t perform that action at this time.
0 commit comments