Bump token-lending test caps (#2094)
This commit is contained in:
parent
86f9e395ea
commit
8e81f5bab8
|
@ -28,7 +28,7 @@ async fn test_borrow_usdc_fixed_amount() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(41_000);
|
||||
test.set_bpf_compute_max_units(60_000);
|
||||
|
||||
const USDC_TOTAL_BORROW_FRACTIONAL: u64 = 1_000 * FRACTIONAL_TO_USDC;
|
||||
const FEE_AMOUNT: u64 = 100;
|
||||
|
@ -175,7 +175,7 @@ async fn test_borrow_sol_max_amount() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(42_000);
|
||||
test.set_bpf_compute_max_units(60_000);
|
||||
|
||||
const FEE_AMOUNT: u64 = 5000;
|
||||
const HOST_FEE_AMOUNT: u64 = 1000;
|
||||
|
|
|
@ -16,7 +16,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(27_000);
|
||||
test.set_bpf_compute_max_units(30_000);
|
||||
|
||||
let user_accounts_owner = Keypair::new();
|
||||
let lending_market = add_lending_market(&mut test);
|
||||
|
|
|
@ -25,7 +25,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(51_000);
|
||||
test.set_bpf_compute_max_units(68_000);
|
||||
|
||||
// 100 SOL collateral
|
||||
const SOL_DEPOSIT_AMOUNT_LAMPORTS: u64 = 100 * LAMPORTS_TO_SOL * INITIAL_COLLATERAL_RATIO;
|
||||
|
|
|
@ -32,7 +32,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(41_000);
|
||||
test.set_bpf_compute_max_units(170_000);
|
||||
|
||||
const FEE_AMOUNT: u64 = 100;
|
||||
const HOST_FEE_AMOUNT: u64 = 20;
|
||||
|
|
|
@ -24,7 +24,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(29_000);
|
||||
test.set_bpf_compute_max_units(40_000);
|
||||
|
||||
let user_accounts_owner = Keypair::new();
|
||||
let lending_market = add_lending_market(&mut test);
|
||||
|
|
|
@ -27,7 +27,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(28_000);
|
||||
test.set_bpf_compute_max_units(45_000);
|
||||
|
||||
const SOL_DEPOSIT_AMOUNT: u64 = 100;
|
||||
const USDC_BORROW_AMOUNT: u64 = 1_000;
|
||||
|
|
|
@ -25,7 +25,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(16_000);
|
||||
test.set_bpf_compute_max_units(30_000);
|
||||
|
||||
const SOL_RESERVE_LIQUIDITY_LAMPORTS: u64 = 100 * LAMPORTS_TO_SOL;
|
||||
const USDC_RESERVE_LIQUIDITY_FRACTIONAL: u64 = 100 * FRACTIONAL_TO_USDC;
|
||||
|
|
|
@ -25,7 +25,7 @@ async fn test_success() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(27_000);
|
||||
test.set_bpf_compute_max_units(36_000);
|
||||
|
||||
const SOL_DEPOSIT_AMOUNT_LAMPORTS: u64 = 100 * LAMPORTS_TO_SOL * INITIAL_COLLATERAL_RATIO;
|
||||
const USDC_BORROW_AMOUNT_FRACTIONAL: u64 = 1_000 * FRACTIONAL_TO_USDC;
|
||||
|
|
|
@ -27,7 +27,7 @@ async fn test_withdraw_fixed_amount() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(33_000);
|
||||
test.set_bpf_compute_max_units(50_000);
|
||||
|
||||
const SOL_DEPOSIT_AMOUNT_LAMPORTS: u64 = 200 * LAMPORTS_TO_SOL * INITIAL_COLLATERAL_RATIO;
|
||||
const USDC_BORROW_AMOUNT_FRACTIONAL: u64 = 1_000 * FRACTIONAL_TO_USDC;
|
||||
|
@ -154,7 +154,7 @@ async fn test_withdraw_max_amount() {
|
|||
);
|
||||
|
||||
// limit to track compute unit increase
|
||||
test.set_bpf_compute_max_units(28_000);
|
||||
test.set_bpf_compute_max_units(50_000);
|
||||
|
||||
const USDC_DEPOSIT_AMOUNT_FRACTIONAL: u64 =
|
||||
1_000 * FRACTIONAL_TO_USDC * INITIAL_COLLATERAL_RATIO;
|
||||
|
|
Loading…
Reference in New Issue