From 7463b75a09928e39dd7683c5773482aa751a3205 Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Fri, 4 Jun 2021 09:22:32 +0200 Subject: [PATCH] fix: Add check for user bal == contract bal when 1 user --- .../static-atoken-liquidity-mining.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts index 4d16f5c2..63a4c54b 100644 --- a/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts +++ b/test-suites/test-aave/mainnet/static-atoken-lm/static-atoken-liquidity-mining.spec.ts @@ -326,6 +326,9 @@ describe('StaticATokenLM: aToken wrapper with static balances and liquidity mini ctxtAfterDeposit.staticATokenATokenBalance ); expect(ctxtAfterDeposit.userStaticATokenBalance).to.be.eq(ctxtAfterDeposit.staticATokenSupply); + expect(ctxtAfterDeposit.staticATokenATokenBalance).to.be.eq( + ctxtAfterDeposit.userDynamicStaticATokenBalance + ); expect(ctxtAfterDeposit.staticATokenATokenBalance).to.be.eq(amountToDeposit); expect(ctxtAfterWithdrawal.userDynamicStaticATokenBalance).to.be.eq( @@ -389,6 +392,10 @@ describe('StaticATokenLM: aToken wrapper with static balances and liquidity mini expect(ctxtInitial.staticATokenSupply).to.be.eq(0); expect(ctxtInitial.userATokenBalance).to.be.eq(0); + expect(ctxtAfterDeposit.staticATokenATokenBalance).to.be.eq( + ctxtAfterDeposit.userDynamicStaticATokenBalance + ); + expect(ctxtAfterDeposit.userStaticATokenBalance).to.be.eq(ctxtAfterDeposit.staticATokenSupply); expect(ctxtAfterDeposit.userDynamicStaticATokenBalance).to.be.eq(amountToDeposit); expect(ctxtAfterWithdrawal.userATokenBalance).to.be.eq( rayMul(