Skip to content

Commit

Permalink
Merge pull request #213 from blend-capital/bump-update
Browse files Browse the repository at this point in the history
Bump update
  • Loading branch information
mootz12 authored Mar 26, 2024
2 parents b7f1ced + 4a39af0 commit 2977762
Show file tree
Hide file tree
Showing 28 changed files with 236 additions and 203 deletions.
20 changes: 10 additions & 10 deletions backstop/src/backstop/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_queue = 500;
Expand Down Expand Up @@ -198,7 +198,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_queue = 500;
Expand Down Expand Up @@ -235,7 +235,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_queue = 801;
Expand All @@ -260,7 +260,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_wd = 1;
Expand Down Expand Up @@ -291,7 +291,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_wd = 200;
Expand Down Expand Up @@ -325,7 +325,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_wd = 150;
Expand Down Expand Up @@ -374,7 +374,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_wd = 300;
Expand Down Expand Up @@ -428,7 +428,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_wd = 300;
Expand Down Expand Up @@ -468,7 +468,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});
let to_dequeue = 300;
// verify exp is respected when specified
Expand Down Expand Up @@ -507,7 +507,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let to_dequeue = 376;
Expand Down
24 changes: 12 additions & 12 deletions backstop/src/backstop/withdrawal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down Expand Up @@ -175,7 +175,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down Expand Up @@ -212,7 +212,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

execute_queue_withdrawal(&e, &samwise, &pool_address, 40_0000000);
Expand All @@ -226,7 +226,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down Expand Up @@ -279,7 +279,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

execute_queue_withdrawal(&e, &samwise, &pool_address, 40_0000000);
Expand All @@ -293,7 +293,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down Expand Up @@ -325,7 +325,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

// setup pool with queue for withdrawal and allow the backstop to incur a profit
Expand All @@ -343,7 +343,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down Expand Up @@ -392,7 +392,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

// setup pool with queue for withdrawal and allow the backstop to incur a profit
Expand All @@ -410,7 +410,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down Expand Up @@ -445,7 +445,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

// setup pool with queue for withdrawal and allow the backstop to incur a profit
Expand All @@ -464,7 +464,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

e.as_contract(&backstop_address, || {
Expand Down
8 changes: 4 additions & 4 deletions backstop/src/emissions/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});
e.budget().reset_unlimited();

Expand Down Expand Up @@ -267,7 +267,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_address = create_backstop(&e);
Expand Down Expand Up @@ -418,7 +418,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});
let backstop_lp_balance = backstop_lp_balance + 6_5244800;
let pre_frodo_balance_1 = storage::get_user_balance(&e, &pool_1_id, &frodo).shares;
Expand Down Expand Up @@ -490,7 +490,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_address = create_backstop(&e);
Expand Down
20 changes: 10 additions & 10 deletions backstop/src/emissions/distributor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -248,7 +248,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -289,7 +289,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -343,7 +343,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -397,7 +397,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -460,7 +460,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -520,7 +520,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -566,7 +566,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -622,7 +622,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down Expand Up @@ -674,7 +674,7 @@ mod tests {
base_reserve: 10,
min_temp_entry_ttl: 10,
min_persistent_entry_ttl: 10,
max_entry_ttl: 2000000,
max_entry_ttl: 3110400,
});

let backstop_id = create_backstop(&e);
Expand Down
Loading

0 comments on commit 2977762

Please sign in to comment.