From 12f16e300ce593e8b58b46cb9fa748ce914577cb Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Tue, 27 Aug 2024 13:14:40 -0300 Subject: [PATCH] fix: line lenght (other way) --- test/StakeManager.t.sol | 47 +++++++---------------------------------- 1 file changed, 8 insertions(+), 39 deletions(-) diff --git a/test/StakeManager.t.sol b/test/StakeManager.t.sol index 23f6eb7..25ab8dc 100644 --- a/test/StakeManager.t.sol +++ b/test/StakeManager.t.sol @@ -423,15 +423,8 @@ contract LockTest is StakeManagerTest { vm.startPrank(testUser); userVault.lock(lockTime); - ( - , - uint256 newBalance, - uint256 newBonusMP, - uint256 newCurrentMP, - , - , - , - ) = stakeManager.accounts(address(userVault)); + (, uint256 newBalance, uint256 newBonusMP, uint256 newCurrentMP,,,,) = + stakeManager.accounts(address(userVault)); uint256 totalSupplyMPAfter = stakeManager.totalSupplyMP(); assertGt(totalSupplyMPAfter, totalSupplyMPBefore, "totalSupplyMP"); assertGt(newBonusMP, bonusMP, "bonusMP"); @@ -563,16 +556,8 @@ contract ExecuteAccountTest is StakeManagerTest { console.log("---##### rewards :", rewardsBefore); console.log("--=====AFTER======"); stakeManager.executeAccount(address(userVaults[j]), epochBefore + 1); - ( - , - , - , - uint256 totalMP, - uint256 lastMint, - , - uint256 epoch - , - ) = stakeManager.accounts(address(userVaults[j])); + (,,, uint256 totalMP, uint256 lastMint,, uint256 epoch,) = + stakeManager.accounts(address(userVaults[j])); uint256 rewards = ERC20(stakeToken).balanceOf(rewardAddress); console.log("---### deltaTime :", lastMint - lastMintBefore); console.log("---### totalMP :", totalMP); @@ -641,16 +626,8 @@ contract ExecuteAccountTest is StakeManagerTest { uint256 rewardsBefore = ERC20(stakeToken).balanceOf(rewardAddress); stakeManager.executeAccount(address(userVaults[j]), epochBefore + 1); - ( - , - , - , - uint256 totalMP, - uint256 lastMint, - , - uint256 epoch - , - ) = stakeManager.accounts(address(userVaults[j])); + (,,, uint256 totalMP, uint256 lastMint,, uint256 epoch,) = + stakeManager.accounts(address(userVaults[j])); uint256 rewards = ERC20(stakeToken).balanceOf(rewardAddress); //assertEq(lastMint, lastMintBefore + stakeManager.EPOCH_SIZE(), "must increaase lastMint"); assertEq(epoch, epochBefore + 1, "must increase epoch"); @@ -672,16 +649,8 @@ contract ExecuteAccountTest is StakeManagerTest { uint256 rewardsBefore = ERC20(stakeToken).balanceOf(rewardAddress); stakeManager.executeAccount(address(userVaults[j]), epochBefore + 1); - ( - , - , - , - uint256 totalMP, - uint256 lastMint, - , - uint256 epoch - , - ) = stakeManager.accounts(address(userVaults[j])); + (,,, uint256 totalMP, uint256 lastMint,, uint256 epoch,) = + stakeManager.accounts(address(userVaults[j])); uint256 rewards = ERC20(stakeToken).balanceOf(rewardAddress); assertEq(lastMint, lastMintBefore + stakeManager.EPOCH_SIZE(), "must increaase lastMint"); assertEq(epoch, epochBefore + 1, "must increase epoch");