Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Sep 11, 2024
1 parent 76314e5 commit 7962c9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/fuzz/FuzzVotingPowerExchange.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ contract VotingPwoerExchangeTest is Test {
/////////////////////////////////////////////////////////////////
/// Test the `calculateBurningAmountFromVotingPower` function ///
/////////////////////////////////////////////////////////////////
function testFuzzCalculateBurningAmountFromVotingPower_0_110(uint256 votingPowerAmount) public view{
function testFuzzCalculateBurningAmountFromVotingPower_0_110(uint256 votingPowerAmount) public view {
// limit the votingPowerAmount to a reasonable range
votingPowerAmount = bound(votingPowerAmount, 0, 110e18);

Expand All @@ -271,7 +271,7 @@ contract VotingPwoerExchangeTest is Test {
assertTrue(burningAmount <= 92675e18);
}

function testFuzzCalculateBurningAmountFromVotingPower_100_110(uint256 votingPowerAmount) public view{
function testFuzzCalculateBurningAmountFromVotingPower_100_110(uint256 votingPowerAmount) public view {
// limit the votingPowerAmount to a reasonable range
votingPowerAmount = bound(votingPowerAmount, 100e18, 110e18);

Expand All @@ -289,7 +289,7 @@ contract VotingPwoerExchangeTest is Test {

uint256 burningAmount = votingPowerExchange.calculateBurningAmountFromVotingPower(votingPowerAmount);
uint256 expectedBurningAmount = calculateExpectedBurningAmount(votingPowerAmount);

assertEq(burningAmount, expectedBurningAmount);
assertTrue(burningAmount >= 62325e18);
assertTrue(burningAmount <= 76750e18);
Expand All @@ -301,7 +301,7 @@ contract VotingPwoerExchangeTest is Test {

uint256 burningAmount = votingPowerExchange.calculateBurningAmountFromVotingPower(votingPowerAmount);
uint256 expectedBurningAmount = calculateExpectedBurningAmount(votingPowerAmount);

assertEq(burningAmount, expectedBurningAmount);
assertTrue(burningAmount >= 49400e18);
assertTrue(burningAmount <= 62325e18);
Expand Down Expand Up @@ -337,7 +337,7 @@ contract VotingPwoerExchangeTest is Test {

uint256 burningAmount = votingPowerExchange.calculateBurningAmountFromVotingPower(votingPowerAmount);
uint256 expectedBurningAmount = calculateExpectedBurningAmount(votingPowerAmount);

assertEq(burningAmount, expectedBurningAmount);
assertTrue(burningAmount >= 19625e18);
assertTrue(burningAmount <= 28050e18);
Expand All @@ -349,7 +349,7 @@ contract VotingPwoerExchangeTest is Test {

uint256 burningAmount = votingPowerExchange.calculateBurningAmountFromVotingPower(votingPowerAmount);
uint256 expectedBurningAmount = calculateExpectedBurningAmount(votingPowerAmount);

assertEq(burningAmount, expectedBurningAmount);
assertTrue(burningAmount >= 12700e18);
assertTrue(burningAmount <= 19625e18);
Expand Down

0 comments on commit 7962c9f

Please sign in to comment.