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 {
205
205
}
206
206
207
207
#[ cfg( test) ]
208
+ /// generate a random rate limiter for testing
208
209
pub fn rand_rate_limiter ( ) -> RateLimiter {
209
210
use rand:: Rng ;
210
211
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;
36
36
pub const MAX_PROTOCOL_LIQUIDATION_FEE_DECA_BPS : u8 = 50 ;
37
37
38
38
/// 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 ;
40
40
41
41
/// Lower bound on scaled price offset
42
42
pub const MIN_SCALED_PRICE_OFFSET_BPS : i64 = -2000 ;
@@ -2380,7 +2380,7 @@ mod test {
2380
2380
} ) ,
2381
2381
Just ( ReserveConfigTestCase {
2382
2382
config: ReserveConfig {
2383
- scaled_price_offset_bps: 2001 ,
2383
+ scaled_price_offset_bps: 5001 ,
2384
2384
..ReserveConfig :: default ( )
2385
2385
} ,
2386
2386
result: Err ( LendingError :: InvalidConfig . into( ) ) ,
You can’t perform that action at this time.
0 commit comments