Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Sep 11, 2024
1 parent 5fbf393 commit bc22c2c
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions test/fuzz/FuzzVotingPowerExchange.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 92675e18);
uint256 currentBurnedAmount = uint256(0);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0);
assertTrue(incrementedVotingPower <= 110e18);
}
Expand All @@ -127,7 +128,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 925e18);
uint256 currentBurnedAmount = uint256(0);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -137,7 +139,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 2425e18);
uint256 currentBurnedAmount = uint256(925e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -147,7 +150,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 3925e18);
uint256 currentBurnedAmount = uint256(3350e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -157,7 +161,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 5425e18);
uint256 currentBurnedAmount = uint256(7275e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -167,7 +172,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 6925e18);
uint256 currentBurnedAmount = uint256(12700e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -177,7 +183,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 8425e18);
uint256 currentBurnedAmount = uint256(20815e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -187,7 +194,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 9925e18);
uint256 currentBurnedAmount = uint256(31840e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -197,7 +205,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 11425e18);
uint256 currentBurnedAmount = uint256(45765e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -207,7 +216,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 12925e18);
uint256 currentBurnedAmount = uint256(62325e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -217,7 +227,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 0, 14425e18);
uint256 currentBurnedAmount = uint256(92675e18);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 0e18);
assertTrue(incrementedVotingPower <= 10e18);
}
Expand All @@ -227,7 +238,8 @@ contract VotingPwoerExchangeTest is Test {
incrementedAmount = bound(incrementedAmount, 925e18, 92675e18);
uint256 currentBurnedAmount = uint256(0);

uint256 incrementedVotingPower = votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
uint256 incrementedVotingPower =
votingPowerExchange.calculateIncrementedVotingPower(incrementedAmount, currentBurnedAmount);
assertTrue(incrementedVotingPower >= 10e18);
assertTrue(incrementedVotingPower <= 110e18);
}
Expand Down

0 comments on commit bc22c2c

Please sign in to comment.