diff --git a/abis/beefy/concliq/BeefyVaultConcLiq.json b/abis/beefy/concliq/BeefyVaultConcLiq.json index d493cab..394161a 100644 --- a/abis/beefy/concliq/BeefyVaultConcLiq.json +++ b/abis/beefy/concliq/BeefyVaultConcLiq.json @@ -1,650 +1,293 @@ [ + { "inputs": [], "name": "NoShares", "type": "error" }, + { "inputs": [], "name": "TooMuchSlippage", "type": "error" }, { - "type": "function", - "name": "allowance", + "anonymous": false, "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } + { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "shares", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "amount0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "amount1", "type": "uint256" } ], - "stateMutability": "view" + "name": "Deposit", + "type": "event" }, { - "type": "function", - "name": "approve", + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } + { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], - "stateMutability": "nonpayable" + "name": "Transfer", + "type": "event" }, { - "type": "function", - "name": "available", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "shares", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "amount0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "amount1", "type": "uint256" } ], - "stateMutability": "view" + "name": "Withdraw", + "type": "event" }, { - "type": "function", - "name": "balanceOf", "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } + { "internalType": "address", "name": "owner", "type": "address" }, + { "internalType": "address", "name": "spender", "type": "address" } ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + "name": "allowance", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "spender", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" } ], - "stateMutability": "view" + "name": "approve", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "balances", "inputs": [], + "name": "available", "outputs": [ - { - "name": "amount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "amount1", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "", "type": "uint256" }, + { "internalType": "uint256", "name": "", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], + "name": "balanceOf", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "decimals", "inputs": [], + "name": "balances", "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "uint8" - } + { "internalType": "uint256", "name": "amount0", "type": "uint256" }, + { "internalType": "uint256", "name": "amount1", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "decreaseAllowance", "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "subtractedValue", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } + { "internalType": "address", "name": "spender", "type": "address" }, + { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], - "stateMutability": "nonpayable" + "name": "decreaseAllowance", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "deposit", "inputs": [ - { - "name": "_amount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_amount1", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_minShares", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "_amount0", "type": "uint256" }, + { "internalType": "uint256", "name": "_amount1", "type": "uint256" }, + { "internalType": "uint256", "name": "_minShares", "type": "uint256" } ], + "name": "deposit", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", + "inputs": [{ "internalType": "uint256", "name": "_minShares", "type": "uint256" }], "name": "depositAll", - "inputs": [ - { - "name": "_minShares", - "type": "uint256", - "internalType": "uint256" - } - ], "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", + "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }], "name": "inCaseTokensGetStuck", - "inputs": [ - { - "name": "_token", - "type": "address", - "internalType": "address" - } - ], "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "increaseAllowance", "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "addedValue", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } + { "internalType": "address", "name": "spender", "type": "address" }, + { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], - "stateMutability": "nonpayable" + "name": "increaseAllowance", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "initialize", "inputs": [ - { - "name": "_strategy", - "type": "address", - "internalType": "address" - }, - { - "name": "_name", - "type": "string", - "internalType": "string" - }, - { - "name": "_symbol", - "type": "string", - "internalType": "string" - } + { "internalType": "address", "name": "_strategy", "type": "address" }, + { "internalType": "string", "name": "_name", "type": "string" }, + { "internalType": "string", "name": "_symbol", "type": "string" } ], + "name": "initialize", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "name", "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" + "name": "name", + "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "owner", "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "name": "owner", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "previewDeposit", "inputs": [ - { - "name": "_amount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_amount1", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "_amount0", "type": "uint256" }, + { "internalType": "uint256", "name": "_amount1", "type": "uint256" } ], - "outputs": [ - { - "name": "shares", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "name": "previewDeposit", + "outputs": [{ "internalType": "uint256", "name": "shares", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", + "inputs": [{ "internalType": "uint256", "name": "_shares", "type": "uint256" }], "name": "previewWithdraw", - "inputs": [ - { - "name": "_shares", - "type": "uint256", - "internalType": "uint256" - } - ], "outputs": [ - { - "name": "amount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "amount1", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "amount0", "type": "uint256" }, + { "internalType": "uint256", "name": "amount1", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, + { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "type": "function", - "name": "renounceOwnership", "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", "name": "strategy", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IStrategyConcLiq" - } - ], - "stateMutability": "view" + "outputs": [{ "internalType": "contract IStrategyConcLiq", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "symbol", "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" + "name": "symbol", + "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "totalSupply", "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "name": "totalSupply", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "transfer", "inputs": [ - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } + { "internalType": "address", "name": "to", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" } ], - "stateMutability": "nonpayable" + "name": "transfer", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "transferFrom", "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "address", "name": "from", "type": "address" }, + { "internalType": "address", "name": "to", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" } ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" + "name": "transferFrom", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", + "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "want", "inputs": [], - "outputs": [ - { - "name": "_want", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "name": "want", + "outputs": [{ "internalType": "address", "name": "_want", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "wants", "inputs": [], + "name": "wants", "outputs": [ - { - "name": "token0", - "type": "address", - "internalType": "address" - }, - { - "name": "token1", - "type": "address", - "internalType": "address" - } + { "internalType": "address", "name": "token0", "type": "address" }, + { "internalType": "address", "name": "token1", "type": "address" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "withdraw", "inputs": [ - { - "name": "_shares", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_minAmount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_minAmount1", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "_shares", "type": "uint256" }, + { "internalType": "uint256", "name": "_minAmount0", "type": "uint256" }, + { "internalType": "uint256", "name": "_minAmount1", "type": "uint256" } ], + "name": "withdraw", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "withdrawAll", "inputs": [ - { - "name": "_minAmount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_minAmount1", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "_minAmount0", "type": "uint256" }, + { "internalType": "uint256", "name": "_minAmount1", "type": "uint256" } ], + "name": "withdrawAll", "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Deposit", - "inputs": [ - { - "name": "user", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "shares", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "amount0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "amount1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Transfer", - "inputs": [ - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Withdraw", - "inputs": [ - { - "name": "user", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "shares", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "amount0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "amount1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "NoShares", - "inputs": [] - }, - { - "type": "error", - "name": "TooMuchSlippage", - "inputs": [] + "stateMutability": "nonpayable", + "type": "function" } ] diff --git a/abis/beefy/concliq/BeefyVaultConcLiqFactory.json b/abis/beefy/concliq/BeefyVaultConcLiqFactory.json index 92f5d43..83a5ae2 100644 --- a/abis/beefy/concliq/BeefyVaultConcLiqFactory.json +++ b/abis/beefy/concliq/BeefyVaultConcLiqFactory.json @@ -1,52 +1,27 @@ [ { - "type": "constructor", - "inputs": [ - { - "name": "_instance", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" + "inputs": [{ "internalType": "address", "name": "_instance", "type": "address" }], + "stateMutability": "nonpayable", + "type": "constructor" }, { - "type": "function", - "name": "cloneVault", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract BeefyVaultConcLiq" - } - ], - "stateMutability": "nonpayable" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "proxy", "type": "address" }], + "name": "ProxyCreated", + "type": "event" }, { - "type": "function", - "name": "instance", "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract BeefyVaultConcLiq" - } - ], - "stateMutability": "view" + "name": "cloneVault", + "outputs": [{ "internalType": "contract BeefyVaultConcLiq", "name": "", "type": "address" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "ProxyCreated", - "inputs": [ - { - "name": "proxy", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [], + "name": "instance", + "outputs": [{ "internalType": "contract BeefyVaultConcLiq", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" } ] diff --git a/abis/beefy/concliq/StrategyPassiveManagerUniswap.json b/abis/beefy/concliq/StrategyPassiveManagerUniswap.json index 379153e..a7bfc03 100644 --- a/abis/beefy/concliq/StrategyPassiveManagerUniswap.json +++ b/abis/beefy/concliq/StrategyPassiveManagerUniswap.json @@ -1,1383 +1,672 @@ [ { - "type": "function", - "name": "balances", - "inputs": [], - "outputs": [ - { - "name": "token0Bal", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "token1Bal", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "balancesOfPool", - "inputs": [], - "outputs": [ - { - "name": "token0Bal", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "token1Bal", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "mainAmount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "mainAmount1", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "altAmount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "altAmount1", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "balancesOfThis", - "inputs": [], - "outputs": [ - { - "name": "token0Bal", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "token1Bal", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "beefyFeeConfig", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IFeeConfig" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "beefyFeeRecipient", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "beforeAction", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "currentTick", - "inputs": [], - "outputs": [ - { - "name": "tick", - "type": "int24", - "internalType": "int24" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "deposit", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" + "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], + "name": "AddressEmptyCode", + "type": "error" }, { - "type": "function", - "name": "depositFee", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], + "name": "AddressInsufficientBalance", + "type": "error" + }, + { "inputs": [], "name": "FailedInnerCall", "type": "error" }, + { "inputs": [], "name": "InvalidEntry", "type": "error" }, + { "inputs": [], "name": "InvalidInput", "type": "error" }, + { "inputs": [], "name": "InvalidOutput", "type": "error" }, + { "inputs": [], "name": "NotAuthorized", "type": "error" }, + { "inputs": [], "name": "NotCalm", "type": "error" }, + { "inputs": [], "name": "NotManager", "type": "error" }, + { "inputs": [], "name": "NotPool", "type": "error" }, + { "inputs": [], "name": "NotStrategist", "type": "error" }, + { "inputs": [], "name": "NotVault", "type": "error" }, + { "inputs": [], "name": "OverLimit", "type": "error" }, + { + "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], + "name": "SafeERC20FailedOperation", + "type": "error" }, + { "inputs": [], "name": "TooMuchSlippage", "type": "error" }, { - "type": "function", - "name": "fees0", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "uint256", "name": "callFeeAmount", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "beefyFeeAmount", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "strategistFeeAmount", "type": "uint256" } ], - "stateMutability": "view" + "name": "ChargedFees", + "type": "event" }, { - "type": "function", - "name": "fees1", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "uint256", "name": "feeMain0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "feeMain1", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "feeAlt0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "feeAlt1", "type": "uint256" } ], - "stateMutability": "view" + "name": "ClaimedFees", + "type": "event" }, { - "type": "function", - "name": "getAllFees", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "tuple", - "internalType": "struct IFeeConfig.AllFees", - "components": [ - { - "name": "performance", - "type": "tuple", - "internalType": "struct IFeeConfig.FeeCategory", - "components": [ - { - "name": "total", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "beefy", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "call", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "strategist", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "label", - "type": "string", - "internalType": "string" - }, - { - "name": "active", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "name": "deposit", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "withdraw", - "type": "uint256", - "internalType": "uint256" - } - ] - } + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "uint256", "name": "bal0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "bal1", "type": "uint256" } ], - "stateMutability": "view" + "name": "Deposit", + "type": "event" }, { - "type": "function", - "name": "getKeys", - "inputs": [], - "outputs": [ - { - "name": "keyMain", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "keyAlt", - "type": "bytes32", - "internalType": "bytes32" - } + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "uint256", "name": "fee0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "fee1", "type": "uint256" } ], - "stateMutability": "view" + "name": "Harvest", + "type": "event" }, { - "type": "function", - "name": "getStratFeeId", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }], + "name": "Initialized", + "type": "event" }, { - "type": "function", - "name": "harvest", + "anonymous": false, "inputs": [ - { - "name": "_callFeeRecipient", - "type": "address", - "internalType": "address" - } + { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "harvest", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" + "name": "OwnershipTransferred", + "type": "event" }, { - "type": "function", - "name": "initialize", - "inputs": [ - { - "name": "_pool", - "type": "address", - "internalType": "address" - }, - { - "name": "_native", - "type": "address", - "internalType": "address" - }, - { - "name": "_positionWidth", - "type": "int24", - "internalType": "int24" - }, - { - "name": "_lpToken0ToNativePath", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "_lpToken1ToNativePath", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "_commonAddresses", - "type": "tuple", - "internalType": "struct StratFeeManagerInitializable.CommonAddresses", - "components": [ - { - "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" - } - ] - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], + "name": "Paused", + "type": "event" }, { - "type": "function", - "name": "keeper", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "beefyFeeConfig", "type": "address" }], + "name": "SetBeefyFeeConfig", + "type": "event" }, { - "type": "function", - "name": "lastHarvest", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "beefyFeeRecipient", "type": "address" }], + "name": "SetBeefyFeeRecipient", + "type": "event" }, { - "type": "function", - "name": "lockedProfit", - "inputs": [], - "outputs": [ - { - "name": "locked0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "locked1", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "int56", "name": "maxTickDeviation", "type": "int56" }], + "name": "SetDeviation", + "type": "event" }, { - "type": "function", - "name": "lpToken0", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "keeper", "type": "address" }], + "name": "SetKeeper", + "type": "event" }, { - "type": "function", - "name": "lpToken0ToNative", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address[]", - "internalType": "address[]" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "bytes", "name": "path", "type": "bytes" }], + "name": "SetLpToken0ToNativePath", + "type": "event" }, { - "type": "function", - "name": "lpToken0ToNativePath", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "bytes", "name": "path", "type": "bytes" }], + "name": "SetLpToken1ToNativePath", + "type": "event" }, { - "type": "function", - "name": "lpToken1", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "int24", "name": "oldWidth", "type": "int24" }, + { "indexed": false, "internalType": "int24", "name": "width", "type": "int24" } ], - "stateMutability": "view" + "name": "SetPositionWidth", + "type": "event" }, { - "type": "function", - "name": "lpToken1ToNative", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address[]", - "internalType": "address[]" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "uint256", "name": "feeId", "type": "uint256" }], + "name": "SetStratFeeId", + "type": "event" }, { - "type": "function", - "name": "lpToken1ToNativePath", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "strategist", "type": "address" }], + "name": "SetStrategist", + "type": "event" }, { - "type": "function", - "name": "maxTickDeviation", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "int56", - "internalType": "int56" - } + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "int32", "name": "oldInterval", "type": "int32" }, + { "indexed": false, "internalType": "int32", "name": "interval", "type": "int32" } ], - "stateMutability": "view" + "name": "SetTwapInterval", + "type": "event" }, { - "type": "function", - "name": "native", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "unirouter", "type": "address" }], + "name": "SetUnirouter", + "type": "event" }, { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], + "name": "Unpaused", + "type": "event" }, { - "type": "function", - "name": "panic", + "anonymous": false, "inputs": [ - { - "name": "_minAmount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_minAmount1", - "type": "uint256", - "internalType": "uint256" - } + { "indexed": false, "internalType": "uint256", "name": "bal0", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "bal1", "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "Withdraw", + "type": "event" }, { - "type": "function", - "name": "paused", "inputs": [], + "name": "balances", "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } + { "internalType": "uint256", "name": "token0Bal", "type": "uint256" }, + { "internalType": "uint256", "name": "token1Bal", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "pool", "inputs": [], + "name": "balancesOfPool", "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } + { "internalType": "uint256", "name": "token0Bal", "type": "uint256" }, + { "internalType": "uint256", "name": "token1Bal", "type": "uint256" }, + { "internalType": "uint256", "name": "mainAmount0", "type": "uint256" }, + { "internalType": "uint256", "name": "mainAmount1", "type": "uint256" }, + { "internalType": "uint256", "name": "altAmount0", "type": "uint256" }, + { "internalType": "uint256", "name": "altAmount1", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "positionAlt", "inputs": [], + "name": "balancesOfThis", "outputs": [ - { - "name": "tickLower", - "type": "int24", - "internalType": "int24" - }, - { - "name": "tickUpper", - "type": "int24", - "internalType": "int24" - } + { "internalType": "uint256", "name": "token0Bal", "type": "uint256" }, + { "internalType": "uint256", "name": "token1Bal", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "positionMain", "inputs": [], - "outputs": [ - { - "name": "tickLower", - "type": "int24", - "internalType": "int24" - }, - { - "name": "tickUpper", - "type": "int24", - "internalType": "int24" - } - ], - "stateMutability": "view" + "name": "beefyFeeConfig", + "outputs": [{ "internalType": "contract IFeeConfig", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "positionWidth", "inputs": [], - "outputs": [ - { - "name": "", - "type": "int24", - "internalType": "int24" - } - ], - "stateMutability": "view" + "name": "beefyFeeRecipient", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, + { "inputs": [], "name": "beforeAction", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "type": "function", - "name": "price", "inputs": [], + "name": "claimEarnings", "outputs": [ - { - "name": "_price", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "uint256", "name": "fee0", "type": "uint256" }, + { "internalType": "uint256", "name": "fee1", "type": "uint256" }, + { "internalType": "uint256", "name": "feeAlt0", "type": "uint256" }, + { "internalType": "uint256", "name": "feeAlt1", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "range", "inputs": [], - "outputs": [ - { - "name": "tickLower", - "type": "int24", - "internalType": "int24" - }, - { - "name": "tickUpper", - "type": "int24", - "internalType": "int24" - } - ], - "stateMutability": "view" + "name": "currentTick", + "outputs": [{ "internalType": "int24", "name": "tick", "type": "int24" }], + "stateMutability": "view", + "type": "function" }, + { "inputs": [], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "type": "function", - "name": "renounceOwnership", "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setBeefyFeeConfig", - "inputs": [ - { - "name": "_beefyFeeConfig", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setBeefyFeeRecipient", - "inputs": [ - { - "name": "_beefyFeeRecipient", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setDeviation", - "inputs": [ - { - "name": "_maxDeviation", - "type": "int56", - "internalType": "int56" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setKeeper", - "inputs": [ - { - "name": "_keeper", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setLpToken0ToNativePath", - "inputs": [ - { - "name": "_path", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setLpToken1ToNativePath", - "inputs": [ - { - "name": "_path", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setPositionWidth", - "inputs": [ - { - "name": "_width", - "type": "int24", - "internalType": "int24" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setStratFeeId", - "inputs": [ - { - "name": "_feeId", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setStrategist", - "inputs": [ - { - "name": "_strategist", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setTwapInterval", - "inputs": [ - { - "name": "_interval", - "type": "int32", - "internalType": "int32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "depositFee", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "setUnirouter", - "inputs": [ - { - "name": "_unirouter", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "inputs": [], + "name": "fees0", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "sqrtPrice", "inputs": [], - "outputs": [ - { - "name": "sqrtPriceX96", - "type": "uint160", - "internalType": "uint160" - } - ], - "stateMutability": "view" + "name": "fees1", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "strategist", "inputs": [], + "name": "getAllFees", "outputs": [ { + "components": [ + { + "components": [ + { "internalType": "uint256", "name": "total", "type": "uint256" }, + { "internalType": "uint256", "name": "beefy", "type": "uint256" }, + { "internalType": "uint256", "name": "call", "type": "uint256" }, + { "internalType": "uint256", "name": "strategist", "type": "uint256" }, + { "internalType": "string", "name": "label", "type": "string" }, + { "internalType": "bool", "name": "active", "type": "bool" } + ], + "internalType": "struct IFeeConfig.FeeCategory", + "name": "performance", + "type": "tuple" + }, + { "internalType": "uint256", "name": "deposit", "type": "uint256" }, + { "internalType": "uint256", "name": "withdraw", "type": "uint256" } + ], + "internalType": "struct IFeeConfig.AllFees", "name": "", - "type": "address", - "internalType": "address" + "type": "tuple" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "totalLocked0", "inputs": [], + "name": "getKeys", "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + { "internalType": "bytes32", "name": "keyMain", "type": "bytes32" }, + { "internalType": "bytes32", "name": "keyAlt", "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "totalLocked1", "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "name": "getStratFeeId", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "transferOwnership", + "inputs": [{ "internalType": "address", "name": "_callFeeRecipient", "type": "address" }], + "name": "harvest", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { "inputs": [], "name": "harvest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { "inputs": [ + { "internalType": "address", "name": "_pool", "type": "address" }, + { "internalType": "address", "name": "_native", "type": "address" }, + { "internalType": "int24", "name": "_positionWidth", "type": "int24" }, + { "internalType": "bytes", "name": "_lpToken0ToNativePath", "type": "bytes" }, + { "internalType": "bytes", "name": "_lpToken1ToNativePath", "type": "bytes" }, { - "name": "newOwner", - "type": "address", - "internalType": "address" + "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": "struct StratFeeManagerInitializable.CommonAddresses", + "name": "_commonAddresses", + "type": "tuple" } ], + "name": "initialize", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "twap", "inputs": [], - "outputs": [ - { - "name": "twapTick", - "type": "int56", - "internalType": "int56" - } - ], - "stateMutability": "view" + "name": "keeper", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "twapInterval", "inputs": [], - "outputs": [ - { - "name": "", - "type": "int32", - "internalType": "int32" - } - ], - "stateMutability": "view" + "name": "lastHarvest", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "unirouter", "inputs": [], + "name": "lockedProfit", "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } + { "internalType": "uint256", "name": "locked0", "type": "uint256" }, + { "internalType": "uint256", "name": "locked1", "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "uniswapV3MintCallback", - "inputs": [ - { - "name": "amount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "amount1", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "inputs": [], + "name": "lpToken0", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "unpause", "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" + "name": "lpToken0ToNative", + "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "vault", "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "name": "lpToken0ToNativePath", + "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "withdraw", - "inputs": [ - { - "name": "_amount0", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_amount1", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "inputs": [], + "name": "lpToken1", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "withdrawFee", "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" + "name": "lpToken1ToNative", + "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "ChargedFees", - "inputs": [ - { - "name": "callFeeAmount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "beefyFeeAmount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "strategistFeeAmount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false + "inputs": [], + "name": "lpToken1ToNativePath", + "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "ClaimedFees", - "inputs": [ - { - "name": "feeMain0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "feeMain1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "feeAlt0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "feeAlt1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false + "inputs": [], + "name": "maxTickDeviation", + "outputs": [{ "internalType": "int56", "name": "", "type": "int56" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "Deposit", - "inputs": [ - { - "name": "bal0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "bal1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false + "inputs": [], + "name": "native", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "Harvest", - "inputs": [ - { - "name": "fee0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "fee1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false + "inputs": [], + "name": "owner", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "Initialized", "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } + { "internalType": "uint256", "name": "_minAmount0", "type": "uint256" }, + { "internalType": "uint256", "name": "_minAmount1", "type": "uint256" } ], - "anonymous": false + "name": "panic", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [], + "name": "paused", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "Paused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [], + "name": "pool", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "SetBeefyFeeConfig", - "inputs": [ - { - "name": "beefyFeeConfig", - "type": "address", - "indexed": false, - "internalType": "address" - } + "inputs": [], + "name": "positionAlt", + "outputs": [ + { "internalType": "int24", "name": "tickLower", "type": "int24" }, + { "internalType": "int24", "name": "tickUpper", "type": "int24" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "SetBeefyFeeRecipient", - "inputs": [ - { - "name": "beefyFeeRecipient", - "type": "address", - "indexed": false, - "internalType": "address" - } + "inputs": [], + "name": "positionMain", + "outputs": [ + { "internalType": "int24", "name": "tickLower", "type": "int24" }, + { "internalType": "int24", "name": "tickUpper", "type": "int24" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "SetDeviation", - "inputs": [ - { - "name": "maxTickDeviation", - "type": "int56", - "indexed": false, - "internalType": "int56" - } - ], - "anonymous": false + "inputs": [], + "name": "positionWidth", + "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "SetKeeper", - "inputs": [ - { - "name": "keeper", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [], + "name": "price", + "outputs": [{ "internalType": "uint256", "name": "_price", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "SetLpToken0ToNativePath", - "inputs": [ - { - "name": "path", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } + "inputs": [], + "name": "range", + "outputs": [ + { "internalType": "uint256", "name": "lowerPrice", "type": "uint256" }, + { "internalType": "uint256", "name": "upperPrice", "type": "uint256" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, + { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "type": "event", - "name": "SetLpToken1ToNativePath", - "inputs": [ - { - "name": "path", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false + "inputs": [{ "internalType": "address", "name": "_beefyFeeConfig", "type": "address" }], + "name": "setBeefyFeeConfig", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "SetPositionWidth", - "inputs": [ - { - "name": "oldWidth", - "type": "int24", - "indexed": false, - "internalType": "int24" - }, - { - "name": "width", - "type": "int24", - "indexed": false, - "internalType": "int24" - } - ], - "anonymous": false + "inputs": [{ "internalType": "address", "name": "_beefyFeeRecipient", "type": "address" }], + "name": "setBeefyFeeRecipient", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "SetStratFeeId", - "inputs": [ - { - "name": "feeId", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false + "inputs": [{ "internalType": "int56", "name": "_maxDeviation", "type": "int56" }], + "name": "setDeviation", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "SetStrategist", - "inputs": [ - { - "name": "strategist", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [{ "internalType": "address", "name": "_keeper", "type": "address" }], + "name": "setKeeper", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "SetTwapInterval", - "inputs": [ - { - "name": "oldInterval", - "type": "int32", - "indexed": false, - "internalType": "int32" - }, - { - "name": "interval", - "type": "int32", - "indexed": false, - "internalType": "int32" - } - ], - "anonymous": false + "inputs": [{ "internalType": "bytes", "name": "_path", "type": "bytes" }], + "name": "setLpToken0ToNativePath", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "SetUnirouter", - "inputs": [ - { - "name": "unirouter", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [{ "internalType": "bytes", "name": "_path", "type": "bytes" }], + "name": "setLpToken1ToNativePath", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "Unpaused", - "inputs": [ - { - "name": "account", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [{ "internalType": "int24", "name": "_width", "type": "int24" }], + "name": "setPositionWidth", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "Withdraw", - "inputs": [ - { - "name": "bal0", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - }, - { - "name": "bal1", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false + "inputs": [{ "internalType": "uint256", "name": "_feeId", "type": "uint256" }], + "name": "setStratFeeId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] + "inputs": [{ "internalType": "address", "name": "_strategist", "type": "address" }], + "name": "setStrategist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] + "inputs": [{ "internalType": "int32", "name": "_interval", "type": "int32" }], + "name": "setTwapInterval", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] + "inputs": [{ "internalType": "address", "name": "_unirouter", "type": "address" }], + "name": "setUnirouter", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "InvalidEntry", - "inputs": [] + "inputs": [], + "name": "sqrtPrice", + "outputs": [{ "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "InvalidInput", - "inputs": [] + "inputs": [], + "name": "strategist", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "InvalidOutput", - "inputs": [] + "inputs": [], + "name": "totalLocked0", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotAuthorized", - "inputs": [] + "inputs": [], + "name": "totalLocked1", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotCalm", - "inputs": [] + "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "NotManager", - "inputs": [] + "inputs": [], + "name": "twap", + "outputs": [{ "internalType": "int56", "name": "twapTick", "type": "int56" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotPool", - "inputs": [] + "inputs": [], + "name": "twapInterval", + "outputs": [{ "internalType": "int32", "name": "", "type": "int32" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotStrategist", - "inputs": [] + "inputs": [], + "name": "unirouter", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotVault", - "inputs": [] + "inputs": [ + { "internalType": "uint256", "name": "amount0", "type": "uint256" }, + { "internalType": "uint256", "name": "amount1", "type": "uint256" }, + { "internalType": "bytes", "name": "", "type": "bytes" } + ], + "name": "uniswapV3MintCallback", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, + { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "type": "error", - "name": "OverLimit", - "inputs": [] + "inputs": [], + "name": "vault", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "SafeERC20FailedOperation", "inputs": [ - { - "name": "token", - "type": "address", - "internalType": "address" - } - ] + { "internalType": "uint256", "name": "_amount0", "type": "uint256" }, + { "internalType": "uint256", "name": "_amount1", "type": "uint256" } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "TooMuchSlippage", - "inputs": [] + "inputs": [], + "name": "withdrawFee", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" } ] diff --git a/abis/beefy/concliq/StrategyPassiveManagerUniswapFactory.json b/abis/beefy/concliq/StrategyPassiveManagerUniswapFactory.json index 575c37c..ba16ae5 100644 --- a/abis/beefy/concliq/StrategyPassiveManagerUniswapFactory.json +++ b/abis/beefy/concliq/StrategyPassiveManagerUniswapFactory.json @@ -1,292 +1,132 @@ [ { - "type": "constructor", - "inputs": [ - { - "name": "_keeper", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" + "inputs": [{ "internalType": "address", "name": "_keeper", "type": "address" }], + "stateMutability": "nonpayable", + "type": "constructor" }, + { "inputs": [], "name": "NotManager", "type": "error" }, { - "type": "function", - "name": "addStrategy", - "inputs": [ - { - "name": "_strategyName", - "type": "string", - "internalType": "string" - }, - { - "name": "_implementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], + "name": "OwnableInvalidOwner", + "type": "error" }, { - "type": "function", - "name": "createStrategy", - "inputs": [ - { - "name": "_strategyName", - "type": "string", - "internalType": "string" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" + "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], + "name": "OwnableUnauthorizedAccount", + "type": "error" }, + { "inputs": [], "name": "StratVersionExists", "type": "error" }, { - "type": "function", - "name": "getImplementation", + "anonymous": false, "inputs": [ - { - "name": "_strategyName", - "type": "string", - "internalType": "string" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getStrategies", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address[]", - "internalType": "address[]" - } + { "indexed": false, "internalType": "string", "name": "strategyName", "type": "string" }, + { "indexed": false, "internalType": "address", "name": "newImplementation", "type": "address" } ], - "stateMutability": "view" + "name": "InstanceUpgraded", + "type": "event" }, { - "type": "function", - "name": "instances", + "anonymous": false, "inputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract UpgradeableBeacon" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "keeper", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } + { "indexed": false, "internalType": "string", "name": "strategyName", "type": "string" }, + { "indexed": false, "internalType": "address", "name": "implementation", "type": "address" } ], - "stateMutability": "view" + "name": "NewStrategyAdded", + "type": "event" }, { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" + "name": "OwnershipTransferred", + "type": "event" }, { - "type": "function", - "name": "strategies", + "anonymous": false, "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } + { "indexed": false, "internalType": "string", "name": "strategyName", "type": "string" }, + { "indexed": false, "internalType": "address", "name": "proxy", "type": "address" } ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" + "name": "ProxyCreated", + "type": "event" }, { - "type": "function", - "name": "transferOwnership", "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } + { "internalType": "string", "name": "_strategyName", "type": "string" }, + { "internalType": "address", "name": "_implementation", "type": "address" } ], + "name": "addStrategy", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "upgradeTo", - "inputs": [ - { - "name": "_strategyName", - "type": "string", - "internalType": "string" - }, - { - "name": "_newImplementation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" + "inputs": [{ "internalType": "string", "name": "_strategyName", "type": "string" }], + "name": "createStrategy", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "InstanceUpgraded", - "inputs": [ - { - "name": "strategyName", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "newImplementation", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [{ "internalType": "string", "name": "_strategyName", "type": "string" }], + "name": "getImplementation", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "NewStrategyAdded", - "inputs": [ - { - "name": "strategyName", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "implementation", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [], + "name": "getStrategies", + "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [{ "internalType": "string", "name": "", "type": "string" }], + "name": "instances", + "outputs": [{ "internalType": "contract UpgradeableBeacon", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "ProxyCreated", - "inputs": [ - { - "name": "strategyName", - "type": "string", - "indexed": false, - "internalType": "string" - }, - { - "name": "proxy", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false + "inputs": [], + "name": "keeper", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotManager", - "inputs": [] + "inputs": [], + "name": "owner", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, + { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] + "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "name": "strategies", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] + "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StratVersionExists", - "inputs": [] + "inputs": [ + { "internalType": "string", "name": "_strategyName", "type": "string" }, + { "internalType": "address", "name": "_newImplementation", "type": "address" } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] diff --git a/config/arbitrum.json b/config/arbitrum.json index ce08236..fffaa40 100644 --- a/config/arbitrum.json +++ b/config/arbitrum.json @@ -2,8 +2,8 @@ "network": "arbitrum-one", "shareTokenMintAddress": "0x0000000000000000000000000000000000000000", - "vaultFactoryAddress": "0xef79A90A93084e1d2a2b4ecD1F783e937C80Ef4C", - "vaultFactoryStartBlock": 190612486, + "vaultFactoryAddress": "0xAad99bCdcf5aD316da55fDF7E5d23613407A8748", + "vaultFactoryStartBlock": 193388971, "clockTickBlocks": 3600, "wrappedNativeAddress": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", diff --git a/config/optimism.json b/config/optimism.json index 93e0489..4301f64 100644 --- a/config/optimism.json +++ b/config/optimism.json @@ -2,8 +2,8 @@ "network": "optimism", "shareTokenMintAddress": "0x0000000000000000000000000000000000000000", - "vaultFactoryAddress": "0xf0C7eD247e22Bb0BaACA1F7975C8F02D79954198", - "vaultFactoryStartBlock": 117428248, + "vaultFactoryAddress": "0x63C381013fa310ea4715E0f435dea56B19dc1aa7", + "vaultFactoryStartBlock": 117800956, "clockTickBlocks": 750, "wrappedNativeAddress": "0x4200000000000000000000000000000000000006", diff --git a/src/mapping/price.ts b/src/mapping/price.ts index 18ab89c..bc60409 100644 --- a/src/mapping/price.ts +++ b/src/mapping/price.ts @@ -97,8 +97,8 @@ export function getVaultPriceRangeInToken1(strategyAddress: Bytes, throwOnError: } // this is purposely inverted as we want prices in token1 const encodingDecimals = BigInt.fromU32(36) - const rangeMinToken1Price = tokenAmountToDecimal(BigInt.fromU64(rangeRes.value.value0), encodingDecimals) - const rangeMaxToken1Price = tokenAmountToDecimal(BigInt.fromU64(rangeRes.value.value1), encodingDecimals) + const rangeMinToken1Price = tokenAmountToDecimal(rangeRes.value.value0, encodingDecimals) + const rangeMaxToken1Price = tokenAmountToDecimal(rangeRes.value.value1, encodingDecimals) return new PriceRange(rangeMinToken1Price, rangeMaxToken1Price) }