diff --git a/pool/src/auctions/bad_debt_auction.rs b/pool/src/auctions/bad_debt_auction.rs index c26760f9..d01d043c 100644 --- a/pool/src/auctions/bad_debt_auction.rs +++ b/pool/src/auctions/bad_debt_auction.rs @@ -88,7 +88,6 @@ pub fn fill_bad_debt_auction( let backstop_client = BackstopClient::new(e, &backstop_address); let backstop_token_id = backstop_client.backstop_token(); let lot_amount = auction_data.lot.get(backstop_token_id).unwrap_optimized(); - let backstop_client = BackstopClient::new(e, &backstop_address); backstop_client.draw( &e.current_contract_address(), &lot_amount, diff --git a/pool/src/pool/submit.rs b/pool/src/pool/submit.rs index 948647ba..c4d19900 100644 --- a/pool/src/pool/submit.rs +++ b/pool/src/pool/submit.rs @@ -41,6 +41,7 @@ pub fn execute_submit( // panics if the new positions set does not meet the health factor requirement // min is 1.0000100 to prevent rounding errors if check_health + && new_from_state.positions.liabilities.len() > 0 && PositionData::calculate_from_positions(e, &mut pool, &new_from_state.positions) .is_hf_under(1_0000100) { diff --git a/total = b/total = new file mode 100644 index 00000000..39024f6e --- /dev/null +++ b/total = @@ -0,0 +1,13 @@ +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true +[user] + name = markuspluna + email = 59978114+markuspluna@users.noreply.github.com +[credential] + helper = + helper = /usr/local/share/gcm-core/git-credential-manager +[credential "https://dev.azure.com"] + useHttpPath = true