fix: line lenght (other way)

This commit is contained in:
Ricardo Guilherme Schmidt 2024-08-27 13:14:40 -03:00
parent d2345d21c8
commit 12f16e300c
1 changed files with 8 additions and 39 deletions

View File

@ -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");