From e25afc21002954f7987557f070394c59269ef82f Mon Sep 17 00:00:00 2001 From: viet-nv Date: Wed, 18 Oct 2023 11:33:09 +0700 Subject: [PATCH] fix: farm v2 static --- src/constants/abis/v2/farmv2.1.json | 1414 +++++++++++++-------------- src/constants/networks/matic.ts | 4 +- src/constants/networks/scroll.ts | 3 +- 3 files changed, 711 insertions(+), 710 deletions(-) diff --git a/src/constants/abis/v2/farmv2.1.json b/src/constants/abis/v2/farmv2.1.json index 3cff91c838..4e492bbfe6 100644 --- a/src/constants/abis/v2/farmv2.1.json +++ b/src/constants/abis/v2/farmv2.1.json @@ -1,1474 +1,1474 @@ [ { + "type": "constructor", + "stateMutability": "nonpayable", "inputs": [ { - "internalType": "contract IERC721", + "type": "address", "name": "_nft", - "type": "address" + "internalType": "contract IERC721" }, { - "internalType": "contract IKSElasticLMHelper", + "type": "address", "name": "_helper", - "type": "address" + "internalType": "contract IKSElasticLMHelper" } - ], - "stateMutability": "nonpayable", - "type": "constructor" + ] }, { - "inputs": [], + "type": "error", "name": "EmergencyEnabled", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "Expired", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "FailToAdd", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "FailToRemove", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "FarmNotFound", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "Forbidden", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "InvalidFarm", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "InvalidInput", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "InvalidRange", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "InvalidReward", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "InvalidTime", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "LiquidityNotMatch", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "NotOwner", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "PhaseSettled", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "PositionNotEligible", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "RangeNotFound", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "RangeNotMatch", - "type": "error" + "inputs": [] }, { - "inputs": [], + "type": "error", "name": "StakeNotFound", - "type": "error" + "inputs": [] }, { - "anonymous": false, + "type": "event", + "name": "ActivateRange", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256", + "indexed": false } ], - "name": "ActivateRange", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "AddFarm", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "poolAddress", - "type": "address" + "internalType": "address", + "indexed": false }, { + "type": "tuple[]", + "name": "ranges", + "internalType": "struct IKSElasticLMV2.RangeInput[]", + "indexed": false, "components": [ { - "internalType": "int24", + "type": "int24", "name": "tickLower", - "type": "int24" + "internalType": "int24" }, { - "internalType": "int24", + "type": "int24", "name": "tickUpper", - "type": "int24" + "internalType": "int24" }, { - "internalType": "uint32", + "type": "uint32", "name": "weight", - "type": "uint32" + "internalType": "uint32" } - ], - "indexed": false, - "internalType": "struct IKSElasticLMV2.RangeInput[]", - "name": "ranges", - "type": "tuple[]" + ] }, { + "type": "tuple", + "name": "phase", + "internalType": "struct IKSElasticLMV2.PhaseInput", + "indexed": false, "components": [ { - "internalType": "uint32", + "type": "uint32", "name": "startTime", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "uint32", + "type": "uint32", "name": "endTime", - "type": "uint32" + "internalType": "uint32" }, { + "type": "tuple[]", + "name": "rewards", + "internalType": "struct IKSElasticLMV2.RewardInput[]", "components": [ { - "internalType": "address", + "type": "address", "name": "rewardToken", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256", + "type": "uint256", "name": "rewardAmount", - "type": "uint256" + "internalType": "uint256" } - ], - "internalType": "struct IKSElasticLMV2.RewardInput[]", - "name": "rewards", - "type": "tuple[]" + ] } - ], - "indexed": false, - "internalType": "struct IKSElasticLMV2.PhaseInput", - "name": "phase", - "type": "tuple" + ] }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "farmingToken", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "AddFarm", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "AddPhase", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { + "type": "tuple", + "name": "phase", + "internalType": "struct IKSElasticLMV2.PhaseInput", + "indexed": false, "components": [ { - "internalType": "uint32", + "type": "uint32", "name": "startTime", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "uint32", + "type": "uint32", "name": "endTime", - "type": "uint32" + "internalType": "uint32" }, { + "type": "tuple[]", + "name": "rewards", + "internalType": "struct IKSElasticLMV2.RewardInput[]", "components": [ { - "internalType": "address", + "type": "address", "name": "rewardToken", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256", + "type": "uint256", "name": "rewardAmount", - "type": "uint256" + "internalType": "uint256" } - ], - "internalType": "struct IKSElasticLMV2.RewardInput[]", - "name": "rewards", - "type": "tuple[]" + ] } - ], - "indexed": false, - "internalType": "struct IKSElasticLMV2.PhaseInput", - "name": "phase", - "type": "tuple" + ] } ], - "name": "AddPhase", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "AddRange", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { + "type": "tuple", + "name": "range", + "internalType": "struct IKSElasticLMV2.RangeInput", + "indexed": false, "components": [ { - "internalType": "int24", + "type": "int24", "name": "tickLower", - "type": "int24" + "internalType": "int24" }, { - "internalType": "int24", + "type": "int24", "name": "tickUpper", - "type": "int24" + "internalType": "int24" }, { - "internalType": "uint32", + "type": "uint32", "name": "weight", - "type": "uint32" + "internalType": "uint32" } - ], - "indexed": false, - "internalType": "struct IKSElasticLMV2.RangeInput", - "name": "range", - "type": "tuple" + ] } ], - "name": "AddRange", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "ClaimReward", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "nftId", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "token", - "type": "address" + "internalType": "address", + "indexed": false }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "amount", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "ClaimReward", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "ClaimReward", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "token", - "type": "address" + "internalType": "address", + "indexed": false }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "amount", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "ClaimReward", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "Deposit", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]", + "indexed": false }, { - "indexed": true, - "internalType": "address", + "type": "address", "name": "depositer", - "type": "address" + "internalType": "address", + "indexed": true }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "Deposit", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "ExpandEndTimeAndRewards", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "duration", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "uint256[]", + "type": "uint256[]", "name": "rewardAmounts", - "type": "uint256[]" + "internalType": "uint256[]", + "indexed": false } ], - "name": "ExpandEndTimeAndRewards", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "ForceClosePhase", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true } ], - "name": "ForceClosePhase", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "OwnershipTransferred", "inputs": [ { - "indexed": true, - "internalType": "address", + "type": "address", "name": "previousOwner", - "type": "address" + "internalType": "address", + "indexed": true }, { - "indexed": true, - "internalType": "address", + "type": "address", "name": "newOwner", - "type": "address" + "internalType": "address", + "indexed": true } ], - "name": "OwnershipTransferred", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "Paused", "inputs": [ { - "indexed": false, - "internalType": "address", + "type": "address", "name": "account", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "Paused", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "RemoveRange", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256", + "indexed": false } ], - "name": "RemoveRange", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "Unpaused", "inputs": [ { - "indexed": false, - "internalType": "address", + "type": "address", "name": "account", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "Unpaused", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "UpdateEmergency", "inputs": [ { - "indexed": false, - "internalType": "bool", + "type": "bool", "name": "enableOrDisable", - "type": "bool" + "internalType": "bool", + "indexed": false } ], - "name": "UpdateEmergency", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "UpdateGuardian", "inputs": [ { - "indexed": false, - "internalType": "address", + "type": "address", "name": "user", - "type": "address" + "internalType": "address", + "indexed": false }, { - "indexed": false, - "internalType": "bool", + "type": "bool", "name": "grantOrRevoke", - "type": "bool" + "internalType": "bool", + "indexed": false } ], - "name": "UpdateGuardian", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "UpdateHelper", "inputs": [ { - "indexed": false, - "internalType": "contract IKSElasticLMHelper", + "type": "address", "name": "helper", - "type": "address" + "internalType": "contract IKSElasticLMHelper", + "indexed": false } ], - "name": "UpdateHelper", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "UpdateLiquidity", "inputs": [ { - "indexed": true, - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256", + "indexed": true }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "nftId", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "liquidity", - "type": "uint256" + "internalType": "uint256", + "indexed": false } ], - "name": "UpdateLiquidity", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "UpdateOperator", "inputs": [ { - "indexed": false, - "internalType": "address", + "type": "address", "name": "user", - "type": "address" + "internalType": "address", + "indexed": false }, { - "indexed": false, - "internalType": "bool", + "type": "bool", "name": "grantOrRevoke", - "type": "bool" + "internalType": "bool", + "indexed": false } ], - "name": "UpdateOperator", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "UpdateTokenCode", "inputs": [ { - "indexed": false, - "internalType": "bytes", + "type": "bytes", "name": "farmingTokenCode", - "type": "bytes" + "internalType": "bytes", + "indexed": false } ], - "name": "UpdateTokenCode", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "Withdraw", "inputs": [ { - "indexed": false, - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "Withdraw", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "WithdrawEmergency", "inputs": [ { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "nftId", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "WithdrawEmergency", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "WithdrawUnusedRewards", "inputs": [ { - "indexed": false, - "internalType": "address", + "type": "address", "name": "token", - "type": "address" + "internalType": "address", + "indexed": false }, { - "indexed": false, - "internalType": "uint256", + "type": "uint256", "name": "amount", - "type": "uint256" + "internalType": "uint256", + "indexed": false }, { - "indexed": false, - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address", + "indexed": false } ], - "name": "WithdrawUnusedRewards", - "type": "event" + "anonymous": false }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "activateRange", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256" } - ], - "name": "activateRange", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [ + { + "type": "uint256", + "name": "fId", + "internalType": "uint256" + } + ], + "name": "addFarm", "inputs": [ { - "internalType": "address", + "type": "address", "name": "poolAddress", - "type": "address" + "internalType": "address" }, { + "type": "tuple[]", + "name": "ranges", + "internalType": "struct IKSElasticLMV2.RangeInput[]", "components": [ { - "internalType": "int24", + "type": "int24", "name": "tickLower", - "type": "int24" + "internalType": "int24" }, { - "internalType": "int24", + "type": "int24", "name": "tickUpper", - "type": "int24" + "internalType": "int24" }, { - "internalType": "uint32", + "type": "uint32", "name": "weight", - "type": "uint32" + "internalType": "uint32" } - ], - "internalType": "struct IKSElasticLMV2.RangeInput[]", - "name": "ranges", - "type": "tuple[]" + ] }, { + "type": "tuple", + "name": "phase", + "internalType": "struct IKSElasticLMV2.PhaseInput", "components": [ { - "internalType": "uint32", + "type": "uint32", "name": "startTime", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "uint32", + "type": "uint32", "name": "endTime", - "type": "uint32" + "internalType": "uint32" }, { + "type": "tuple[]", + "name": "rewards", + "internalType": "struct IKSElasticLMV2.RewardInput[]", "components": [ { - "internalType": "address", + "type": "address", "name": "rewardToken", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256", + "type": "uint256", "name": "rewardAmount", - "type": "uint256" + "internalType": "uint256" } - ], - "internalType": "struct IKSElasticLMV2.RewardInput[]", - "name": "rewards", - "type": "tuple[]" + ] } - ], - "internalType": "struct IKSElasticLMV2.PhaseInput", - "name": "phase", - "type": "tuple" + ] }, { - "internalType": "bool", + "type": "bool", "name": "isUsingToken", - "type": "bool" - } - ], - "name": "addFarm", - "outputs": [ - { - "internalType": "uint256", - "name": "fId", - "type": "uint256" + "internalType": "bool" } - ], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "addLiquidity", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]" } - ], - "name": "addLiquidity", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "addPhase", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { + "type": "tuple", + "name": "phaseInput", + "internalType": "struct IKSElasticLMV2.PhaseInput", "components": [ { - "internalType": "uint32", + "type": "uint32", "name": "startTime", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "uint32", + "type": "uint32", "name": "endTime", - "type": "uint32" + "internalType": "uint32" }, { + "type": "tuple[]", + "name": "rewards", + "internalType": "struct IKSElasticLMV2.RewardInput[]", "components": [ { - "internalType": "address", + "type": "address", "name": "rewardToken", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256", + "type": "uint256", "name": "rewardAmount", - "type": "uint256" + "internalType": "uint256" } - ], - "internalType": "struct IKSElasticLMV2.RewardInput[]", - "name": "rewards", - "type": "tuple[]" + ] } - ], - "internalType": "struct IKSElasticLMV2.PhaseInput", - "name": "phaseInput", - "type": "tuple" + ] } - ], - "name": "addPhase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "addRange", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { + "type": "tuple", + "name": "range", + "internalType": "struct IKSElasticLMV2.RangeInput", "components": [ { - "internalType": "int24", + "type": "int24", "name": "tickLower", - "type": "int24" + "internalType": "int24" }, { - "internalType": "int24", + "type": "int24", "name": "tickUpper", - "type": "int24" + "internalType": "int24" }, { - "internalType": "uint32", + "type": "uint32", "name": "weight", - "type": "uint32" + "internalType": "uint32" } - ], - "internalType": "struct IKSElasticLMV2.RangeInput", - "name": "range", - "type": "tuple" + ] } - ], - "name": "addRange", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "claimFee", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]" }, { - "internalType": "uint256", + "type": "uint256", "name": "amount0Min", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "amount1Min", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "deadline", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint8", + "type": "uint8", "name": "flags", - "type": "uint8" + "internalType": "uint8" } - ], - "name": "claimFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "claimReward", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]" } - ], - "name": "claimReward", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "deposit", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]" }, { - "internalType": "address", + "type": "address", "name": "receiver", - "type": "address" + "internalType": "address" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [], - "name": "disableLogic", - "outputs": [], + "type": "function", "stateMutability": "nonpayable", - "type": "function" + "outputs": [], + "name": "disableLogic", + "inputs": [] }, { - "inputs": [], - "name": "emergencyEnabled", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "bool", + "type": "bool", "name": "", - "type": "bool" + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "name": "emergencyEnabled", + "inputs": [] }, { - "inputs": [], - "name": "enableLogic", - "outputs": [], + "type": "function", "stateMutability": "nonpayable", - "type": "function" + "outputs": [], + "name": "enableLogic", + "inputs": [] }, { - "inputs": [], - "name": "farmCount", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "", - "type": "uint256" + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "name": "farmCount", + "inputs": [] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "forceClosePhase", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" } - ], - "name": "forceClosePhase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [ - { - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "getDepositedNFTs", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "uint256[]", + "type": "uint256[]", "name": "listNFTs", - "type": "uint256[]" + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" - }, - { + "name": "getDepositedNFTs", "inputs": [ { - "internalType": "uint256", - "name": "fId", - "type": "uint256" + "type": "address", + "name": "user", + "internalType": "address" } - ], - "name": "getFarm", + ] + }, + { + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "address", + "type": "address", "name": "poolAddress", - "type": "address" + "internalType": "address" }, { + "type": "tuple[]", + "name": "ranges", + "internalType": "struct IKSElasticLMV2.RangeInfo[]", "components": [ { - "internalType": "int24", + "type": "int24", "name": "tickLower", - "type": "int24" + "internalType": "int24" }, { - "internalType": "int24", + "type": "int24", "name": "tickUpper", - "type": "int24" + "internalType": "int24" }, { - "internalType": "uint32", + "type": "uint32", "name": "weight", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "bool", + "type": "bool", "name": "isRemoved", - "type": "bool" + "internalType": "bool" } - ], - "internalType": "struct IKSElasticLMV2.RangeInfo[]", - "name": "ranges", - "type": "tuple[]" + ] }, { + "type": "tuple", + "name": "phase", + "internalType": "struct IKSElasticLMV2.PhaseInfo", "components": [ { - "internalType": "uint32", + "type": "uint32", "name": "startTime", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "uint32", + "type": "uint32", "name": "endTime", - "type": "uint32" + "internalType": "uint32" }, { - "internalType": "bool", + "type": "bool", "name": "isSettled", - "type": "bool" + "internalType": "bool" }, { + "type": "tuple[]", + "name": "rewards", + "internalType": "struct IKSElasticLMV2.RewardInput[]", "components": [ { - "internalType": "address", + "type": "address", "name": "rewardToken", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256", + "type": "uint256", "name": "rewardAmount", - "type": "uint256" + "internalType": "uint256" } - ], - "internalType": "struct IKSElasticLMV2.RewardInput[]", - "name": "rewards", - "type": "tuple[]" + ] } - ], - "internalType": "struct IKSElasticLMV2.PhaseInfo", - "name": "phase", - "type": "tuple" + ] }, { - "internalType": "uint256", + "type": "uint256", "name": "liquidity", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "address", + "type": "address", "name": "farmingToken", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "sumRewardPerLiquidity", - "type": "uint256[]" + "internalType": "uint256[]" }, { - "internalType": "uint32", + "type": "uint32", "name": "lastTouchedTime", - "type": "uint32" + "internalType": "uint32" } ], - "stateMutability": "view", - "type": "function" + "name": "getFarm", + "inputs": [ + { + "type": "uint256", + "name": "fId", + "internalType": "uint256" + } + ] }, { - "inputs": [], - "name": "getNft", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "contract IERC721", + "type": "address", "name": "", - "type": "address" + "internalType": "contract IERC721" } ], - "stateMutability": "view", - "type": "function" + "name": "getNft", + "inputs": [] }, { - "inputs": [ - { - "internalType": "uint256", - "name": "nftId", - "type": "uint256" - } - ], - "name": "getStake", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "address", + "type": "address", "name": "owner", - "type": "address" + "internalType": "address" }, { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "liquidity", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "lastSumRewardPerLiquidity", - "type": "uint256[]" + "internalType": "uint256[]" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "rewardUnclaimed", - "type": "uint256[]" + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "name": "getStake", + "inputs": [ + { + "type": "uint256", + "name": "nftId", + "internalType": "uint256" + } + ] }, { - "inputs": [ + "type": "function", + "stateMutability": "view", + "outputs": [ { - "internalType": "address", + "type": "bool", "name": "", - "type": "address" + "internalType": "bool" } ], "name": "guardians", - "outputs": [ + "inputs": [ { - "internalType": "bool", + "type": "address", "name": "", - "type": "bool" + "internalType": "address" } - ], - "stateMutability": "view", - "type": "function" + ] }, { - "inputs": [ + "type": "function", + "stateMutability": "view", + "outputs": [ { - "internalType": "address", + "type": "bool", "name": "", - "type": "address" + "internalType": "bool" } ], "name": "operators", - "outputs": [ + "inputs": [ { - "internalType": "bool", + "type": "address", "name": "", - "type": "bool" + "internalType": "address" } - ], - "stateMutability": "view", - "type": "function" + ] }, { - "inputs": [], - "name": "owner", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "address", + "type": "address", "name": "", - "type": "address" + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "owner", + "inputs": [] }, { - "inputs": [], - "name": "paused", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "bool", + "type": "bool", "name": "", - "type": "bool" + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "name": "paused", + "inputs": [] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "removeLiquidity", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "nftId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint128", + "type": "uint128", "name": "liquidity", - "type": "uint128" + "internalType": "uint128" }, { - "internalType": "uint256", + "type": "uint256", "name": "amount0Min", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "amount1Min", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "deadline", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint8", + "type": "uint8", "name": "flags", - "type": "uint8" + "internalType": "uint8" } - ], - "name": "removeLiquidity", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "removeRange", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256", + "type": "uint256", "name": "rangeId", - "type": "uint256" + "internalType": "uint256" } - ], - "name": "removeRange", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], + "type": "function", "stateMutability": "nonpayable", - "type": "function" + "outputs": [], + "name": "renounceOwnership", + "inputs": [] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "transferOwnership", "inputs": [ { - "internalType": "address", + "type": "address", "name": "newOwner", - "type": "address" + "internalType": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "updateEmergency", "inputs": [ { - "internalType": "bool", + "type": "bool", "name": "enableOrDisable", - "type": "bool" + "internalType": "bool" } - ], - "name": "updateEmergency", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "updateGuardian", "inputs": [ { - "internalType": "address", + "type": "address", "name": "user", - "type": "address" + "internalType": "address" }, { - "internalType": "bool", + "type": "bool", "name": "grantOrRevoke", - "type": "bool" + "internalType": "bool" } - ], - "name": "updateGuardian", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "updateHelper", "inputs": [ { - "internalType": "contract IKSElasticLMHelper", + "type": "address", "name": "_helper", - "type": "address" + "internalType": "contract IKSElasticLMHelper" } - ], - "name": "updateHelper", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "updateOperator", "inputs": [ { - "internalType": "address", + "type": "address", "name": "user", - "type": "address" + "internalType": "address" }, { - "internalType": "bool", + "type": "bool", "name": "grantOrRevoke", - "type": "bool" + "internalType": "bool" } - ], - "name": "updateOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "updateTokenCode", "inputs": [ { - "internalType": "bytes", + "type": "bytes", "name": "_farmingTokenCreationCode", - "type": "bytes" + "internalType": "bytes" } - ], - "name": "updateTokenCode", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [], - "name": "weth", + "type": "function", + "stateMutability": "view", "outputs": [ { - "internalType": "address", + "type": "address", "name": "", - "type": "address" + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "weth", + "inputs": [] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "withdraw", "inputs": [ { - "internalType": "uint256", + "type": "uint256", "name": "fId", - "type": "uint256" + "internalType": "uint256" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "withdrawEmergency", "inputs": [ { - "internalType": "uint256[]", + "type": "uint256[]", "name": "nftIds", - "type": "uint256[]" + "internalType": "uint256[]" } - ], - "name": "withdrawEmergency", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "stateMutability": "nonpayable", + "outputs": [], + "name": "withdrawUnusedRewards", "inputs": [ { - "internalType": "address[]", + "type": "address[]", "name": "tokens", - "type": "address[]" + "internalType": "address[]" }, { - "internalType": "uint256[]", + "type": "uint256[]", "name": "amounts", - "type": "uint256[]" + "internalType": "uint256[]" } - ], - "name": "withdrawUnusedRewards", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "stateMutability": "payable", - "type": "receive" + "type": "receive", + "stateMutability": "payable" } ] diff --git a/src/constants/networks/matic.ts b/src/constants/networks/matic.ts index 5f4b1f0298..04d1a80533 100644 --- a/src/constants/networks/matic.ts +++ b/src/constants/networks/matic.ts @@ -64,12 +64,12 @@ const maticInfo: EVMNetworkInfo = { routers: '0xF9c2b5746c946EF883ab2660BbbB1f10A5bdeAb4', farms: ['0x7D5ba536ab244aAA1EA42aB88428847F25E3E676'], farmv2Quoter: '0x6AFeb9EDd6Cf44fA8E89b1eee28284e6dD7705C8', - farmV2S: [], - 'farmV2.1S': [ + farmV2S: [ '0xA70a1Ad0F91c52c79e177c5A18a7C9E1C4360e0e', '0x3D6AfE2fB73fFEd2E3dD00c501A174554e147a43', '0xf2BcDf38baA52F6b0C1Db5B025DfFf01Ae1d6dBd', ], + 'farmV2.1S': [], }, limitOrder: '*', averageBlockTimeInSeconds: 2.6, diff --git a/src/constants/networks/scroll.ts b/src/constants/networks/scroll.ts index e29f99ffcb..2f7d181fb2 100644 --- a/src/constants/networks/scroll.ts +++ b/src/constants/networks/scroll.ts @@ -56,7 +56,8 @@ const scroll: EVMNetworkInfo = { routers: '0xF9c2b5746c946EF883ab2660BbbB1f10A5bdeAb4', farms: ['0x7D5ba536ab244aAA1EA42aB88428847F25E3E676'], farmv2Quoter: '0x6AFeb9EDd6Cf44fA8E89b1eee28284e6dD7705C8', - farmV2S: [ + farmV2S: [], + 'farmV2.1S': [ '0x3D6AfE2fB73fFEd2E3dD00c501A174554e147a43', '0xf2BcDf38baA52F6b0C1Db5B025DfFf01Ae1d6dBd', '0x67BC5156227C8372b2561b5058A7F628846019B9',