Skip to content

Commit

Permalink
template2
Browse files Browse the repository at this point in the history
  • Loading branch information
scab24 committed Sep 5, 2024
1 parent f64290b commit e86233f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/template1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {TickMath} from "v4-core/libraries/TickMath.sol";
import {FixedPointMathLib} from "solmate/src/utils/FixedPointMathLib.sol";
import {BeforeSwapDelta, toBeforeSwapDelta} from "v4-core/types/BeforeSwapDelta.sol";

contract DeltaGammaHedgingHook is BaseHook {
contract template1 is BaseHook {
using PoolIdLibrary for PoolKey;
using CurrencyLibrary for Currency;
using FixedPointMathLib for uint256;
Expand Down
8 changes: 4 additions & 4 deletions test/Impermanent.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {CurrencyLibrary, Currency} from "v4-core/types/Currency.sol";
import {PoolId, PoolIdLibrary} from "v4-core/types/PoolId.sol";
import {Hooks} from "v4-core/libraries/Hooks.sol";
import {BalanceDelta} from "v4-core/types/BalanceDelta.sol";
import {DeltaGammaHedgingHook} from "../src/DeltaGammaHedgingHook.sol";
import {template1} from "../src/template1.sol";
import {TickMath} from "v4-core/libraries/TickMath.sol";


Expand All @@ -23,7 +23,7 @@ contract DeltaGammaHedgingHookTest is Test, Deployers {
using CurrencyLibrary for Currency;
using PoolIdLibrary for PoolKey;

DeltaGammaHedgingHook hook;
template1 hook;

function setUp() public {
// Desplegar contratos core de v4
Expand All @@ -40,8 +40,8 @@ function setUp() public {
address hookAddress = address(flags);

// Desplegar hook
deployCodeTo("DeltaGammaHedgingHook.sol", abi.encode(manager), hookAddress);
hook = DeltaGammaHedgingHook(hookAddress);
deployCodeTo("template1.sol", abi.encode(manager), hookAddress);
hook = template1(hookAddress);

// Inicializar un pool
(key, ) = initPool(
Expand Down

0 comments on commit e86233f

Please sign in to comment.