diff --git a/babel.config.js b/babel.config.js
index ac4b6d786f..586e8d5bda 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -9,7 +9,7 @@ module.exports = api => {
if (!validEnv.includes(currentEnv)) {
throw new Error(
- `Please specify a valid 'NODE_ENV' or 'BABEL_ENV' environment variables. Valid values are "development", "test", and "production". Instead, received: ${JSON.stringify(
+ `Please specify a valid 'MODE' or 'BABEL_ENV' environment variables. Valid values are "development", "test", and "production". Instead, received: ${JSON.stringify(
currentEnv,
)}.`,
);
diff --git a/package.json b/package.json
index e9631e654b..00a959817f 100644
--- a/package.json
+++ b/package.json
@@ -33,11 +33,11 @@
},
"dependencies": {
"@emotion/react": "^11.10.5",
- "@emotion/styled": "^11.10.4",
+ "@emotion/styled": "^11.10.5",
"@ethersproject/address": "^5.6.1",
"@ethersproject/providers": "^5.7.1",
"@ledgerhq/iframe-provider": "^0.4.2",
- "@mui/icons-material": "^5.10.16",
+ "@mui/icons-material": "^5.11.0",
"@mui/material": "^5.10.17",
"@mui/system": "^5.10.8",
"@mui/x-data-grid": "^5.17.7",
@@ -55,17 +55,16 @@
"graphql-request": "^5.0.0",
"graphql-tag": "^2.0.0",
"react": "17.0.2",
- "react-countdown": "^2.3.3",
"react-dom": "17.0.2",
"react-ga": "^3.3.1",
"react-ga4": "^1.4.1",
"react-hot-toast": "^2.4.0",
- "react-markdown": "^8.0.3",
- "react-redux": "^8.0.4",
+ "react-markdown": "^8.0.4",
+ "react-redux": "^8.0.5",
"react-router-dom": "^6.4.5",
"react-step-progress-bar": "^1.0.3",
"react-uid": "^2.3.2",
- "recharts": "^2.1.14",
+ "recharts": "^2.2.0",
"tinycolor2": "^1.4.2",
"typescript": "^4.8.4",
"wagmi": "^0.7.15"
@@ -87,11 +86,11 @@
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@ethersproject/abi": "^5.7.0",
"@ethersproject/bytes": "^5.6.1",
- "@graphql-codegen/cli": "2.13.6",
+ "@graphql-codegen/cli": "2.16.1",
"@graphql-codegen/typescript": "2.8.5",
"@graphql-codegen/typescript-operations": "^2.5.8",
"@graphql-codegen/typescript-react-apollo": "3.3.7",
- "@graphql-codegen/typescript-react-query": "^4.0.4",
+ "@graphql-codegen/typescript-react-query": "^4.0.6",
"@tanstack/react-query-devtools": "^4.19.1",
"@testing-library/dom": "^8.19.0",
"@testing-library/jest-dom": "^5.16.5",
@@ -110,9 +109,9 @@
"@types/tinycolor2": "^1.4.3",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.45.1",
- "@typescript-eslint/parser": "^5.39.0",
- "@vitejs/plugin-react": "^2.0.1",
- "@vitest/coverage-c8": "^0.25.5",
+ "@typescript-eslint/parser": "^5.46.0",
+ "@vitejs/plugin-react": "^3.0.0",
+ "@vitest/coverage-c8": "^0.25.8",
"@vitest/ui": "^0.23.1",
"assert": "^2.0.0",
"autoprefixer": "^10.4.13",
@@ -125,7 +124,7 @@
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
- "eslint-plugin-no-relative-import-paths": "^1.4.0",
+ "eslint-plugin-no-relative-import-paths": "^1.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
@@ -136,29 +135,29 @@
"https-browserify": "^1.0.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
- "jest-extended": "^3.1.0",
- "jest-when": "^3.5.1",
- "jsdom": "^20.0.0",
+ "jest-extended": "^3.2.0",
+ "jest-when": "^3.5.2",
+ "jsdom": "^20.0.3",
"less-plugin-npm-import": "^2.1.0",
- "lint-staged": "^13.0.3",
+ "lint-staged": "^13.1.0",
"node-watch": "^0.7.1",
"os-browserify": "^0.3.0",
- "postcss": "^8.4.16",
+ "postcss": "^8.4.20",
"prettier": "^2.7.1",
"process": "^0.11.10",
"prop-types": "^15.8.1",
"react-app-rewired": "^2.2.1",
"resize-observer-polyfill": "^1.5.1",
"rollup-plugin-polyfill-node": "^0.10.2",
- "sass": "^1.55.0",
+ "sass": "^1.56.2",
"shelljs": "^0.8.5",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"type-graphql": "^1.1.1",
- "typechain": "^8.1.0",
+ "typechain": "^8.1.1",
"url": "^0.11.0",
- "vite": "^3.0.9",
- "vite-plugin-svgr": "^2.2.2",
+ "vite": "^4.0.0",
+ "vite-plugin-svgr": "^2.4.0",
"vite-tsconfig-paths": "^3.5.0",
"vitest": "^0.23.1"
},
diff --git a/src/abi/BeethovenChef.json b/src/abi/BeethovenChef.json
deleted file mode 100644
index 978820c039..0000000000
--- a/src/abi/BeethovenChef.json
+++ /dev/null
@@ -1,350 +0,0 @@
-{
- "abi": [
- {
- "inputs": [
- { "internalType": "contract BeethovenxToken", "name": "_beets", "type": "address" },
- { "internalType": "address", "name": "_treasuryAddress", "type": "address" },
- { "internalType": "uint256", "name": "_beetsPerBlock", "type": "uint256" },
- { "internalType": "uint256", "name": "_startBlock", "type": "uint256" }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" }
- ],
- "name": "EmergencyWithdraw",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "Harvest",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "indexed": true, "internalType": "contract IERC20", "name": "lpToken", "type": "address" },
- { "indexed": true, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" }
- ],
- "name": "LogPoolAddition",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "indexed": true, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" },
- { "indexed": false, "internalType": "bool", "name": "overwrite", "type": "bool" }
- ],
- "name": "LogSetPool",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "lpSupply", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "accBeetsPerShare", "type": "uint256" }
- ],
- "name": "LogUpdatePool",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
- { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "oldAddress", "type": "address" },
- { "indexed": true, "internalType": "address", "name": "newAddress", "type": "address" }
- ],
- "name": "SetTreasuryAddress",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": false, "internalType": "uint256", "name": "_beetsPerSec", "type": "uint256" }
- ],
- "name": "UpdateEmissionRate",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "POOL_PERCENTAGE",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "TREASURY_PERCENTAGE",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_allocPoint", "type": "uint256" },
- { "internalType": "contract IERC20", "name": "_lpToken", "type": "address" },
- { "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" }
- ],
- "name": "add",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "beets",
- "outputs": [{ "internalType": "contract BeethovenxToken", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "beetsPerBlock",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "uint256", "name": "_amount", "type": "uint256" },
- { "internalType": "address", "name": "_to", "type": "address" }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "address", "name": "_to", "type": "address" }
- ],
- "name": "emergencyWithdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "address", "name": "_to", "type": "address" }
- ],
- "name": "harvest",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256[]", "name": "_pids", "type": "uint256[]" },
- { "internalType": "address", "name": "_to", "type": "address" }
- ],
- "name": "harvestAll",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "name": "lpTokens",
- "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256[]", "name": "pids", "type": "uint256[]" }],
- "name": "massUpdatePools",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "address", "name": "_user", "type": "address" }
- ],
- "name": "pendingBeets",
- "outputs": [{ "internalType": "uint256", "name": "pending", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "name": "poolInfo",
- "outputs": [
- { "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" },
- { "internalType": "uint256", "name": "accBeetsPerShare", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "poolLength",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
- {
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "name": "rewarder",
- "outputs": [{ "internalType": "contract IRewarder", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "uint256", "name": "_allocPoint", "type": "uint256" },
- { "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" },
- { "internalType": "bool", "name": "overwrite", "type": "bool" }
- ],
- "name": "set",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "startBlock",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "totalAllocPoint",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "address", "name": "_treasuryAddress", "type": "address" }],
- "name": "treasury",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "treasuryAddress",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "_beetsPerBlock", "type": "uint256" }],
- "name": "updateEmissionRate",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "_pid", "type": "uint256" }],
- "name": "updatePool",
- "outputs": [
- {
- "components": [
- { "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" },
- { "internalType": "uint256", "name": "accBeetsPerShare", "type": "uint256" }
- ],
- "internalType": "struct BeethovenxMasterChef.PoolInfo",
- "name": "pool",
- "type": "tuple"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "", "type": "uint256" },
- { "internalType": "address", "name": "", "type": "address" }
- ],
- "name": "userInfo",
- "outputs": [
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "internalType": "uint256", "name": "rewardDebt", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "uint256", "name": "_amount", "type": "uint256" },
- { "internalType": "address", "name": "_to", "type": "address" }
- ],
- "name": "withdrawAndHarvest",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ]
-}
diff --git a/src/abi/JoeChef.json b/src/abi/JoeChef.json
deleted file mode 100644
index 98165fab42..0000000000
--- a/src/abi/JoeChef.json
+++ /dev/null
@@ -1,272 +0,0 @@
-{
- "abi": [
- {
- "inputs": [
- { "internalType": "contract IMasterChef", "name": "_MASTER_CHEF_V2", "type": "address" },
- { "internalType": "contract IERC20", "name": "_joe", "type": "address" },
- { "internalType": "uint256", "name": "_MASTER_PID", "type": "uint256" }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "indexed": true, "internalType": "contract IERC20", "name": "lpToken", "type": "address" },
- { "indexed": true, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" }
- ],
- "name": "Add",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "EmergencyWithdraw",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "Harvest",
- "type": "event"
- },
- { "anonymous": false, "inputs": [], "name": "Init", "type": "event" },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
- { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "indexed": true, "internalType": "contract IRewarder", "name": "rewarder", "type": "address" },
- { "indexed": false, "internalType": "bool", "name": "overwrite", "type": "bool" }
- ],
- "name": "Set",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "lastRewardTimestamp", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "lpSupply", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "accJoePerShare", "type": "uint256" }
- ],
- "name": "UpdatePool",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "JOE",
- "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "MASTER_CHEF_V2",
- "outputs": [{ "internalType": "contract IMasterChef", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "MASTER_PID",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "internalType": "contract IERC20", "name": "_lpToken", "type": "address" },
- { "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" }
- ],
- "name": "add",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "pid", "type": "uint256" }],
- "name": "emergencyWithdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "harvestFromMasterChef",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "contract IERC20", "name": "dummyToken", "type": "address" }],
- "name": "init",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "joePerSec",
- "outputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256[]", "name": "pids", "type": "uint256[]" }],
- "name": "massUpdatePools",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "address", "name": "_user", "type": "address" }
- ],
- "name": "pendingTokens",
- "outputs": [
- { "internalType": "uint256", "name": "pendingJoe", "type": "uint256" },
- { "internalType": "address", "name": "bonusTokenAddress", "type": "address" },
- { "internalType": "string", "name": "bonusTokenSymbol", "type": "string" },
- { "internalType": "uint256", "name": "pendingBonusToken", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "name": "poolInfo",
- "outputs": [
- { "internalType": "contract IERC20", "name": "lpToken", "type": "address" },
- { "internalType": "uint256", "name": "accJoePerShare", "type": "uint256" },
- { "internalType": "uint256", "name": "lastRewardTimestamp", "type": "uint256" },
- { "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
- { "internalType": "contract IRewarder", "name": "rewarder", "type": "address" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "poolLength",
- "outputs": [{ "internalType": "uint256", "name": "pools", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "uint256", "name": "_allocPoint", "type": "uint256" },
- { "internalType": "contract IRewarder", "name": "_rewarder", "type": "address" },
- { "internalType": "bool", "name": "overwrite", "type": "bool" }
- ],
- "name": "set",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "totalAllocPoint",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "pid", "type": "uint256" }],
- "name": "updatePool",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "", "type": "uint256" },
- { "internalType": "address", "name": "", "type": "address" }
- ],
- "name": "userInfo",
- "outputs": [
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "internalType": "uint256", "name": "rewardDebt", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ]
-}
diff --git a/src/abi/JoeRewarder.json b/src/abi/JoeRewarder.json
deleted file mode 100644
index eb2594caa5..0000000000
--- a/src/abi/JoeRewarder.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "abi": [
- {
- "inputs": [
- { "internalType": "contract IERC20", "name": "_rewardToken", "type": "address" },
- { "internalType": "contract IERC20", "name": "_lpToken", "type": "address" },
- { "internalType": "uint256", "name": "_tokenPerSec", "type": "uint256" },
- { "internalType": "contract IMasterChefJoe", "name": "_MCJ", "type": "address" },
- { "internalType": "bool", "name": "_isNative", "type": "bool" }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
- ],
- "name": "OnReward",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
- { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": false, "internalType": "uint256", "name": "oldRate", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "newRate", "type": "uint256" }
- ],
- "name": "RewardRateUpdated",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "MCJ",
- "outputs": [{ "internalType": "contract IMasterChefJoe", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "balance",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- { "inputs": [], "name": "claimOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
- { "inputs": [], "name": "emergencyWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
- {
- "inputs": [],
- "name": "isNative",
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "lpToken",
- "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "address", "name": "_user", "type": "address" },
- { "internalType": "uint256", "name": "_lpAmount", "type": "uint256" }
- ],
- "name": "onJoeReward",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "pendingOwner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }],
- "name": "pendingTokens",
- "outputs": [{ "internalType": "uint256", "name": "pending", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "poolInfo",
- "outputs": [
- { "internalType": "uint256", "name": "accTokenPerShare", "type": "uint256" },
- { "internalType": "uint256", "name": "lastRewardTimestamp", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "rewardToken",
- "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "_tokenPerSec", "type": "uint256" }],
- "name": "setRewardRate",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "tokenPerSec",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "address", "name": "newOwner", "type": "address" },
- { "internalType": "bool", "name": "direct", "type": "bool" },
- { "internalType": "bool", "name": "renounce", "type": "bool" }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "updatePool",
- "outputs": [
- {
- "components": [
- { "internalType": "uint256", "name": "accTokenPerShare", "type": "uint256" },
- { "internalType": "uint256", "name": "lastRewardTimestamp", "type": "uint256" }
- ],
- "internalType": "struct SimpleRewarderPerSec.PoolInfo",
- "name": "pool",
- "type": "tuple"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "name": "userInfo",
- "outputs": [
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "internalType": "uint256", "name": "rewardDebt", "type": "uint256" },
- { "internalType": "uint256", "name": "unpaidRewards", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- { "stateMutability": "payable", "type": "receive" }
- ]
-}
diff --git a/src/abi/SushiChef.json b/src/abi/SushiChef.json
deleted file mode 100644
index 3970cf51c2..0000000000
--- a/src/abi/SushiChef.json
+++ /dev/null
@@ -1,360 +0,0 @@
-{
- "abi": [
- {
- "type": "constructor",
- "stateMutability": "nonpayable",
- "inputs": [{ "type": "address", "name": "_sushi", "internalType": "contract IERC20" }]
- },
- {
- "type": "event",
- "name": "Deposit",
- "inputs": [
- { "type": "address", "name": "user", "internalType": "address", "indexed": true },
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false },
- { "type": "address", "name": "to", "internalType": "address", "indexed": true }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "EmergencyWithdraw",
- "inputs": [
- { "type": "address", "name": "user", "internalType": "address", "indexed": true },
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false },
- { "type": "address", "name": "to", "internalType": "address", "indexed": true }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "Harvest",
- "inputs": [
- { "type": "address", "name": "user", "internalType": "address", "indexed": true },
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "LogPoolAddition",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint256", "name": "allocPoint", "internalType": "uint256", "indexed": false },
- { "type": "address", "name": "lpToken", "internalType": "contract IERC20", "indexed": true },
- { "type": "address", "name": "rewarder", "internalType": "contract IRewarder", "indexed": true }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "LogSetPool",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint256", "name": "allocPoint", "internalType": "uint256", "indexed": false },
- { "type": "address", "name": "rewarder", "internalType": "contract IRewarder", "indexed": true },
- { "type": "bool", "name": "overwrite", "internalType": "bool", "indexed": false }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "LogSushiPerSecond",
- "inputs": [{ "type": "uint256", "name": "sushiPerSecond", "internalType": "uint256", "indexed": false }],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "LogUpdatePool",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64", "indexed": false },
- { "type": "uint256", "name": "lpSupply", "internalType": "uint256", "indexed": false },
- { "type": "uint256", "name": "accSushiPerShare", "internalType": "uint256", "indexed": false }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "OwnershipTransferred",
- "inputs": [
- { "type": "address", "name": "previousOwner", "internalType": "address", "indexed": true },
- { "type": "address", "name": "newOwner", "internalType": "address", "indexed": true }
- ],
- "anonymous": false
- },
- {
- "type": "event",
- "name": "Withdraw",
- "inputs": [
- { "type": "address", "name": "user", "internalType": "address", "indexed": true },
- { "type": "uint256", "name": "pid", "internalType": "uint256", "indexed": true },
- { "type": "uint256", "name": "amount", "internalType": "uint256", "indexed": false },
- { "type": "address", "name": "to", "internalType": "address", "indexed": true }
- ],
- "anonymous": false
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "address", "name": "", "internalType": "contract IERC20" }],
- "name": "SUSHI",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "add",
- "inputs": [
- { "type": "uint256", "name": "allocPoint", "internalType": "uint256" },
- { "type": "address", "name": "_lpToken", "internalType": "contract IERC20" },
- { "type": "address", "name": "_rewarder", "internalType": "contract IRewarder" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "payable",
- "outputs": [
- { "type": "bool[]", "name": "successes", "internalType": "bool[]" },
- { "type": "bytes[]", "name": "results", "internalType": "bytes[]" }
- ],
- "name": "batch",
- "inputs": [
- { "type": "bytes[]", "name": "calls", "internalType": "bytes[]" },
- { "type": "bool", "name": "revertOnFail", "internalType": "bool" }
- ]
- },
- { "type": "function", "stateMutability": "nonpayable", "outputs": [], "name": "claimOwnership", "inputs": [] },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "deposit",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256" },
- { "type": "uint256", "name": "amount", "internalType": "uint256" },
- { "type": "address", "name": "to", "internalType": "address" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "emergencyWithdraw",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256" },
- { "type": "address", "name": "to", "internalType": "address" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "harvest",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256" },
- { "type": "address", "name": "to", "internalType": "address" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "address", "name": "", "internalType": "contract IERC20" }],
- "name": "lpToken",
- "inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "massUpdatePools",
- "inputs": [{ "type": "uint256[]", "name": "pids", "internalType": "uint256[]" }]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "migrate",
- "inputs": [{ "type": "uint256", "name": "_pid", "internalType": "uint256" }]
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "address", "name": "", "internalType": "contract IMigratorChef" }],
- "name": "migrator",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "address", "name": "", "internalType": "address" }],
- "name": "owner",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "address", "name": "", "internalType": "address" }],
- "name": "pendingOwner",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "uint256", "name": "pending", "internalType": "uint256" }],
- "name": "pendingSushi",
- "inputs": [
- { "type": "uint256", "name": "_pid", "internalType": "uint256" },
- { "type": "address", "name": "_user", "internalType": "address" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "permitToken",
- "inputs": [
- { "type": "address", "name": "token", "internalType": "contract IERC20" },
- { "type": "address", "name": "from", "internalType": "address" },
- { "type": "address", "name": "to", "internalType": "address" },
- { "type": "uint256", "name": "amount", "internalType": "uint256" },
- { "type": "uint256", "name": "deadline", "internalType": "uint256" },
- { "type": "uint8", "name": "v", "internalType": "uint8" },
- { "type": "bytes32", "name": "r", "internalType": "bytes32" },
- { "type": "bytes32", "name": "s", "internalType": "bytes32" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [
- { "type": "uint128", "name": "accSushiPerShare", "internalType": "uint128" },
- { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64" },
- { "type": "uint64", "name": "allocPoint", "internalType": "uint64" }
- ],
- "name": "poolInfo",
- "inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }]
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "uint256", "name": "pools", "internalType": "uint256" }],
- "name": "poolLength",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "address", "name": "", "internalType": "contract IRewarder" }],
- "name": "rewarder",
- "inputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "set",
- "inputs": [
- { "type": "uint256", "name": "_pid", "internalType": "uint256" },
- { "type": "uint256", "name": "_allocPoint", "internalType": "uint256" },
- { "type": "address", "name": "_rewarder", "internalType": "contract IRewarder" },
- { "type": "bool", "name": "overwrite", "internalType": "bool" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "setMigrator",
- "inputs": [{ "type": "address", "name": "_migrator", "internalType": "contract IMigratorChef" }]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "setSushiPerSecond",
- "inputs": [{ "type": "uint256", "name": "_sushiPerSecond", "internalType": "uint256" }]
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
- "name": "sushiPerSecond",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
- "name": "totalAllocPoint",
- "inputs": []
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "transferOwnership",
- "inputs": [
- { "type": "address", "name": "newOwner", "internalType": "address" },
- { "type": "bool", "name": "direct", "internalType": "bool" },
- { "type": "bool", "name": "renounce", "internalType": "bool" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [
- {
- "type": "tuple",
- "name": "pool",
- "internalType": "struct MiniChefV2.PoolInfo",
- "components": [
- { "type": "uint128", "name": "accSushiPerShare", "internalType": "uint128" },
- { "type": "uint64", "name": "lastRewardTime", "internalType": "uint64" },
- { "type": "uint64", "name": "allocPoint", "internalType": "uint64" }
- ]
- }
- ],
- "name": "updatePool",
- "inputs": [{ "type": "uint256", "name": "pid", "internalType": "uint256" }]
- },
- {
- "type": "function",
- "stateMutability": "view",
- "outputs": [
- { "type": "uint256", "name": "amount", "internalType": "uint256" },
- { "type": "int256", "name": "rewardDebt", "internalType": "int256" }
- ],
- "name": "userInfo",
- "inputs": [
- { "type": "uint256", "name": "", "internalType": "uint256" },
- { "type": "address", "name": "", "internalType": "address" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "withdraw",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256" },
- { "type": "uint256", "name": "amount", "internalType": "uint256" },
- { "type": "address", "name": "to", "internalType": "address" }
- ]
- },
- {
- "type": "function",
- "stateMutability": "nonpayable",
- "outputs": [],
- "name": "withdrawAndHarvest",
- "inputs": [
- { "type": "uint256", "name": "pid", "internalType": "uint256" },
- { "type": "uint256", "name": "amount", "internalType": "uint256" },
- { "type": "address", "name": "to", "internalType": "address" }
- ]
- }
- ]
-}
diff --git a/src/abi/SushiRewarder.json b/src/abi/SushiRewarder.json
deleted file mode 100644
index 2acfc3bde3..0000000000
--- a/src/abi/SushiRewarder.json
+++ /dev/null
@@ -1,221 +0,0 @@
-{
- "abi": [
- {
- "inputs": [{ "internalType": "address", "name": "_MASTERCHEF_V2", "type": "address" }],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "contract IERC20", "name": "rewardToken", "type": "address" },
- { "indexed": false, "internalType": "address", "name": "owner", "type": "address" },
- { "indexed": false, "internalType": "uint256", "name": "rewardPerSecond", "type": "uint256" },
- { "indexed": true, "internalType": "contract IERC20", "name": "masterLpToken", "type": "address" }
- ],
- "name": "LogInit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "user", "type": "address" },
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" }
- ],
- "name": "LogOnReward",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [{ "indexed": false, "internalType": "uint256", "name": "rewardPerSecond", "type": "uint256" }],
- "name": "LogRewardPerSecond",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "indexed": false, "internalType": "uint64", "name": "lastRewardTime", "type": "uint64" },
- { "indexed": false, "internalType": "uint256", "name": "lpSupply", "type": "uint256" },
- { "indexed": false, "internalType": "uint256", "name": "accToken1PerShare", "type": "uint256" }
- ],
- "name": "LogUpdatePool",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
- { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "MASTERCHEF_V2",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- { "inputs": [], "name": "claimOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
- {
- "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }],
- "name": "init",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "masterLpToken",
- "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "internalType": "address", "name": "_user", "type": "address" },
- { "internalType": "address", "name": "to", "type": "address" },
- { "internalType": "uint256", "name": "", "type": "uint256" },
- { "internalType": "uint256", "name": "lpTokenAmount", "type": "uint256" }
- ],
- "name": "onSushiReward",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "pendingOwner",
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "_pid", "type": "uint256" },
- { "internalType": "address", "name": "_user", "type": "address" }
- ],
- "name": "pendingToken",
- "outputs": [{ "internalType": "uint256", "name": "pending", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "pid", "type": "uint256" },
- { "internalType": "address", "name": "user", "type": "address" },
- { "internalType": "uint256", "name": "", "type": "uint256" }
- ],
- "name": "pendingTokens",
- "outputs": [
- { "internalType": "contract IERC20[]", "name": "rewardTokens", "type": "address[]" },
- { "internalType": "uint256[]", "name": "rewardAmounts", "type": "uint256[]" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "name": "poolInfo",
- "outputs": [
- { "internalType": "uint128", "name": "accToken1PerShare", "type": "uint128" },
- { "internalType": "uint64", "name": "lastRewardTime", "type": "uint64" }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "address", "name": "token", "type": "address" },
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "internalType": "address payable", "name": "to", "type": "address" }
- ],
- "name": "reclaimTokens",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "rewardPerSecond",
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "rewardRates",
- "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "rewardToken",
- "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "_rewardPerSecond", "type": "uint256" }],
- "name": "setRewardPerSecond",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "address", "name": "newOwner", "type": "address" },
- { "internalType": "bool", "name": "direct", "type": "bool" },
- { "internalType": "bool", "name": "renounce", "type": "bool" }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [{ "internalType": "uint256", "name": "pid", "type": "uint256" }],
- "name": "updatePool",
- "outputs": [
- {
- "components": [
- { "internalType": "uint128", "name": "accToken1PerShare", "type": "uint128" },
- { "internalType": "uint64", "name": "lastRewardTime", "type": "uint64" }
- ],
- "internalType": "struct OhmRewarder.PoolInfo",
- "name": "pool",
- "type": "tuple"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- { "internalType": "uint256", "name": "", "type": "uint256" },
- { "internalType": "address", "name": "", "type": "address" }
- ],
- "name": "userInfo",
- "outputs": [
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
- { "internalType": "uint256", "name": "rewardDebt", "type": "uint256" },
- { "internalType": "uint256", "name": "unpaidRewards", "type": "uint256" }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ]
-}
diff --git a/src/components/TopBar/Wallet/GetOhm.tsx b/src/components/TopBar/Wallet/GetOhm.tsx
index a1eaf26e20..608b6eba21 100644
--- a/src/components/TopBar/Wallet/GetOhm.tsx
+++ b/src/components/TopBar/Wallet/GetOhm.tsx
@@ -8,16 +8,7 @@ import uniswapImg from "src/assets/uniswap.png";
import { SupplyRatePerBlock } from "src/components/TopBar/Wallet/queries";
import { OHM_ADDRESSES } from "src/constants/addresses";
import { formatCurrency, formatNumber, parseBigNumber, trim } from "src/helpers";
-import {
- balancerPools,
- beetsPools,
- convexPools,
- curvePools,
- fraxPools,
- joePools,
- jonesPools,
- sushiPools,
-} from "src/helpers/AllExternalPools";
+import { balancerPools, convexPools, curvePools, fraxPools } from "src/helpers/AllExternalPools";
import { sortByDiscount } from "src/helpers/bonds/sortByDiscount";
import { DecimalBigNumber } from "src/helpers/DecimalBigNumber/DecimalBigNumber";
import { prettifySecondsInDays } from "src/helpers/timeUtil";
@@ -28,19 +19,11 @@ import { useLiveBonds } from "src/views/Bond/hooks/useLiveBonds";
import {
BalancerPoolAPY,
BalancerSwapFees,
- BeetsPoolAPY,
ConvexPoolAPY,
CurvePoolAPY,
FraxPoolAPY,
- JoePoolAPY,
- JonesPoolAPY,
- SushiPoolAPY,
} from "src/views/Stake/components/ExternalStakePools/hooks/useStakePoolAPY";
-import {
- BalancerPoolTVL,
- CurvePoolTVL,
- useStakePoolTVL,
-} from "src/views/Stake/components/ExternalStakePools/hooks/useStakePoolTVL";
+import { CurvePoolTVL } from "src/views/Stake/components/ExternalStakePools/hooks/useStakePoolTVL";
import { useNetwork } from "wagmi";
const PREFIX = "GetOhm";
@@ -145,18 +128,6 @@ const GetOhm: FC = () => {
- gOHM-wETH
+ OHM-DAI-wETH