From f9b2b346040fd219040ad21bb0e991ee3e52f07e Mon Sep 17 00:00:00 2001 From: TepNik Date: Mon, 24 Feb 2025 16:00:33 +0100 Subject: [PATCH 1/2] Fixed vm.assume for user address for the Pool Deficit tests --- tests/protocol/pool/Pool.Deficit.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/protocol/pool/Pool.Deficit.sol b/tests/protocol/pool/Pool.Deficit.sol index 0ee0532c..9b6f7567 100644 --- a/tests/protocol/pool/Pool.Deficit.sol +++ b/tests/protocol/pool/Pool.Deficit.sol @@ -279,6 +279,7 @@ contract PoolDeficitTests is TestnetProcedures { vm.assume(user != contracts.poolProxy.getReserveAToken(tokenList.usdx)); vm.assume(user != contracts.poolProxy.getReserveAToken(tokenList.wbtc)); vm.assume(user != contracts.poolProxy.getReserveAToken(tokenList.weth)); + vm.assume(user != report.poolConfiguratorProxy); } // we reinvent these helpers on each contract and should move them somewhere common From 03b42be57d90d5dc66c67345eb225ffcaceec1ea Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 24 Feb 2025 17:23:04 +0100 Subject: [PATCH 2/2] fix: update snapshots --- snapshots/Pool.Getters.json | 14 +++++++------- snapshots/ProtocolDataProvider.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/snapshots/Pool.Getters.json b/snapshots/Pool.Getters.json index b2c203fa..dacf7a90 100644 --- a/snapshots/Pool.Getters.json +++ b/snapshots/Pool.Getters.json @@ -4,11 +4,11 @@ "getLiquidationGracePeriod": "7765", "getReserveData": "32157", "getUserAccountData: supplies: 0, borrows: 0": "22641", - "getUserAccountData: supplies: 0, borrows: 0 with eMode enabled": "7641", - "getUserAccountData: supplies: 1, borrows: 0": "35053", - "getUserAccountData: supplies: 1, borrows: 0 with eMode enabled": "27360", - "getUserAccountData: supplies: 2, borrows: 0": "47575", - "getUserAccountData: supplies: 2, borrows: 0 with eMode enabled": "40267", - "getUserAccountData: supplies: 2, borrows: 1": "29431", - "getUserAccountData: supplies: 2, borrows: 1 with eMode enabled": "30623" + "getUserAccountData: supplies: 0, borrows: 0 with eMode enabled": "22641", + "getUserAccountData: supplies: 1, borrows: 0": "58553", + "getUserAccountData: supplies: 1, borrows: 0 with eMode enabled": "61360", + "getUserAccountData: supplies: 2, borrows: 0": "87575", + "getUserAccountData: supplies: 2, borrows: 0 with eMode enabled": "90767", + "getUserAccountData: supplies: 2, borrows: 1": "118931", + "getUserAccountData: supplies: 2, borrows: 1 with eMode enabled": "122123" } \ No newline at end of file diff --git a/snapshots/ProtocolDataProvider.json b/snapshots/ProtocolDataProvider.json index 599b239d..ae69bbd0 100644 --- a/snapshots/ProtocolDataProvider.json +++ b/snapshots/ProtocolDataProvider.json @@ -11,6 +11,6 @@ "getSiloedBorrowing": "16792", "getTotalDebt": "35491", "getUnbackedMintCap": "16721", - "getUserReserveData": "29607", + "getUserReserveData": "72607", "getVirtualUnderlyingBalance": "16533" } \ No newline at end of file