From 7ac2487bb846bb7e00e84e81901facc2b9d25521 Mon Sep 17 00:00:00 2001 From: Peter Bushnell Date: Mon, 12 Sep 2022 12:58:37 +0100 Subject: [PATCH] Update higher collateral test --- test/functional/feature_higher_collateral_factor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/feature_higher_collateral_factor.py b/test/functional/feature_higher_collateral_factor.py index f921a5bcb9..637d313419 100644 --- a/test/functional/feature_higher_collateral_factor.py +++ b/test/functional/feature_higher_collateral_factor.py @@ -142,7 +142,7 @@ def take_dusd_loan(self): self.nodes[0].generate(1) # Deposit DUSD and DFI to vault - self.nodes[0].deposittovault(vault_id, self.address, f"1.5@{self.symbolDFI}") + self.nodes[0].deposittovault(vault_id, self.address, f"1.8675@{self.symbolDFI}") self.nodes[0].generate(1) self.nodes[0].deposittovault(vault_id, self.address, f"1.5@{self.symbolDUSD}") self.nodes[0].generate(1) @@ -153,9 +153,9 @@ def take_dusd_loan(self): # Check that we are on 150% collateral ratio vault = self.nodes[0].getvault(vault_id) - assert_equal(vault['collateralRatio'], 150) - assert_equal(vault['informativeRatio'], Decimal('150.00000000')) - assert_equal(vault['collateralValue'], Decimal('3.73500000')) + assert_equal(vault['collateralRatio'], 165) + assert_equal(vault['informativeRatio'], Decimal('164.75903614')) + assert_equal(vault['collateralValue'], Decimal('4.10250000')) assert_equal(vault['loanValue'], Decimal('2.49000000')) def take_multiple_loans(self):