Skip to content

pancakeswap/infinity-dynamic-fee-hook

Repository files navigation

Infinity Dynamic Fee Hooks

Running test

  1. Install dependencies with forge install
  2. Run test with forge test --isolate

See pancakeswap/infinity-core#35 on why --isolate flag is used.

Update dependencies

  1. Run forge update

Deployment

The scripts are located in /script folder, deployed contract address can be found in script/config

Pre-req: before deployment, the follow env variable needs to be set

// set script config: /script/config/{SCRIPT_CONFIG}.json
export SCRIPT_CONFIG=ethereum-sepolia

// set rpc url
export RPC_URL=https://

// private key need to be prefixed with 0x
export PRIVATE_KEY=0x

Execute

Refer to the script source code for the exact command

Example. within script/01_DeployCLDynamicFeeHook.s.sol

forge script script/01_DeployCLDynamicFeeHook.s.sol:DeployCLDynamicFeeHookScript -vvv \
    --rpc-url $RPC_URL \
    --broadcast \
    --slow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •