Skip to content

Latest commit

 

History

History
 
 

37-charm.fi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

charm.fi

Uniswap V3 做市工具
策略研究:
-分为两种单,基础单和限价单,区别在于做市区间的不同:
B (base threshold) [X-B, X+B]
L (limit threshold) [X-R, X], or [X, X+R]
每隔 12 小时,触发 rebalance 函数。

相关依赖

操作步骤

  • 安装 brownie 包依赖
brownie pm install OpenZeppelin/[email protected]
brownie pm install Uniswap/[email protected]
brownie pm install Uniswap/[email protected]
  • 进行包 clone
brownie pm clone Uniswap/[email protected]
  • 执行测试
brownie test

rinkeby 测试网部署

  • 配置账户
brownie addcounts new deployer
  • 设置 WEB3_INFURA_PROJECT_ID
export WEB3_INFURA_PROJECT_ID=0aae8358bfe04803b8e75bb4755eaf07
  • 设置 ETHERSCAN_TOKEN
export ETHERSCAN_TOKEN=xxxxxxxxxx
  • 部署
brownie run deploy_rinkeby.py --network rinkeby

参考链接