Skip to content

Commit

Permalink
Addressed review feedback from @jrhea
Browse files Browse the repository at this point in the history
  • Loading branch information
jalextowle committed Jun 18, 2024
1 parent 542fa41 commit 9a49cd4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/integrations/hyperdrive/CircuitBreakerTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contract CircuitBreakerTest is HyperdriveTest {
// Ensure a feasible time stretch fixed rate.
uint256 timeStretchFixedRate = fixedRate;

// Deploy the pool and initialize the market
// Deploy the pool and initialize the market.
IHyperdrive.PoolConfig memory config = testConfig(
timeStretchFixedRate,
POSITION_DURATION
Expand Down Expand Up @@ -64,7 +64,7 @@ contract CircuitBreakerTest is HyperdriveTest {
// Ensure a feasible time stretch fixed rate.
uint256 timeStretchFixedRate = fixedRate;

// Deploy the pool and initialize the market
// Deploy the pool and initialize the market.
IHyperdrive.PoolConfig memory config = testConfig(
timeStretchFixedRate,
POSITION_DURATION
Expand All @@ -87,7 +87,7 @@ contract CircuitBreakerTest is HyperdriveTest {

// Add liquidity should revert because the weighted spot apr
// is greater than the delta and the spot apr is less than
// the weighted minus the spot apr
// the weighted minus the spot apr.
baseToken.mint(contribution);
baseToken.approve(address(hyperdrive), contribution);
vm.expectRevert(IHyperdrive.CircuitBreakerTriggered.selector);
Expand All @@ -104,7 +104,7 @@ contract CircuitBreakerTest is HyperdriveTest {
);
}

// This test ensures that the circuit breaker won't be effected by
// This test ensures that the circuit breaker won't be affected by
// changes to the spot rate in the current checkpoint.
{
// Ensure a feasible fixed rate.
Expand All @@ -113,7 +113,7 @@ contract CircuitBreakerTest is HyperdriveTest {
// Ensure a feasible time stretch fixed rate.
uint256 timeStretchFixedRate = fixedRate;

// Deploy the pool and initialize the market
// Deploy the pool and initialize the market.
IHyperdrive.PoolConfig memory config = testConfig(
timeStretchFixedRate,
POSITION_DURATION
Expand All @@ -138,7 +138,7 @@ contract CircuitBreakerTest is HyperdriveTest {

// Add liquidity should revert because the weighted spot apr
// is greater than the delta and the spot apr is less than
// the weighted minus the spot apr
// the weighted minus the spot apr.
baseToken.mint(contribution);
baseToken.approve(address(hyperdrive), contribution);
vm.expectRevert(IHyperdrive.CircuitBreakerTriggered.selector);
Expand Down Expand Up @@ -271,7 +271,7 @@ contract CircuitBreakerTest is HyperdriveTest {
// Ensure a feasible time stretch fixed rate.
uint256 timeStretchFixedRate = fixedRate;

// Deploy the pool and initialize the market
// Deploy the pool and initialize the market.
IHyperdrive.PoolConfig memory config = testConfig(
timeStretchFixedRate,
POSITION_DURATION
Expand Down Expand Up @@ -318,7 +318,7 @@ contract CircuitBreakerTest is HyperdriveTest {
// Ensure a feasible time stretch fixed rate.
uint256 timeStretchFixedRate = fixedRate;

// Deploy the pool and initialize the market
// Deploy the pool and initialize the market.
IHyperdrive.PoolConfig memory config = testConfig(
timeStretchFixedRate,
POSITION_DURATION
Expand Down

0 comments on commit 9a49cd4

Please sign in to comment.