Skip to content

Commit

Permalink
Remove depency with uniswap quoter
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Mar 28, 2024
1 parent b8b98cb commit 5d870b6
Show file tree
Hide file tree
Showing 13 changed files with 109 additions and 391 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,41 @@ yarn test:lint # run prettier linter
./bin/deploy.sh <network> goldsky 0xgraph
```

# Dependecies on the underlying contracts

```text
- boostFactory: BoostDeployed(indexed address)
- boost.stakedToken()
- boost.rewardToken()
- vaultFactory: ProxyCreated(address)
- vault.balances()
- vault.totalSupply()
- vault.previewWithdraw()
- vault.balanceOf()
- vault.strategy()
- vault: Initialized(uint8)
- vault: OwnershipTransferred(indexed address,indexed address)
- vault: Deposit(indexed address,uint256,uint256,uint256)
- vault: Withdraw(indexed address,uint256,uint256,uint256)
- vault: Transfer(indexed address,indexed address,uint256)
- strategyFactory: GlobalPause(bool)
- strategy.pool()
- strategy.vault()
- strategy.price()
- strategy.range()
- strategy.lpToken1ToNativePrice()
- strategy.lpToken0ToNativePrice()
- strategy: Initialized(uint8)
- strategy: OwnershipTransferred(indexed address,indexed address)
- strategy: Paused(address)
- strategy: Unpaused(address)
- strategy: Harvest(uint256,uint256)
- strategy: ChargedFees(uint256,uint256,uint256)
- strategy: ClaimedFees(uint256,uint256,uint256,uint256)
```

# TODO list

- feat: add P&L
Expand Down
8 changes: 8 additions & 0 deletions abis/beefy/concliq/BeefyStrategyFactory.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"inputs": [
{ "internalType": "address", "name": "_native", "type": "address" },
{ "internalType": "address", "name": "_keeper", "type": "address" },
{ "internalType": "address", "name": "_beefyFeeRecipient", "type": "address" },
{ "internalType": "address", "name": "_beefyFeeConfig", "type": "address" }
Expand Down Expand Up @@ -146,6 +147,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "native",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
Expand Down
80 changes: 37 additions & 43 deletions abis/beefy/concliq/StrategyPassiveManagerUniswap.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"name": "SafeERC20FailedOperation",
"type": "error"
},
{ "inputs": [], "name": "StrategyPaused", "type": "error" },
{ "inputs": [], "name": "TooMuchSlippage", "type": "error" },
{
"anonymous": false,
Expand Down Expand Up @@ -86,30 +87,12 @@
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "beefyFeeConfig", "type": "address" }],
"name": "SetBeefyFeeConfig",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "beefyFeeRecipient", "type": "address" }],
"name": "SetBeefyFeeRecipient",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "int56", "name": "maxTickDeviation", "type": "int56" }],
"name": "SetDeviation",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "keeper", "type": "address" }],
"name": "SetKeeper",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "bytes", "name": "path", "type": "bytes" }],
Expand All @@ -131,6 +114,12 @@
"name": "SetPositionWidth",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "address", "name": "quoter", "type": "address" }],
"name": "SetQuoter",
"type": "event"
},
{
"anonymous": false,
"inputs": [{ "indexed": false, "internalType": "uint256", "name": "feeId", "type": "uint256" }],
Expand Down Expand Up @@ -249,6 +238,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [{ "internalType": "contract IStrategyFactory", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "fees0",
Expand Down Expand Up @@ -321,18 +317,16 @@
{
"inputs": [
{ "internalType": "address", "name": "_pool", "type": "address" },
{ "internalType": "address", "name": "_native", "type": "address" },
{ "internalType": "address", "name": "_quoter", "type": "address" },
{ "internalType": "int24", "name": "_positionWidth", "type": "int24" },
{ "internalType": "bytes", "name": "_lpToken0ToNativePath", "type": "bytes" },
{ "internalType": "bytes", "name": "_lpToken1ToNativePath", "type": "bytes" },
{
"components": [
{ "internalType": "address", "name": "vault", "type": "address" },
{ "internalType": "address", "name": "unirouter", "type": "address" },
{ "internalType": "address", "name": "keeper", "type": "address" },
{ "internalType": "address", "name": "strategist", "type": "address" },
{ "internalType": "address", "name": "beefyFeeRecipient", "type": "address" },
{ "internalType": "address", "name": "beefyFeeConfig", "type": "address" }
{ "internalType": "address", "name": "factory", "type": "address" }
],
"internalType": "struct StratFeeManagerInitializable.CommonAddresses",
"name": "_commonAddresses",
Expand Down Expand Up @@ -389,6 +383,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lpToken0ToNativePrice",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "lpToken1",
Expand All @@ -410,6 +411,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lpToken1ToNativePrice",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "maxTickDeviation",
Expand Down Expand Up @@ -489,6 +497,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "quoter",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "range",
Expand All @@ -500,34 +515,13 @@
"type": "function"
},
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [{ "internalType": "address", "name": "_beefyFeeConfig", "type": "address" }],
"name": "setBeefyFeeConfig",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_beefyFeeRecipient", "type": "address" }],
"name": "setBeefyFeeRecipient",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "int56", "name": "_maxDeviation", "type": "int56" }],
"name": "setDeviation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_keeper", "type": "address" }],
"name": "setKeeper",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "bytes", "name": "_path", "type": "bytes" }],
"name": "setLpToken0ToNativePath",
Expand Down
132 changes: 0 additions & 132 deletions abis/beefy/concliq/StrategyPassiveManagerUniswapFactory.json

This file was deleted.

Loading

0 comments on commit 5d870b6

Please sign in to comment.