mirror of https://github.com/logos-co/staking.git
fix: line lenght size
This commit is contained in:
parent
7bf91d45b2
commit
d2345d21c8
|
@ -423,7 +423,15 @@ 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");
|
||||
|
@ -555,7 +563,16 @@ 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);
|
||||
|
@ -624,7 +641,16 @@ 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");
|
||||
|
@ -646,7 +672,16 @@ 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");
|
||||
|
|
Loading…
Reference in New Issue