diff --git a/README.md b/README.md index 45655531e..223f50f34 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,8 @@ This project contains the main features of the pancake application. If you want to contribute, please refer to the [contributing guidelines](./CONTRIBUTING.md) of this project. + + +Node version - V12 +1) yarn && cd euphoria-uikit && yarn && yarn pack && cd .. && yarn run start + diff --git a/euphoria-uikit b/euphoria-uikit new file mode 160000 index 000000000..4a665ca7b --- /dev/null +++ b/euphoria-uikit @@ -0,0 +1 @@ +Subproject commit 4a665ca7b735e1fc9e22191b98912308a6001bbd diff --git a/goose-uikit b/goose-uikit new file mode 160000 index 000000000..4a665ca7b --- /dev/null +++ b/goose-uikit @@ -0,0 +1 @@ +Subproject commit 4a665ca7b735e1fc9e22191b98912308a6001bbd diff --git a/package.json b/package.json index 2cd36441a..a7f1cd76d 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,14 @@ "version": "0.1.0", "private": true, "scripts": { + "dev": "cd euphoria-uikit && yarn pack && cd .. && yarn install && react-scripts start", "analyze": "source-map-explorer 'build/static/js/*.js'", "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'", - "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'" + "format": "prettier --write src/**/*.{js,jsx,ts,tsx}" }, "husky": { "hooks": { @@ -55,7 +56,8 @@ "styled-components": "^5.1.1", "typescript": "^4.1.3", "universal-cookie": "^4.0.4", - "web3": "^1.3.1" + "web3": "^1.3.1", + "classnames": "^2.3.1" }, "devDependencies": { "@commitlint/cli": "^11.0.0", diff --git a/public/favicon.ico b/public/favicon.ico index f0548dd7b..a0c260564 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/i18n/en.json b/public/i18n/en.json index a17008e7a..b3e521a4c 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -75,7 +75,7 @@ { "data": { "stringId": 304, - "text": "Total EGG burned since launch" + "text": "Total HIGH burned since launch" } }, { @@ -123,13 +123,13 @@ { "data": { "stringId": 320, - "text": "Stake LP tokens to earn EGG" + "text": "Stake LP tokens to earn HIGH" } }, { "data": { "stringId": 322, - "text": "Stake Egg, get SYRUP." + "text": "Stake High, get SYRUP." } }, { @@ -153,7 +153,7 @@ { "data": { "stringId": 334, - "text": "Every time you stake and unstake EGG tokens, the contract will automatically harvest EGG rewards for you!" + "text": "Every time you stake and unstake HIGH tokens, the contract will automatically harvest HIGH rewards for you!" } }, { @@ -219,7 +219,7 @@ { "data": { "stringId": 358, - "text": "Egg price" + "text": "High price" } }, { @@ -243,7 +243,7 @@ { "data": { "stringId": 380, - "text": "1 EGG = 1 SYRUP" + "text": "1 HIGH = 1 SYRUP" } }, { @@ -291,7 +291,7 @@ { "data": { "stringId": 400, - "text": "SYRUP holders proportionally split 25% of EGG block emissions each day (10 EGG per block), Rewards are distributed each block." + "text": "SYRUP holders proportionally split 25% of HIGH block emissions each day (10 HIGH per block), Rewards are distributed each block." } }, { @@ -351,13 +351,13 @@ { "data": { "stringId": 424, - "text": "%num% EGG" + "text": "%num% HIGH" } }, { "data": { "stringId": 426, - "text": "Spend EGG to buy tickets, contributing to the lottery pot. Ticket purchases end approx. 30 minutes before lottery. Win prizes if 2, 3, or 4 of your ticket numbers match the winning numbers and their positions! Good luck!" + "text": "Spend HIGH to buy tickets, contributing to the lottery pot. Ticket purchases end approx. 30 minutes before lottery. Win prizes if 2, 3, or 4 of your ticket numbers match the winning numbers and their positions! Good luck!" } }, { @@ -435,19 +435,19 @@ { "data": { "stringId": 454, - "text": "%num% EGG Available" + "text": "%num% HIGH Available" } }, { "data": { "stringId": 456, - "text": "Your amount must be a multiple of 10 EGG" + "text": "Your amount must be a multiple of 10 HIGH" } }, { "data": { "stringId": 458, - "text": "1 Ticket = 10 EGG" + "text": "1 Ticket = 10 HIGH" } }, { @@ -495,7 +495,7 @@ { "data": { "stringId": 478, - "text": "Ticket purchases are final. Your EGG cannot be returned to you after buying tickets." + "text": "Ticket purchases are final. Your HIGH cannot be returned to you after buying tickets." } }, { @@ -507,7 +507,7 @@ { "data": { "stringId": 482, - "text": "EGG prizes to be claimed" + "text": "HIGH prizes to be claimed" } }, { @@ -543,13 +543,13 @@ { "data": { "stringId": 494, - "text": "Approve EGG" + "text": "Approve HIGH" } }, { "data": { "stringId": 496, - "text": "SYRUP holders proportionally split 40% of EGG block emissions each day (10 EGG per block), Rewards are distributed each block." + "text": "SYRUP holders proportionally split 40% of HIGH block emissions each day (10 HIGH per block), Rewards are distributed each block." } }, { @@ -567,19 +567,19 @@ { "data": { "stringId": 504, - "text": "You\u2019ll pay for the new tokens using EGG-BNB LP tokens, which means you need to stake equal amounts of EGG and BNB in a liquidity pool to take part." + "text": "You\u2019ll pay for the new tokens using HIGH-BNB LP tokens, which means you need to stake equal amounts of HIGH and BNB in a liquidity pool to take part." } }, { "data": { "stringId": 506, - "text": "Get EGG-BNB LP >" + "text": "Get HIGH-BNB LP >" } }, { "data": { "stringId": 508, - "text": "The project gets the BNB, Goose Finance burns the EGG." + "text": "The project gets the BNB, Euphoria burns the HIGH." } }, { @@ -597,7 +597,7 @@ { "data": { "stringId": 514, - "text": "Launch your project with Goose Finance, Binance Smart Chain\u2019s most-used AMM project and liquidity provider, to bring your token directly to the most active and rapidly growing community on BSC." + "text": "Launch your project with Euphoria, Binance Smart Chain\u2019s most-used AMM project and liquidity provider, to bring your token directly to the most active and rapidly growing community on BSC." } }, { @@ -645,7 +645,7 @@ { "data": { "stringId": 534, - "text": "Egg Stats" + "text": "High Stats" } }, { @@ -663,7 +663,7 @@ { "data": { "stringId": 540, - "text": "New EGG\/block" + "text": "New HIGH/block" } }, { @@ -675,19 +675,19 @@ { "data": { "stringId": 544, - "text": "EGG to Harvest" + "text": "HIGH to Harvest" } }, { "data": { "stringId": 546, - "text": "EGG in Wallet" + "text": "HIGH in Wallet" } }, { "data": { "stringId": 548, - "text": "Collecting EGG" + "text": "Collecting HIGH" } }, { @@ -699,7 +699,7 @@ { "data": { "stringId": 552, - "text": "EGG to Collect" + "text": "HIGH to Collect" } }, { @@ -753,7 +753,7 @@ { "data": { "stringId": 576, - "text": "Goose Finance" + "text": "Euphoria" } }, { @@ -765,7 +765,7 @@ { "data": { "stringId": 580, - "text": "Stake EGG to earn new tokens." + "text": "Stake tokens to earn HIGH" } }, { @@ -783,7 +783,7 @@ { "data": { "stringId": 586, - "text": "EGG to burn (USD)" + "text": "HIGH to burn (USD)" } }, { @@ -795,7 +795,7 @@ { "data": { "stringId": 590, - "text": "\u2b50\ufe0f Every time you stake and unstake LP tokens, the contract will automatically harvest EGG rewards for you!" + "text": "\u2b50\ufe0f Every time you stake and unstake LP tokens, the contract will automatically harvest HIGH rewards for you!" } }, { @@ -813,13 +813,13 @@ { "data": { "stringId": 596, - "text": "Buy EGG and BNB tokens" + "text": "Buy HIGH and BNB tokens" } }, { "data": { "stringId": 598, - "text": "Get EGG-BNB LP tokens by adding EGG and BNB liquidity" + "text": "Get HIGH-BNB LP tokens by adding HIGH and BNB liquidity" } }, { @@ -831,7 +831,7 @@ { "data": { "stringId": 602, - "text": "While the sale is live, commit your EGG-LP tokens to buy the IFO tokens" + "text": "While the sale is live, commit your HIGH-LP tokens to buy the IFO tokens" } }, { @@ -867,7 +867,7 @@ { "data": { "stringId": 614, - "text": "Trade in for EGG, or keep for your collection!" + "text": "Trade in for HIGH, or keep for your collection!" } }, { @@ -909,7 +909,7 @@ { "data": { "stringId": 628, - "text": "When you trade in this NFT to receive EGG, you will lose access to it forever!" + "text": "When you trade in this NFT to receive HIGH, you will lose access to it forever!" } }, { @@ -939,7 +939,7 @@ { "data": { "stringId": 638, - "text": "Winners can trade in their NFTs for a EGG value until the expiry date written below. If you don't trade in your NFT by then, don\u2019t worry: you\u2019ll still keep it in your wallet!" + "text": "Winners can trade in their NFTs for a HIGH value until the expiry date written below. If you don't trade in your NFT by then, don\u2019t worry: you\u2019ll still keep it in your wallet!" } }, { @@ -981,7 +981,7 @@ { "data": { "stringId": 654, - "text": "Trade in for EGG" + "text": "Trade in for HIGH" } }, { @@ -1107,7 +1107,7 @@ { "data": { "stringId": 696, - "text": "Stake LP tokens to earn EGG" + "text": "Stake LP tokens to earn HIGH" } }, { @@ -1149,13 +1149,13 @@ { "data": { "stringId": 708, - "text": "The EGG Lottery" + "text": "The HIGH Lottery" } }, { "data": { "stringId": 710, - "text": "Buy tickets with EGG" + "text": "Buy tickets with HIGH" } }, { @@ -1209,7 +1209,7 @@ { "data": { "stringId": 10000, - "text": "Deposit Fee will be used to buyback EGG" + "text": "Stake HIGH to earn BLISS once event ends" } }, { @@ -1221,7 +1221,7 @@ { "data": { "stringId": 10002, - "text": "Stake tokens to earn EGG" + "text": "Stake tokens to earn HIGH" } }, { @@ -1247,4 +1247,4 @@ "offset": 0, "limit": 200 } -} \ No newline at end of file +} diff --git a/public/i18n/zh-CN.json b/public/i18n/zh-CN.json index a3cf265ae..46edf5e18 100644 --- a/public/i18n/zh-CN.json +++ b/public/i18n/zh-CN.json @@ -75,7 +75,7 @@ { "data": { "stringId": 304, - "text": "\u81ea\u53d1\u8d77\u4ee5\u6765\u7684 EGG \u603b\u711a\u6bc1\u91cf" + "text": "\u81ea\u53d1\u8d77\u4ee5\u6765\u7684 HIGH \u603b\u711a\u6bc1\u91cf" } }, { @@ -123,13 +123,13 @@ { "data": { "stringId": 320, - "text": "\u8d28\u62bc LP \u4ee3\u5e01\u4ee5\u5806\u53e0 EGG" + "text": "\u8d28\u62bc LP \u4ee3\u5e01\u4ee5\u5806\u53e0 HIGH" } }, { "data": { "stringId": 322, - "text": "\u8d28\u62bc EGG\uff0c\u83b7\u53d6 SYRUP\u3002" + "text": "\u8d28\u62bc HIGH\uff0c\u83b7\u53d6 SYRUP\u3002" } }, { @@ -153,7 +153,7 @@ { "data": { "stringId": 334, - "text": "\u6bcf\u6b21\u60a8\u8d28\u62bc\u4e0e\u53d6\u6d88\u8d28\u62bc EGG \u4ee3\u5e01\u65f6\uff0c\u5408\u7ea6\u90fd\u4f1a\u81ea\u52a8\u4e3a\u60a8\u6536\u5272 EGG \u5956\u52b1\uff01" + "text": "\u6bcf\u6b21\u60a8\u8d28\u62bc\u4e0e\u53d6\u6d88\u8d28\u62bc HIGH \u4ee3\u5e01\u65f6\uff0c\u5408\u7ea6\u90fd\u4f1a\u81ea\u52a8\u4e3a\u60a8\u6536\u5272 HIGH \u5956\u52b1\uff01" } }, { @@ -219,7 +219,7 @@ { "data": { "stringId": 358, - "text": "EGG \u4ef7\u683c" + "text": "HIGH \u4ef7\u683c" } }, { @@ -243,7 +243,7 @@ { "data": { "stringId": 380, - "text": "1 EGG = 1 SYRUP" + "text": "1 HIGH = 1 SYRUP" } }, { @@ -291,7 +291,7 @@ { "data": { "stringId": 400, - "text": "SYRUP \u6301\u6709\u8005\u6bcf\u5929\u5c06\u6309\u6bd4\u4f8b\u5206\u4eab EGG \u533a\u5757\u5956\u52b1\u7684 25%\uff08\u6bcf\u4e2a\u533a\u5757 10 EGG\uff09\uff0c\u5956\u52b1\u6309\u533a\u5757\u5206\u53d1\u3002" + "text": "SYRUP \u6301\u6709\u8005\u6bcf\u5929\u5c06\u6309\u6bd4\u4f8b\u5206\u4eab HIGH \u533a\u5757\u5956\u52b1\u7684 25%\uff08\u6bcf\u4e2a\u533a\u5757 10 HIGH\uff09\uff0c\u5956\u52b1\u6309\u533a\u5757\u5206\u53d1\u3002" } }, { @@ -351,13 +351,13 @@ { "data": { "stringId": 424, - "text": "%num% EGG" + "text": "%num% HIGH" } }, { "data": { "stringId": 426, - "text": "\u82b1\u8d39 EGG \u8d2d\u4e70\u5f69\u7968\uff0c\u4e3a\u5956\u6c60\u505a\u8d21\u732e\u3002\u5f69\u7968\u8d2d\u4e70\u5728\u5f00\u5956\u524d\u7ea6 30 \u5206\u949f\u7ed3\u675f\u3002\u5982\u679c\u60a8\u7684\u5f69\u7968\u4e2d\u4e86 2\u30013 \u6216 4 \u4e2a\u53f7\u7801\u4e14\u987a\u5e8f\u4e00\u81f4\uff0c\u5219\u4f1a\u8d62\u53d6\u5956\u91d1\uff01\u795d\u60a8\u597d\u8fd0\uff01" + "text": "\u82b1\u8d39 HIGH \u8d2d\u4e70\u5f69\u7968\uff0c\u4e3a\u5956\u6c60\u505a\u8d21\u732e\u3002\u5f69\u7968\u8d2d\u4e70\u5728\u5f00\u5956\u524d\u7ea6 30 \u5206\u949f\u7ed3\u675f\u3002\u5982\u679c\u60a8\u7684\u5f69\u7968\u4e2d\u4e86 2\u30013 \u6216 4 \u4e2a\u53f7\u7801\u4e14\u987a\u5e8f\u4e00\u81f4\uff0c\u5219\u4f1a\u8d62\u53d6\u5956\u91d1\uff01\u795d\u60a8\u597d\u8fd0\uff01" } }, { @@ -435,25 +435,25 @@ { "data": { "stringId": 454, - "text": "%num% EGG \u53ef\u7528" + "text": "%num% HIGH \u53ef\u7528" } }, { "data": { "stringId": 456, - "text": "\u60a8\u7684\u91d1\u989d\u5fc5\u987b\u7b49\u4e8e 10 EGG \u7684\u500d\u6570" + "text": "\u60a8\u7684\u91d1\u989d\u5fc5\u987b\u7b49\u4e8e 10 HIGH \u7684\u500d\u6570" } }, { "data": { "stringId": 458, - "text": "1 \u5f20\u5f69\u7968 = 10 EGG" + "text": "1 \u5f20\u5f69\u7968 = 10 HIGH" } }, { "data": { "stringId": 460, - "text": "\u60a8\u5c06\u82b1\u8d39\uff1a%num% EGG" + "text": "\u60a8\u5c06\u82b1\u8d39\uff1a%num% HIGH" } }, { @@ -483,7 +483,7 @@ { "data": { "stringId": 470, - "text": "\u5728\u60a8\u82b1\u8d39 EGG \u8d2d\u4e70\u5f69\u7968\u540e\uff0c\u65e0\u6cd5\u5c06 EGG \u9000\u8fd8\u7ed9\u60a8\u3002" + "text": "\u5728\u60a8\u82b1\u8d39 HIGH \u8d2d\u4e70\u5f69\u7968\u540e\uff0c\u65e0\u6cd5\u5c06 HIGH \u9000\u8fd8\u7ed9\u60a8\u3002" } }, { @@ -507,7 +507,7 @@ { "data": { "stringId": 478, - "text": "\u5f69\u7968\u8d2d\u4e70\u4e3a\u6700\u7ec8\u72b6\u6001\u3002\u8d2d\u4e70\u5f69\u7968\u540e\uff0c\u65e0\u6cd5\u5c06 EGG \u9000\u8fd8\u7ed9\u60a8\u3002" + "text": "\u5f69\u7968\u8d2d\u4e70\u4e3a\u6700\u7ec8\u72b6\u6001\u3002\u8d2d\u4e70\u5f69\u7968\u540e\uff0c\u65e0\u6cd5\u5c06 HIGH \u9000\u8fd8\u7ed9\u60a8\u3002" } }, { @@ -519,7 +519,7 @@ { "data": { "stringId": 482, - "text": "\u5f85\u9886\u53d6\u7684 EGG \u5956\u91d1" + "text": "\u5f85\u9886\u53d6\u7684 HIGH \u5956\u91d1" } }, { @@ -555,13 +555,13 @@ { "data": { "stringId": 494, - "text": "\u6279\u51c6 EGG" + "text": "\u6279\u51c6 HIGH" } }, { "data": { "stringId": 496, - "text": "SYRUP \u6301\u6709\u8005\u6bcf\u5929\u5c06\u6309\u6bd4\u4f8b\u5206\u4eab EGG \u533a\u5757\u5956\u52b1\u7684 40%\uff08\u6bcf\u4e2a\u533a\u5757 10 EGG\uff09\uff0c\u5956\u52b1\u6309\u533a\u5757\u5206\u53d1\u3002" + "text": "SYRUP \u6301\u6709\u8005\u6bcf\u5929\u5c06\u6309\u6bd4\u4f8b\u5206\u4eab HIGH \u533a\u5757\u5956\u52b1\u7684 40%\uff08\u6bcf\u4e2a\u533a\u5757 10 HIGH\uff09\uff0c\u5956\u52b1\u6309\u533a\u5757\u5206\u53d1\u3002" } }, { @@ -579,19 +579,19 @@ { "data": { "stringId": 504, - "text": "\u60a8\u5c06\u4f7f\u7528 EGG-BNB LP \u4ee3\u5e01\u6765\u652f\u4ed8\u65b0\u4ee3\u5e01\u7684\u8d39\u7528\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u9700\u8981\u5728\u6d41\u52a8\u6027\u8d44\u91d1\u6c60\u4e2d\u8d28\u62bc\u7b49\u91cf\u7684 EGG \u548c BNB \u624d\u80fd\u53c2\u4e0e\u3002" + "text": "\u60a8\u5c06\u4f7f\u7528 HIGH-BNB LP \u4ee3\u5e01\u6765\u652f\u4ed8\u65b0\u4ee3\u5e01\u7684\u8d39\u7528\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u9700\u8981\u5728\u6d41\u52a8\u6027\u8d44\u91d1\u6c60\u4e2d\u8d28\u62bc\u7b49\u91cf\u7684 HIGH \u548c BNB \u624d\u80fd\u53c2\u4e0e\u3002" } }, { "data": { "stringId": 506, - "text": "\u83b7\u53d6 EGG-BNB LP >" + "text": "\u83b7\u53d6 HIGH-BNB LP >" } }, { "data": { "stringId": 508, - "text": "\u6b64\u9879\u76ee\u83b7\u5f97\u4e86 BNB\uff0cGoose Finance \u4f1a\u711a\u6bc1 EGG\u3002" + "text": "\u6b64\u9879\u76ee\u83b7\u5f97\u4e86 BNB\uff0cGoose Finance \u4f1a\u711a\u6bc1 HIGH\u3002" } }, { @@ -609,7 +609,7 @@ { "data": { "stringId": 514, - "text": "\u901a\u8fc7 Binance Smart Chain \u4e0a\u6700\u5e38\u7528\u7684 AMM \u9879\u76ee\u548c\u6d41\u52a8\u6027\u4f9b\u5e94\u5546 Goose Finance \u53d1\u8d77\u60a8\u7684\u9879\u76ee\uff0c\u5c06\u60a8\u7684\u4ee3\u5e01\u76f4\u63a5\u5f15\u5165 BSC \u4e0a\u6700\u6d3b\u8dc3\u4e14\u5feb\u901f\u53d1\u5c55\u7684\u793e\u533a\u3002" + "text": "\u901a\u8fc7 Binance Smart Chain \u4e0a\u6700\u5e38\u7528\u7684 AMM \u9879\u76ee\u548c\u6d41\u52a8\u6027\u4f9b\u5e94\u5546 Euphoria \u53d1\u8d77\u60a8\u7684\u9879\u76ee\uff0c\u5c06\u60a8\u7684\u4ee3\u5e01\u76f4\u63a5\u5f15\u5165 BSC \u4e0a\u6700\u6d3b\u8dc3\u4e14\u5feb\u901f\u53d1\u5c55\u7684\u793e\u533a\u3002" } }, { @@ -657,7 +657,7 @@ { "data": { "stringId": 534, - "text": "EGG \u7edf\u8ba1\u6570\u636e" + "text": "HIGH \u7edf\u8ba1\u6570\u636e" } }, { @@ -675,7 +675,7 @@ { "data": { "stringId": 540, - "text": "\u65b0 EGG\/\u533a\u5757" + "text": "\u65b0 HIGH\/\u533a\u5757" } }, { @@ -687,19 +687,19 @@ { "data": { "stringId": 544, - "text": "\u5f85\u6536\u5272\u7684 EGG" + "text": "\u5f85\u6536\u5272\u7684 HIGH" } }, { "data": { "stringId": 546, - "text": "\u94b1\u5305\u4e2d\u7684 EGG" + "text": "\u94b1\u5305\u4e2d\u7684 HIGH" } }, { "data": { "stringId": 548, - "text": "\u6b63\u5728\u6536\u96c6 EGG" + "text": "\u6b63\u5728\u6536\u96c6 HIGH" } }, { @@ -711,7 +711,7 @@ { "data": { "stringId": 552, - "text": "\u5f85\u6536\u96c6\u7684 EGG" + "text": "\u5f85\u6536\u96c6\u7684 HIGH" } }, { @@ -765,7 +765,7 @@ { "data": { "stringId": 576, - "text": "Goose Finance" + "text": "Euphoria" } }, { @@ -777,7 +777,7 @@ { "data": { "stringId": 580, - "text": "\u8d28\u62bc EGG \u4ee5\u8d5a\u53d6\u65b0\u4ee3\u5e01\u3002" + "text": "\u8d28\u62bc HIGH \u4ee5\u8d5a\u53d6\u65b0\u4ee3\u5e01\u3002" } }, { @@ -795,7 +795,7 @@ { "data": { "stringId": 586, - "text": "\u5c06\u711a\u6bc1\u7684 EGG (USD)" + "text": "\u5c06\u711a\u6bc1\u7684 HIGH (USD)" } }, { @@ -807,7 +807,7 @@ { "data": { "stringId": 590, - "text": "\u2b50\ufe0f \u6bcf\u6b21\u60a8\u8d28\u62bc\u548c\u53d6\u6d88\u8d28\u62bc LP \u4ee3\u5e01\u65f6\uff0c\u5408\u7ea6\u90fd\u4f1a\u81ea\u52a8\u4e3a\u60a8\u6536\u5272 EGG \u5956\u52b1\uff01" + "text": "\u2b50\ufe0f \u6bcf\u6b21\u60a8\u8d28\u62bc\u548c\u53d6\u6d88\u8d28\u62bc LP \u4ee3\u5e01\u65f6\uff0c\u5408\u7ea6\u90fd\u4f1a\u81ea\u52a8\u4e3a\u60a8\u6536\u5272 HIGH \u5956\u52b1\uff01" } }, { @@ -825,13 +825,13 @@ { "data": { "stringId": 596, - "text": "\u8d2d\u4e70 EGG \u548c BNB \u4ee3\u5e01" + "text": "\u8d2d\u4e70 HIGH \u548c BNB \u4ee3\u5e01" } }, { "data": { "stringId": 598, - "text": "\u901a\u8fc7\u6dfb\u52a0 EGG \u548c BNB \u6d41\u52a8\u6027\u83b7\u53d6 EGG-BNB LP \u4ee3\u5e01" + "text": "\u901a\u8fc7\u6dfb\u52a0 HIGH \u548c BNB \u6d41\u52a8\u6027\u83b7\u53d6 HIGH-BNB LP \u4ee3\u5e01" } }, { @@ -843,7 +843,7 @@ { "data": { "stringId": 602, - "text": "\u5728\u9500\u552e\u8fc7\u7a0b\u4e2d\uff0c\u63d0\u4ea4\u60a8\u7684 EGG-LP \u4ee3\u5e01\u6765\u8d2d\u4e70 IFO \u4ee3\u5e01" + "text": "\u5728\u9500\u552e\u8fc7\u7a0b\u4e2d\uff0c\u63d0\u4ea4\u60a8\u7684 HIGH-LP \u4ee3\u5e01\u6765\u8d2d\u4e70 IFO \u4ee3\u5e01" } }, { @@ -879,7 +879,7 @@ { "data": { "stringId": 614, - "text": "\u5151\u6362\u6210 EGG\uff0c\u6216\u8005\u4fdd\u7559\u4f5c\u4e3a\u60a8\u7684\u6536\u85cf\u54c1\uff01" + "text": "\u5151\u6362\u6210 HIGH\uff0c\u6216\u8005\u4fdd\u7559\u4f5c\u4e3a\u60a8\u7684\u6536\u85cf\u54c1\uff01" } }, { @@ -921,7 +921,7 @@ { "data": { "stringId": 628, - "text": "\u5f53\u60a8\u5c06 NFT \u5151\u6362\u6210 EGG \u540e\uff0c\u60a8\u5c06\u6c38\u8fdc\u65e0\u6cd5\u8bbf\u95ee\u5b83\uff01" + "text": "\u5f53\u60a8\u5c06 NFT \u5151\u6362\u6210 HIGH \u540e\uff0c\u60a8\u5c06\u6c38\u8fdc\u65e0\u6cd5\u8bbf\u95ee\u5b83\uff01" } }, { @@ -951,7 +951,7 @@ { "data": { "stringId": 638, - "text": "\u5728\u4e0b\u9762\u5217\u51fa\u7684\u5230\u671f\u65e5\u4e4b\u524d\uff0c\u83b7\u80dc\u8005\u53ef\u4ee5\u5c06\u5176 NFT \u5151\u6362\u6210 EGG \u4ef7\u503c\u3002\u5982\u679c\u60a8\u5c4a\u65f6\u672a\u5151\u6362\u60a8\u7684 NFT\uff0c\u8bf7\u4e0d\u8981\u62c5\u5fc3\uff1a\u60a8\u4ecd\u53ef\u4ee5\u5c06\u5176\u4fdd\u5b58\u5728\u94b1\u5305\u4e2d\uff01" + "text": "\u5728\u4e0b\u9762\u5217\u51fa\u7684\u5230\u671f\u65e5\u4e4b\u524d\uff0c\u83b7\u80dc\u8005\u53ef\u4ee5\u5c06\u5176 NFT \u5151\u6362\u6210 HIGH \u4ef7\u503c\u3002\u5982\u679c\u60a8\u5c4a\u65f6\u672a\u5151\u6362\u60a8\u7684 NFT\uff0c\u8bf7\u4e0d\u8981\u62c5\u5fc3\uff1a\u60a8\u4ecd\u53ef\u4ee5\u5c06\u5176\u4fdd\u5b58\u5728\u94b1\u5305\u4e2d\uff01" } }, { @@ -993,7 +993,7 @@ { "data": { "stringId": 654, - "text": "\u5151\u6362\u6210 EGG" + "text": "\u5151\u6362\u6210 HIGH" } }, { @@ -1119,7 +1119,7 @@ { "data": { "stringId": 696, - "text": "\u8d28\u62bc LP \u4ee3\u5e01\u4ee5\u8d5a\u53d6 EGG" + "text": "\u8d28\u62bc LP \u4ee3\u5e01\u4ee5\u8d5a\u53d6 HIGH" } }, { @@ -1161,13 +1161,13 @@ { "data": { "stringId": 708, - "text": "EGG \u5f69\u7968" + "text": "HIGH \u5f69\u7968" } }, { "data": { "stringId": 710, - "text": "\u4f7f\u7528 EGG \u8d2d\u4e70\u5f69\u7968" + "text": "\u4f7f\u7528 HIGH \u8d2d\u4e70\u5f69\u7968" } }, { @@ -1209,7 +1209,7 @@ { "data": { "stringId": 10000, - "text": "质押费用将用于回购 EGG" + "text": "质押费用将用于回购 HIGH" } }, { @@ -1221,7 +1221,7 @@ { "data": { "stringId": 10002, - "text": "质押代币以堆叠 EGG" + "text": "质押代币以堆叠 HIGH" } }, { diff --git a/public/i18n/zh-TW.json b/public/i18n/zh-TW.json index f3cdcf791..7411b6047 100644 --- a/public/i18n/zh-TW.json +++ b/public/i18n/zh-TW.json @@ -123,13 +123,13 @@ { "data": { "stringId": 320, - "text": "\u8cea\u62bc LP \u4ee3\u5e63\u4ee5\u5806\u758a EGG" + "text": "\u8cea\u62bc LP \u4ee3\u5e63\u4ee5\u5806\u758a HIGH" } }, { "data": { "stringId": 322, - "text": "\u8cea\u62bc Egg\uff0c\u4ee5\u53d6\u5f97 Syrup\u3002" + "text": "\u8cea\u62bc High\uff0c\u4ee5\u53d6\u5f97 Syrup\u3002" } }, { @@ -153,7 +153,7 @@ { "data": { "stringId": 334, - "text": "\u6bcf\u7576\u60a8\u8cea\u62bc\u8207\u53d6\u56de EGG \u4ee3\u5e63\u6642\uff0c\u5408\u7d04\u90fd\u5c07\u81ea\u52d5\u70ba\u60a8\u6536\u5272 EGG \u734e\u52f5\uff01" + "text": "\u6bcf\u7576\u60a8\u8cea\u62bc\u8207\u53d6\u56de HIGH \u4ee3\u5e63\u6642\uff0c\u5408\u7d04\u90fd\u5c07\u81ea\u52d5\u70ba\u60a8\u6536\u5272 HIGH \u734e\u52f5\uff01" } }, { @@ -219,7 +219,7 @@ { "data": { "stringId": 358, - "text": "EGG \u50f9\u683c" + "text": "HIGH \u50f9\u683c" } }, { @@ -243,7 +243,7 @@ { "data": { "stringId": 380, - "text": "1 EGG = 1 SYRUP" + "text": "1 HIGH = 1 SYRUP" } }, { @@ -291,7 +291,7 @@ { "data": { "stringId": 400, - "text": "SYRUP \u6301\u6709\u8005\u5c07\u6309\u6bd4\u4f8b\u5206\u5f97\u6bcf\u5929 25% \u7684 EGG \u5340\u584a\u734e\u52f5 (\u6bcf\u5340\u584a 10 EGG)\uff0c\u734e\u52f5\u5c07\u65bc\u5404\u5340\u584a\u5206\u767c\u3002" + "text": "SYRUP \u6301\u6709\u8005\u5c07\u6309\u6bd4\u4f8b\u5206\u5f97\u6bcf\u5929 25% \u7684 HIGH \u5340\u584a\u734e\u52f5 (\u6bcf\u5340\u584a 10 HIGH)\uff0c\u734e\u52f5\u5c07\u65bc\u5404\u5340\u584a\u5206\u767c\u3002" } }, { @@ -351,13 +351,13 @@ { "data": { "stringId": 424, - "text": "%num% EGG" + "text": "%num% HIGH" } }, { "data": { "stringId": 426, - "text": "\u82b1\u8cbb EGG \u4f86\u8cfc\u8cb7\u7968\u5238\uff0c\u70ba\u5f69\u5238\u734e\u6c60\u505a\u51fa\u8ca2\u737b\u3002\u7968\u5238\u8cfc\u8cb7\u5728\u958b\u734e\u524d\u7d04 30 \u5206\u9418\u7d50\u675f\u3002\u5982\u679c\u60a8\u7684\u5f69\u5238\u51fa\u73fe 2\u30013 \u6216 4 \u500b\u4e2d\u734e\u865f\u78bc\u4e14\u90e8\u4f4d\u76f8\u7b26\uff0c\u5c31\u80fd\u8d0f\u53d6\u734e\u91d1\uff01\u795d\u60a8\u597d\u904b\uff01" + "text": "\u82b1\u8cbb HIGH \u4f86\u8cfc\u8cb7\u7968\u5238\uff0c\u70ba\u5f69\u5238\u734e\u6c60\u505a\u51fa\u8ca2\u737b\u3002\u7968\u5238\u8cfc\u8cb7\u5728\u958b\u734e\u524d\u7d04 30 \u5206\u9418\u7d50\u675f\u3002\u5982\u679c\u60a8\u7684\u5f69\u5238\u51fa\u73fe 2\u30013 \u6216 4 \u500b\u4e2d\u734e\u865f\u78bc\u4e14\u90e8\u4f4d\u76f8\u7b26\uff0c\u5c31\u80fd\u8d0f\u53d6\u734e\u91d1\uff01\u795d\u60a8\u597d\u904b\uff01" } }, { @@ -435,25 +435,25 @@ { "data": { "stringId": 454, - "text": "%num% EGG \u53ef\u7528" + "text": "%num% HIGH \u53ef\u7528" } }, { "data": { "stringId": 456, - "text": "EGG \u7684\u6578\u91cf\u9700\u70ba 10 \u7684\u500d\u6578" + "text": "HIGH \u7684\u6578\u91cf\u9700\u70ba 10 \u7684\u500d\u6578" } }, { "data": { "stringId": 458, - "text": "1 \u5f35\u7968\u5238 = 10 EGG" + "text": "1 \u5f35\u7968\u5238 = 10 HIGH" } }, { "data": { "stringId": 460, - "text": "\u60a8\u5c07\u82b1\u8cbb\uff1a%num% EGG" + "text": "\u60a8\u5c07\u82b1\u8cbb\uff1a%num% HIGH" } }, { @@ -483,7 +483,7 @@ { "data": { "stringId": 470, - "text": "EGG \u7d93\u60a8\u82b1\u8cbb\u65bc\u8cfc\u8cb7\u7968\u5238\u5f8c\uff0c\u5373\u7121\u6cd5\u518d\u9000\u9084\u7d66\u60a8\u3002" + "text": "HIGH \u7d93\u60a8\u82b1\u8cbb\u65bc\u8cfc\u8cb7\u7968\u5238\u5f8c\uff0c\u5373\u7121\u6cd5\u518d\u9000\u9084\u7d66\u60a8\u3002" } }, { @@ -519,7 +519,7 @@ { "data": { "stringId": 482, - "text": "\u5f85\u9818\u53d6\u7684 EGG \u734e\u91d1" + "text": "\u5f85\u9818\u53d6\u7684 HIGH \u734e\u91d1" } }, { @@ -555,13 +555,13 @@ { "data": { "stringId": 494, - "text": "\u6279\u51c6 EGG" + "text": "\u6279\u51c6 HIGH" } }, { "data": { "stringId": 496, - "text": "SYRUP \u6301\u6709\u8005\u5c07\u6309\u6bd4\u4f8b\u5206\u5f97\u6bcf\u5929 40% \u7684 EGG \u5340\u584a\u734e\u52f5 (\u6bcf\u5340\u584a 10 EGG)\uff0c\u734e\u52f5\u5c07\u65bc\u5404\u5340\u584a\u5206\u767c\u3002" + "text": "SYRUP \u6301\u6709\u8005\u5c07\u6309\u6bd4\u4f8b\u5206\u5f97\u6bcf\u5929 40% \u7684 HIGH \u5340\u584a\u734e\u52f5 (\u6bcf\u5340\u584a 10 HIGH)\uff0c\u734e\u52f5\u5c07\u65bc\u5404\u5340\u584a\u5206\u767c\u3002" } }, { @@ -579,19 +579,19 @@ { "data": { "stringId": 504, - "text": "\u60a8\u5c07\u4f7f\u7528 EGG-BNB LP \u4ee3\u5e63\u4f86\u652f\u4ed8\u65b0\u4ee3\u5e63\uff0c\u9019\u8868\u793a\u60a8\u9700\u8981\u5728\u6d41\u52d5\u6027\u8cc7\u91d1\u6c60\u4e2d\u8cea\u62bc\u7b49\u91cf\u7684 EGG \u548c BNB \u624d\u80fd\u53c3\u8207\u3002" + "text": "\u60a8\u5c07\u4f7f\u7528 HIGH-BNB LP \u4ee3\u5e63\u4f86\u652f\u4ed8\u65b0\u4ee3\u5e63\uff0c\u9019\u8868\u793a\u60a8\u9700\u8981\u5728\u6d41\u52d5\u6027\u8cc7\u91d1\u6c60\u4e2d\u8cea\u62bc\u7b49\u91cf\u7684 HIGH \u548c BNB \u624d\u80fd\u53c3\u8207\u3002" } }, { "data": { "stringId": 506, - "text": "\u53d6\u5f97 EGG-BNB LP >" + "text": "\u53d6\u5f97 HIGH-BNB LP >" } }, { "data": { "stringId": 508, - "text": "\u5c08\u6848\u53d6\u5f97 BNB \u5f8c\uff0c\u800c Goose Finance \u92b7\u6bc0 EGG\u3002" + "text": "\u5c08\u6848\u53d6\u5f97 BNB \u5f8c\uff0c\u800c Euphoria \u92b7\u6bc0 HIGH\u3002" } }, { @@ -609,7 +609,7 @@ { "data": { "stringId": 514, - "text": "\u900f\u904e\u5e63\u5b89\u667a\u80fd\u93c8\u4e0a\u6700\u5e38\u7528\u7684 AMM \u5c08\u6848\u548c\u6d41\u52d5\u6027\u63d0\u4f9b\u5546 Goose Finance \u4f86\u767c\u8d77\u60a8\u7684\u5c08\u6848\uff0c\u5c07\u60a8\u7684\u4ee3\u5e63\u76f4\u63a5\u5f15\u5165 BSC \u4e0a\u6700\u6d3b\u8e8d\u4e14\u767c\u5c55\u5feb\u901f\u7684\u793e\u7fa4\u3002" + "text": "\u900f\u904e\u5e63\u5b89\u667a\u80fd\u93c8\u4e0a\u6700\u5e38\u7528\u7684 AMM \u5c08\u6848\u548c\u6d41\u52d5\u6027\u63d0\u4f9b\u5546 Euphoria \u4f86\u767c\u8d77\u60a8\u7684\u5c08\u6848\uff0c\u5c07\u60a8\u7684\u4ee3\u5e63\u76f4\u63a5\u5f15\u5165 BSC \u4e0a\u6700\u6d3b\u8e8d\u4e14\u767c\u5c55\u5feb\u901f\u7684\u793e\u7fa4\u3002" } }, { @@ -657,7 +657,7 @@ { "data": { "stringId": 534, - "text": "Egg \u7d71\u8a08\u8cc7\u6599" + "text": "High \u7d71\u8a08\u8cc7\u6599" } }, { @@ -675,7 +675,7 @@ { "data": { "stringId": 540, - "text": "\u65b0 EGG\/\u5340\u584a" + "text": "\u65b0 HIGH\/\u5340\u584a" } }, { @@ -687,19 +687,19 @@ { "data": { "stringId": 544, - "text": "\u5f85\u6536\u5272\u7684 EGG" + "text": "\u5f85\u6536\u5272\u7684 HIGH" } }, { "data": { "stringId": 546, - "text": "\u9322\u5305\u4e2d\u7684 EGG" + "text": "\u9322\u5305\u4e2d\u7684 HIGH" } }, { "data": { "stringId": 548, - "text": "\u6b63\u5728\u6536\u96c6 EGG" + "text": "\u6b63\u5728\u6536\u96c6 HIGH" } }, { @@ -711,7 +711,7 @@ { "data": { "stringId": 552, - "text": "\u5f85\u6536\u96c6\u7684 EGG" + "text": "\u5f85\u6536\u96c6\u7684 HIGH" } }, { @@ -765,7 +765,7 @@ { "data": { "stringId": 576, - "text": "Goose Finance" + "text": "Euphoria" } }, { @@ -777,7 +777,7 @@ { "data": { "stringId": 580, - "text": "\u8cea\u62bc EGG \u4ee5\u8cfa\u53d6\u65b0\u4ee3\u5e63\u3002" + "text": "\u8cea\u62bc HIGH \u4ee5\u8cfa\u53d6\u65b0\u4ee3\u5e63\u3002" } }, { @@ -795,7 +795,7 @@ { "data": { "stringId": 586, - "text": "\u5c07\u92b7\u6bc0\u7684 EGG (USD)" + "text": "\u5c07\u92b7\u6bc0\u7684 HIGH (USD)" } }, { @@ -807,7 +807,7 @@ { "data": { "stringId": 590, - "text": "\u2b50\ufe0f \u6bcf\u7576\u60a8\u8cea\u62bc\u548c\u53d6\u56de LP \u4ee3\u5e63\u6642\uff0c\u5408\u7d04\u90fd\u6703\u81ea\u52d5\u70ba\u60a8\u6536\u5272 EGG \u734e\u52f5\uff01" + "text": "\u2b50\ufe0f \u6bcf\u7576\u60a8\u8cea\u62bc\u548c\u53d6\u56de LP \u4ee3\u5e63\u6642\uff0c\u5408\u7d04\u90fd\u6703\u81ea\u52d5\u70ba\u60a8\u6536\u5272 HIGH \u734e\u52f5\uff01" } }, { @@ -825,13 +825,13 @@ { "data": { "stringId": 596, - "text": "\u8cfc\u8cb7 EGG \u548c BNB \u4ee3\u5e63" + "text": "\u8cfc\u8cb7 HIGH \u548c BNB \u4ee3\u5e63" } }, { "data": { "stringId": 598, - "text": "\u589e\u52a0 EGG \u548c BNB \u6d41\u52d5\u6027\uff0c\u5f9e\u800c\u53d6\u5f97 EGG-BNB LP \u4ee3\u5e63" + "text": "\u589e\u52a0 HIGH \u548c BNB \u6d41\u52d5\u6027\uff0c\u5f9e\u800c\u53d6\u5f97 HIGH-BNB LP \u4ee3\u5e63" } }, { @@ -843,7 +843,7 @@ { "data": { "stringId": 602, - "text": "\u5728\u92b7\u552e\u904e\u7a0b\u4e2d\uff0c\u63d0\u4ea4\u60a8\u7684 EGG-LP \u4ee3\u5e63\u4f86\u8cfc\u8cb7 IFO \u4ee3\u5e63" + "text": "\u5728\u92b7\u552e\u904e\u7a0b\u4e2d\uff0c\u63d0\u4ea4\u60a8\u7684 HIGH-LP \u4ee3\u5e63\u4f86\u8cfc\u8cb7 IFO \u4ee3\u5e63" } }, { @@ -879,7 +879,7 @@ { "data": { "stringId": 614, - "text": "\u7576\u5834\u4ea4\u6613\u6210 EGG\uff0c\u6216\u4f5c\u70ba\u6536\u85cf\u54c1\u800c\u4fdd\u7559\uff01" + "text": "\u7576\u5834\u4ea4\u6613\u6210 HIGH\uff0c\u6216\u4f5c\u70ba\u6536\u85cf\u54c1\u800c\u4fdd\u7559\uff01" } }, { @@ -921,7 +921,7 @@ { "data": { "stringId": 628, - "text": "\u82e5\u60a8\u5c07 EGG \u7576\u5834\u4ea4\u6613\u6210 NFT \u4f86\u63a5\u6536\uff0c\u60a8\u4fbf\u6c38\u9060\u7121\u6cd5\u5b58\u53d6\u8a72 EGG\uff01" + "text": "\u82e5\u60a8\u5c07 HIGH \u7576\u5834\u4ea4\u6613\u6210 NFT \u4f86\u63a5\u6536\uff0c\u60a8\u4fbf\u6c38\u9060\u7121\u6cd5\u5b58\u53d6\u8a72 HIGH\uff01" } }, { @@ -951,7 +951,7 @@ { "data": { "stringId": 638, - "text": "\u7372\u52dd\u8005\u53ef\u4ee5\u5c07\u5176 NFT \u7576\u5834\u4ea4\u6613\u6210 EGG \u50f9\u503c\uff0c\u76f4\u5230\u4e0b\u8ff0\u7684\u5230\u671f\u65e5\u70ba\u6b62\u3002\u5982\u679c\u5230\u90a3\u6642\u60a8\u4ecd\u672a\u514c\u63db\u60a8\u7684 NFT\uff0c\u8acb\u4e0d\u8981\u64d4\u5fc3\uff0c\u60a8\u4ecd\u53ef\u4ee5\u5c07\u5176\u5132\u5b58\u5728\u9322\u5305\u4e2d\uff01" + "text": "\u7372\u52dd\u8005\u53ef\u4ee5\u5c07\u5176 NFT \u7576\u5834\u4ea4\u6613\u6210 HIGH \u50f9\u503c\uff0c\u76f4\u5230\u4e0b\u8ff0\u7684\u5230\u671f\u65e5\u70ba\u6b62\u3002\u5982\u679c\u5230\u90a3\u6642\u60a8\u4ecd\u672a\u514c\u63db\u60a8\u7684 NFT\uff0c\u8acb\u4e0d\u8981\u64d4\u5fc3\uff0c\u60a8\u4ecd\u53ef\u4ee5\u5c07\u5176\u5132\u5b58\u5728\u9322\u5305\u4e2d\uff01" } }, { @@ -993,7 +993,7 @@ { "data": { "stringId": 654, - "text": "\u7576\u5834\u4ea4\u6613\u6210 EGG" + "text": "\u7576\u5834\u4ea4\u6613\u6210 HIGH" } }, { @@ -1119,7 +1119,7 @@ { "data": { "stringId": 696, - "text": "\u8cea\u62bc LP \u4ee3\u5e63\u4ee5\u8cfa\u53d6 EGG" + "text": "\u8cea\u62bc LP \u4ee3\u5e63\u4ee5\u8cfa\u53d6 HIGH" } }, { @@ -1161,13 +1161,13 @@ { "data": { "stringId": 708, - "text": "EGG \u5f69\u5238" + "text": "HIGH \u5f69\u5238" } }, { "data": { "stringId": 710, - "text": "\u4f7f\u7528 EGG \u8cfc\u8cb7\u7968\u5238" + "text": "\u4f7f\u7528 HIGH \u8cfc\u8cb7\u7968\u5238" } }, { @@ -1209,7 +1209,7 @@ { "data": { "stringId": 10000, - "text": "質押費用將用於回購 EGG" + "text": "質押費用將用於回購 HIGH" } }, { @@ -1221,7 +1221,7 @@ { "data": { "stringId": 10002, - "text": "質押代幣以堆疊 EGG" + "text": "質押代幣以堆疊 HIGH" } }, { diff --git a/public/images/egg/LogoTextNewDark.png b/public/images/egg/LogoTextNewDark.png deleted file mode 100644 index 47e0f5374..000000000 Binary files a/public/images/egg/LogoTextNewDark.png and /dev/null differ diff --git a/public/images/egg/egg.png b/public/images/egg/egg.png deleted file mode 100644 index 4e43cc020..000000000 Binary files a/public/images/egg/egg.png and /dev/null differ diff --git a/public/images/euphoria-transparent.png b/public/images/euphoria-transparent.png new file mode 100644 index 000000000..a6370fa68 Binary files /dev/null and b/public/images/euphoria-transparent.png differ diff --git a/public/images/farms/egg-busd.png b/public/images/farms/egg-busd.png deleted file mode 100644 index cba470f1a..000000000 Binary files a/public/images/farms/egg-busd.png and /dev/null differ diff --git a/public/images/farms/egg.png b/public/images/farms/egg.png deleted file mode 100644 index 4e43cc020..000000000 Binary files a/public/images/farms/egg.png and /dev/null differ diff --git a/public/images/farms/egg_logo.png b/public/images/farms/egg_logo.png new file mode 100644 index 000000000..8441db80b Binary files /dev/null and b/public/images/farms/egg_logo.png differ diff --git a/public/images/farms/egg-bnb.png b/public/images/farms/high-bnb.png similarity index 100% rename from public/images/farms/egg-bnb.png rename to public/images/farms/high-bnb.png diff --git a/public/images/farms/high-busd.png b/public/images/farms/high-busd.png new file mode 100644 index 000000000..140b775da Binary files /dev/null and b/public/images/farms/high-busd.png differ diff --git a/public/images/farms/high.png b/public/images/farms/high.png new file mode 100644 index 000000000..7fa8c7380 Binary files /dev/null and b/public/images/farms/high.png differ diff --git a/public/images/farms/high_busd.png b/public/images/farms/high_busd.png new file mode 100644 index 000000000..140b775da Binary files /dev/null and b/public/images/farms/high_busd.png differ diff --git a/public/images/egg/1.png b/public/images/high/1.png similarity index 100% rename from public/images/egg/1.png rename to public/images/high/1.png diff --git a/public/images/egg/2.png b/public/images/high/2.png similarity index 100% rename from public/images/egg/2.png rename to public/images/high/2.png diff --git a/public/images/egg/2a.png b/public/images/high/2a.png similarity index 100% rename from public/images/egg/2a.png rename to public/images/high/2a.png diff --git a/public/images/egg/2b.png b/public/images/high/2b.png similarity index 100% rename from public/images/egg/2b.png rename to public/images/high/2b.png diff --git a/public/images/egg/3.png b/public/images/high/3.png similarity index 100% rename from public/images/egg/3.png rename to public/images/high/3.png diff --git a/public/images/egg/3b.png b/public/images/high/3b.png similarity index 100% rename from public/images/egg/3b.png rename to public/images/high/3b.png diff --git a/public/images/egg/4.png b/public/images/high/4.png similarity index 100% rename from public/images/egg/4.png rename to public/images/high/4.png diff --git a/public/images/egg/5.png b/public/images/high/5.png similarity index 100% rename from public/images/egg/5.png rename to public/images/high/5.png diff --git a/public/images/egg/6.png b/public/images/high/6.png similarity index 100% rename from public/images/egg/6.png rename to public/images/high/6.png diff --git a/public/images/egg/7.png b/public/images/high/7.png similarity index 100% rename from public/images/egg/7.png rename to public/images/high/7.png diff --git a/public/images/egg/8.png b/public/images/high/8.png similarity index 100% rename from public/images/egg/8.png rename to public/images/high/8.png diff --git a/public/images/egg/9.png b/public/images/high/9.png similarity index 100% rename from public/images/egg/9.png rename to public/images/high/9.png diff --git a/public/images/egg/BTCB.png b/public/images/high/BTCB.png similarity index 100% rename from public/images/egg/BTCB.png rename to public/images/high/BTCB.png diff --git a/public/images/egg/DAI.png b/public/images/high/DAI.png similarity index 100% rename from public/images/egg/DAI.png rename to public/images/high/DAI.png diff --git a/public/images/egg/DOT.png b/public/images/high/DOT.png similarity index 100% rename from public/images/egg/DOT.png rename to public/images/high/DOT.png diff --git a/public/images/egg/ETH.png b/public/images/high/ETH.png similarity index 100% rename from public/images/egg/ETH.png rename to public/images/high/ETH.png diff --git a/public/images/high/LogoTextNewDark.png b/public/images/high/LogoTextNewDark.png new file mode 100644 index 000000000..a9125e95d Binary files /dev/null and b/public/images/high/LogoTextNewDark.png differ diff --git a/public/images/egg/LogoTextNewWhite.png b/public/images/high/LogoTextNewWhite.png similarity index 100% rename from public/images/egg/LogoTextNewWhite.png rename to public/images/high/LogoTextNewWhite.png diff --git a/public/images/egg/USDC.png b/public/images/high/USDC.png similarity index 100% rename from public/images/egg/USDC.png rename to public/images/high/USDC.png diff --git a/public/images/egg/USDT.png b/public/images/high/USDT.png similarity index 100% rename from public/images/egg/USDT.png rename to public/images/high/USDT.png diff --git a/public/images/egg/bnb.png b/public/images/high/bnb.png similarity index 100% rename from public/images/egg/bnb.png rename to public/images/high/bnb.png diff --git a/public/images/egg/busd.png b/public/images/high/busd.png similarity index 100% rename from public/images/egg/busd.png rename to public/images/high/busd.png diff --git a/public/images/egg/cake.svg b/public/images/high/cake.svg similarity index 100% rename from public/images/egg/cake.svg rename to public/images/high/cake.svg diff --git a/public/images/egg/eggShowcase.png b/public/images/high/eggShowcase.png similarity index 100% rename from public/images/egg/eggShowcase.png rename to public/images/high/eggShowcase.png diff --git a/public/images/egg/hero.png b/public/images/high/hero.png similarity index 100% rename from public/images/egg/hero.png rename to public/images/high/hero.png diff --git a/public/images/high/high.png b/public/images/high/high.png new file mode 100644 index 000000000..7fa8c7380 Binary files /dev/null and b/public/images/high/high.png differ diff --git a/public/images/egg/logo.png b/public/images/high/logo.png similarity index 100% rename from public/images/egg/logo.png rename to public/images/high/logo.png diff --git a/public/images/tokens/AVAX.png b/public/images/tokens/AVAX.png new file mode 100644 index 000000000..13de01087 Binary files /dev/null and b/public/images/tokens/AVAX.png differ diff --git a/public/images/tokens/BLISS.png b/public/images/tokens/BLISS.png new file mode 100644 index 000000000..27e0c6a83 Binary files /dev/null and b/public/images/tokens/BLISS.png differ diff --git a/public/images/tokens/HIGH_Logo.png b/public/images/tokens/HIGH_Logo.png new file mode 100644 index 000000000..d8bd9f7ff Binary files /dev/null and b/public/images/tokens/HIGH_Logo.png differ diff --git a/public/images/tokens/USDC.png b/public/images/tokens/USDC.png new file mode 100644 index 000000000..eeafab146 Binary files /dev/null and b/public/images/tokens/USDC.png differ diff --git a/public/images/tokens/USDT.png b/public/images/tokens/USDT.png new file mode 100644 index 000000000..e2a591ddb Binary files /dev/null and b/public/images/tokens/USDT.png differ diff --git a/public/images/tokens/WBTC.png b/public/images/tokens/WBTC.png new file mode 100644 index 000000000..89ae68be8 Binary files /dev/null and b/public/images/tokens/WBTC.png differ diff --git a/public/images/tokens/WETH.png b/public/images/tokens/WETH.png new file mode 100644 index 000000000..baf68e9a8 Binary files /dev/null and b/public/images/tokens/WETH.png differ diff --git a/public/index.html b/public/index.html index bfb01964b..b4501bec0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,34 +1,33 @@ - - - - - - - - - - - - - Goose Finance - - - - - - - - - - -
- - + + + + + + + + + + + + + + + 🌿 High Euphoria + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/public/logo.png b/public/logo.png index 4e43cc020..e59d7053e 100644 Binary files a/public/logo.png and b/public/logo.png differ diff --git a/public/manifest.json b/public/manifest.json index 8a905ed76..be2fe324d 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,7 +1,7 @@ { - "short_name": "Goose Finance", - "name": "Goose Finance", - "description": "Farm EGG with LP Tokens", + "short_name": "Euphoria", + "name": "Euphoria", + "description": "Farm HIGH with LP Tokens", "icons": [ { "src": "favicon.ico", diff --git a/src/App.tsx b/src/App.tsx index ed3aa4b10..25cd38573 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,13 +8,14 @@ import GlobalStyle from './style/Global' import Menu from './components/Menu' import PageLoader from './components/PageLoader' import NftGlobalNotification from './views/Nft/components/NftGlobalNotification' +import MainHeader from './components/layout/MainHeader'; // Route-based code splitting // Only pool is included in the main bundle because of it's the most visited page' const Home = lazy(() => import('./views/Home')) const Farms = lazy(() => import('./views/Farms')) // const Lottery = lazy(() => import('./views/Lottery')) -// const Pools = lazy(() => import('./views/Pools')) +const Pools = lazy(() => import('./views/Pools')) // const Ifos = lazy(() => import('./views/Ifos')) const NotFound = lazy(() => import('./views/NotFound')) // const Nft = lazy(() => import('./views/Nft')) @@ -39,7 +40,7 @@ const App: React.FC = () => { - + }> @@ -49,11 +50,11 @@ const App: React.FC = () => { - + + + + - {/* */} - {/* */} - {/* */} {/* */} {/* */} {/* */} @@ -74,7 +75,6 @@ const App: React.FC = () => { - ) diff --git a/src/components/ExpandableSectionButton/ExpandableSectionButton.tsx b/src/components/ExpandableSectionButton/ExpandableSectionButton.tsx index c7dc493a3..e2400b3cf 100644 --- a/src/components/ExpandableSectionButton/ExpandableSectionButton.tsx +++ b/src/components/ExpandableSectionButton/ExpandableSectionButton.tsx @@ -9,19 +9,22 @@ export interface ExpandableSectionButtonProps { const Wrapper = styled.div` display: flex; - align-items: center; - justify-content: center; cursor: pointer; - + padding:0px 20px; + color:#CCCCCC; svg { - fill: ${({ theme }) => theme.colors.primary}; + fill: #CCCCCC; } ` const ExpandableSectionButton: React.FC = ({ onClick, expanded }) => { return ( onClick()}> - + {expanded ? 'Hide' : 'Details'} {expanded ? : } diff --git a/src/components/Menu/config.ts b/src/components/Menu/config.ts index e705d91d9..ec36f4868 100644 --- a/src/components/Menu/config.ts +++ b/src/components/Menu/config.ts @@ -12,11 +12,11 @@ const config: MenuEntry[] = [ items: [ { label: 'Exchange', - href: 'https://exchange.goosedefi.com/', + href: 'https://app.pangolin.exchange', }, { label: 'Liquidity', - href: 'https://exchange.goosedefi.com/#/pool', + href: 'https://app.pangolin.exchange/#/pool', }, ], }, @@ -26,7 +26,7 @@ const config: MenuEntry[] = [ href: '/farms', }, { - label: 'Nests', + label: 'Pools', icon: 'PoolIcon', href: '/nests', }, @@ -45,35 +45,35 @@ const config: MenuEntry[] = [ // icon: 'NftIcon', // href: '/nft', // }, - { - label: 'Info', - icon: 'InfoIcon', - items: [ - { - label: 'PancakeSwap', - href: 'https://pancakeswap.info/token/0xF952Fc3ca7325Cc27D15885d37117676d25BfdA6', - }, - { - label: 'CoinGecko', - href: 'https://www.coingecko.com/en/coins/goose-finance', - }, - { - label: 'CoinMarketCap', - href: 'https://coinmarketcap.com/currencies/goose-finance/', - }, - { - label: 'AstroTools', - href: 'https://app.astrotools.io/pancake-pair-explorer/0x19e7cbecdd23a16dfa5573df54d98f7caae03019', - }, - ], - }, + // { + // label: 'Info', + // icon: 'InfoIcon', + // items: [ + // { + // label: 'PancakeSwap', + // href: 'https://pancakeswap.info/token/0xF13ff09714A66E56ff90f0A5189d4f4A5a1cB214', + // }, + // { + // label: 'CoinGecko', + // href: 'https://www.coingecko.com/en/coins/goose-finance', + // }, + // { + // label: 'CoinMarketCap', + // href: 'https://coinmarketcap.com/currencies/goose-finance/', + // }, + // { + // label: 'AstroTools', + // href: 'https://app.astrotools.io/pancake-pair-explorer/0x19e7cbecdd23a16dfa5573df54d98f7caae03019', + // }, + // ], + // }, { label: 'More', icon: 'MoreIcon', items: [ { label: 'Github', - href: 'https://github.com/goosedefi/', + href: 'https://github.com/avax-yield/', }, { label: 'Docs', @@ -85,21 +85,6 @@ const config: MenuEntry[] = [ }, ], }, - { - label: 'Partnerships/IFO', - icon: 'GooseIcon', - href: 'https://docs.google.com/forms/d/e/1FAIpQLSe7ycrw8Dq4C5Vjc9WNlRtTxEhFDB1Ny6jlAByZ2Y6qBo7SKg/viewform?usp=sf_link', - }, - { - label: 'Audit by Hacken', - icon: 'AuditIcon', - href: 'https://www.goosedefi.com/files/hackenAudit.pdf', - }, - { - label: 'Audit by CertiK', - icon: 'AuditIcon', - href: 'https://certik.org/projects/goose-finance', - }, ] export default config diff --git a/src/components/UnlockButton.tsx b/src/components/UnlockButton.tsx index 7a86f05a0..7b9a8ab4d 100644 --- a/src/components/UnlockButton.tsx +++ b/src/components/UnlockButton.tsx @@ -9,7 +9,13 @@ const UnlockButton = (props) => { const { onPresentConnectModal } = useWalletModal(connect, reset) return ( - ) diff --git a/src/components/Value/Value.tsx b/src/components/Value/Value.tsx index 94ff07464..3ff395c17 100644 --- a/src/components/Value/Value.tsx +++ b/src/components/Value/Value.tsx @@ -42,7 +42,7 @@ const Value: React.FC = ({ value, decimals, fontSize = '30px' }) => } const StyledValue = styled.div` - font-family: 'Roboto Mono', monospace; + font-family: 'IBM Plex Mono', monospace; color: ${(props) => props.theme.colors.primary}; font-size: 30px; font-weight: 900; diff --git a/src/components/layout/MainHeader.tsx b/src/components/layout/MainHeader.tsx new file mode 100644 index 000000000..6f6e9ffb2 --- /dev/null +++ b/src/components/layout/MainHeader.tsx @@ -0,0 +1,167 @@ +import styled from 'styled-components' +import { Link, useLocation } from 'react-router-dom' + +import React, { useCallback, useState } from 'react' +import classnames from "classnames"; + +const HeaderContainer = styled.div` + padding: 8px 10%; + display: flex; + justify-content: space-between; + align-items: center; + h1 { + font-size: 16px; + text-transform: uppercase; + color: #fff; + } + .logoContainer { + margin-right: 30px; + } + + .header_box { + padding: 30px 5px 30px 5px; + border-top: 5px solid rgba(255, 255, 255, 0); + } + + .header_box.active { + border-top: 5px solid #30BAC6; + } + + .nav_container { + ul { + list-style: none; + li { + float: left; + margin: 0px 10px; + + + + .header_link { + color: #fff; + font-family: 'IBM Plex Mono', monospace; + font-size: 18px; + text-transform: uppercase; + font-style: normal; + } + + .header_link.active { + color: #30BAC6; + font-style: bold; + font-weight: 800; + } + } + } + } + .bottomHeader { + padding: 8px 0px; + background: red; + } +` +const BottomHeader = styled.div` + font-family: 'IBM Plex Mono Italic', monospace; + font-size: 18px; + text-align: center; + padding: 18px; + font-style: italic; + background: rgb(241, 104, 243); + background: linear-gradient(137deg, rgba(241, 104, 243, 1) 0%, rgba(159, 229, 255, 1) 100%); +` +const ConnectButton = styled.button` + padding: 12px 22px; + border: none; + border: 1px solid #30bac6; + border-radius: 4px; + background: #0a2027; + font-size: 12px; + color: #fff; + display: flex; +` +const EggContainer = styled.div` + display: flex; + padding: 0px 10px; + border: 1px solid #d00dd3; + flex-direction: row; + margin-right: 5px; + border-radius: 4px; + align-items: center; + .count { + font-size: 14px; + font-weight: 600; + color: #fff; + margin-left: 10px; + } +` +export interface HeaderProps { + lpLabel?: string +} + +function Mainheader(props: HeaderProps) { + const [activePage, setActivePage] = useState('farms') + + const location = useLocation(); + + return ( +
+ +
+
+

+ + EUPHORIA + +

+
+
+
    +
  • +
    + + Trade + +
    +
  • +
  • +
    + + Farms + +
    +
  • +
  • +
    + + Pools + +
    +
  • +
  • +
    + + More + +
    +
  • +
+
+
+ +
+ +
+ bliss logo +
+
$0.126
+
+ Connect Wallet +
+
+ Launching soon... +
+ ) +} + +export default Mainheader diff --git a/src/config/abi/masterchef.json b/src/config/abi/masterchef.json index 889e86697..f98381f60 100644 --- a/src/config/abi/masterchef.json +++ b/src/config/abi/masterchef.json @@ -154,7 +154,7 @@ }, { "inputs": [], - "name": "egg", + "name": "high", "outputs": [ { "internalType": "contract EggToken", diff --git a/src/config/constants/contracts.ts b/src/config/constants/contracts.ts index dba7d0e24..58fef6638 100644 --- a/src/config/constants/contracts.ts +++ b/src/config/constants/contracts.ts @@ -1,14 +1,14 @@ export default { cake: { - 56: '0xF952Fc3ca7325Cc27D15885d37117676d25BfdA6', + 56: '0xF13ff09714A66E56ff90f0A5189d4f4A5a1cB214', 97: '', }, masterChef: { - 56: '0xe70E9185F5ea7Ba3C5d63705784D8563017f2E57', + 56: '0xa0fEB6783F94561471fD3218A6948599223F0a53', 97: '', }, wbnb: { - 56: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', + 56: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', 97: '', }, lottery: { @@ -24,7 +24,7 @@ export default { 97: '0x67ADCB4dF3931b0C5Da724058ADC2174a9844412', }, busd: { - 56: '0xe9e7cea3dedca5984780bafc599bd69add087d56', + 56: '0xc7198437980c041c805a1edcba50c1ce5db95118', 97: '', }, } diff --git a/src/config/constants/farms.ts b/src/config/constants/farms.ts index d0717a880..7b7f26fd4 100644 --- a/src/config/constants/farms.ts +++ b/src/config/constants/farms.ts @@ -5,15 +5,17 @@ const farms: FarmConfig[] = [ { pid: 0, risk: 5, - lpSymbol: 'EGG-BUSD LP', + lpSymbol: 'BLISS-AVAX LP', lpAddresses: { 97: '', 56: '0x19e7cbecdd23a16dfa5573df54d98f7caae03019', }, - tokenSymbol: 'EGG', + tokenSymbol: 'HIGH', + firstTokenImage: 'BLISS', + secondTokenSymbol: 'AVAX', tokenAddresses: { 97: '', - 56: '0xf952fc3ca7325cc27d15885d37117676d25bfda6', + 56: '0xF13ff09714A66E56ff90f0A5189d4f4A5a1cB214', }, quoteTokenSymbol: QuoteToken.BUSD, quoteTokenAdresses: contracts.busd, @@ -21,159 +23,17 @@ const farms: FarmConfig[] = [ { pid: 1, risk: 5, - lpSymbol: 'EGG-BNB LP', + lpSymbol: 'BLISS-USDC LP', lpAddresses: { 97: '', 56: '0xd1b59d11316e87c3a0a069e80f590ba35cd8d8d3', }, - tokenSymbol: 'EGG', + tokenSymbol: 'HIGH', + firstTokenImage: 'BLISS', + secondTokenSymbol: 'USDC', tokenAddresses: { 97: '', - 56: '0xf952fc3ca7325cc27d15885d37117676d25bfda6', - }, - quoteTokenSymbol: QuoteToken.BNB, - quoteTokenAdresses: contracts.wbnb, - }, - { - pid: 2, - risk: 3, - lpSymbol: 'BNB-BUSD LP', - lpAddresses: { - 97: '', - 56: '0x1b96b92314c44b159149f7e0303511fb2fc4774f', - }, - tokenSymbol: 'BNB', - tokenAddresses: { - 97: '', - 56: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', - }, - quoteTokenSymbol: QuoteToken.BUSD, - quoteTokenAdresses: contracts.busd, - }, - { - pid: 3, - risk: 1, - lpSymbol: 'USDT-BUSD LP', - lpAddresses: { - 97: '', - 56: '0xc15fa3e22c912a276550f3e5fe3b0deb87b55acd', - }, - tokenSymbol: 'USDT', - tokenAddresses: { - 97: '', - 56: '0x55d398326f99059ff775485246999027b3197955', - }, - quoteTokenSymbol: QuoteToken.BUSD, - quoteTokenAdresses: contracts.busd, - }, - { - pid: 4, - risk: 2, - lpSymbol: 'BTCB-BNB LP', - lpAddresses: { - 97: '', - 56: '0x7561eee90e24f3b348e1087a005f78b4c8453524', - }, - tokenSymbol: 'BTCB', - tokenAddresses: { - 97: '', - 56: '0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c', - }, - quoteTokenSymbol: QuoteToken.BNB, - quoteTokenAdresses: contracts.wbnb, - }, - { - pid: 5, - risk: 2, - lpSymbol: 'ETH-BNB LP', - lpAddresses: { - 97: '', - 56: '0x70d8929d04b60af4fb9b58713ebcf18765ade422', - }, - tokenSymbol: 'ETH', - tokenAddresses: { - 97: '', - 56: '0x2170ed0880ac9a755fd29b2688956bd959f933f8', - }, - quoteTokenSymbol: QuoteToken.BNB, - quoteTokenAdresses: contracts.wbnb, - }, - { - pid: 6, - risk: 1, - lpSymbol: 'DAI-BUSD LP', - lpAddresses: { - 97: '', - 56: '0x3ab77e40340ab084c3e23be8e5a6f7afed9d41dc', - }, - tokenSymbol: 'DAI', - tokenAddresses: { - 97: '', - 56: '0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3', - }, - quoteTokenSymbol: QuoteToken.BUSD, - quoteTokenAdresses: contracts.busd, - }, - { - pid: 7, - risk: 1, - lpSymbol: 'USDC-BUSD LP', - lpAddresses: { - 97: '', - 56: '0x680dd100e4b394bda26a59dd5c119a391e747d18', - }, - tokenSymbol: 'USDC', - tokenAddresses: { - 97: '', - 56: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d', - }, - quoteTokenSymbol: QuoteToken.BUSD, - quoteTokenAdresses: contracts.busd, - }, - { - pid: 9, - risk: 3, - lpSymbol: 'DOT-BNB LP', - lpAddresses: { - 97: '', - 56: '0xbcd62661a6b1ded703585d3af7d7649ef4dcdb5c', - }, - tokenSymbol: 'DOT', - tokenAddresses: { - 97: '', - 56: '0x7083609fce4d1d8dc0c979aab8c869ea2c873402', - }, - quoteTokenSymbol: QuoteToken.BNB, - quoteTokenAdresses: contracts.wbnb, - }, - { - pid: 10, - risk: 4, - lpSymbol: 'CAKE-BUSD LP', - lpAddresses: { - 97: '', - 56: '0x0ed8e0a2d99643e1e65cca22ed4424090b8b7458', - }, - tokenSymbol: 'CAKE', - tokenAddresses: { - 97: '', - 56: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', - }, - quoteTokenSymbol: QuoteToken.BUSD, - quoteTokenAdresses: contracts.busd, - }, - { - pid: 11, - risk: 4, - lpSymbol: 'CAKE-BNB LP', - lpAddresses: { - 97: '', - 56: '0xa527a61703d82139f8a06bc30097cc9caa2df5a6', - }, - tokenSymbol: 'CAKE', - tokenAddresses: { - 97: '', - 56: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + 56: '0xF13ff09714A66E56ff90f0A5189d4f4A5a1cB214', }, quoteTokenSymbol: QuoteToken.BNB, quoteTokenAdresses: contracts.wbnb, @@ -182,15 +42,15 @@ const farms: FarmConfig[] = [ pid: 12, risk: 5, isTokenOnly: true, - lpSymbol: 'EGG', + lpSymbol: 'HIGH', lpAddresses: { 97: '', - 56: '0x19e7cbecdd23a16dfa5573df54d98f7caae03019', // EGG-BUSD LP + 56: '0x19e7cbecdd23a16dfa5573df54d98f7caae03019', // HIGH-BUSD LP }, - tokenSymbol: 'EGG', + tokenSymbol: 'HIGH', tokenAddresses: { 97: '', - 56: '0xf952fc3ca7325cc27d15885d37117676d25bfda6', + 56: '0xF13ff09714A66E56ff90f0A5189d4f4A5a1cB214', }, quoteTokenSymbol: QuoteToken.BUSD, quoteTokenAdresses: contracts.busd, @@ -202,12 +62,12 @@ const farms: FarmConfig[] = [ lpSymbol: 'BUSD', lpAddresses: { 97: '', - 56: '0x19e7cbecdd23a16dfa5573df54d98f7caae03019', // EGG-BUSD LP (BUSD-BUSD will ignore) + 56: '0x19e7cbecdd23a16dfa5573df54d98f7caae03019', // HIGH-BUSD LP (BUSD-BUSD will ignore) }, tokenSymbol: 'BUSD', tokenAddresses: { 97: '', - 56: '0xe9e7cea3dedca5984780bafc599bd69add087d56', + 56: '0xc7198437980c041c805a1edcba50c1ce5db95118', }, quoteTokenSymbol: QuoteToken.BUSD, quoteTokenAdresses: contracts.busd, @@ -224,7 +84,7 @@ const farms: FarmConfig[] = [ tokenSymbol: 'WBNB', tokenAddresses: { 97: '', - 56: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', + 56: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', }, quoteTokenSymbol: QuoteToken.BUSD, quoteTokenAdresses: contracts.busd, diff --git a/src/config/constants/pools.ts b/src/config/constants/pools.ts index 246770af0..052c1b6ff 100644 --- a/src/config/constants/pools.ts +++ b/src/config/constants/pools.ts @@ -1,40 +1,125 @@ import { PoolConfig, QuoteToken, PoolCategory } from './types' const pools: PoolConfig[] = [ - // { - // sousId: 0, - // tokenName: 'CAKE', - // stakingTokenName: QuoteToken.CAKE, - // stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', - // contractAddress: { - // 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', - // 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', - // }, - // poolCategory: PoolCategory.CORE, - // projectLink: 'https://pancakeswap.finance/', - // harvest: true, - // tokenPerBlock: '10', - // sortOrder: 1, - // isFinished: false, - // tokenDecimals: 18, - // }, - // { - // sousId: 1, - // tokenName: 'TWT', - // stakingTokenName: QuoteToken.SYRUP, - // stakingTokenAddress: '0x009cF7bC57584b7998236eff51b98A168DceA9B0', - // contractAddress: { - // 97: '0xAfd61Dc94f11A70Ae110dC0E0F2061Af5633061A', - // 56: '0xAfd61Dc94f11A70Ae110dC0E0F2061Af5633061A', - // }, - // poolCategory: PoolCategory.CORE, - // projectLink: 'https://trustwallet.com/', - // harvest: true, - // tokenPerBlock: '20', - // sortOrder: 999, - // isFinished: true, - // tokenDecimals: 18, - // }, + { + sousId: 0, + tokenName: 'BLISS', + stakingTokenName: QuoteToken.CAKE, + stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + contractAddress: { + 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', + 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://pancakeswap.finance/', + harvest: true, + tokenPerBlock: '10', + sortOrder: 1, + isFinished: false, + tokenDecimals: 18, + }, + { + sousId: 1, + tokenName: 'TWT', + stakingTokenName: QuoteToken.SYRUP, + stakingTokenAddress: '0x009cF7bC57584b7998236eff51b98A168DceA9B0', + contractAddress: { + 97: '0xAfd61Dc94f11A70Ae110dC0E0F2061Af5633061A', + 56: '0xAfd61Dc94f11A70Ae110dC0E0F2061Af5633061A', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://trustwallet.com/', + harvest: true, + tokenPerBlock: '20', + sortOrder: 999, + isFinished: true, + tokenDecimals: 18, + }, + { + sousId: 2, + tokenName: 'WETH', + stakingTokenName: QuoteToken.CAKE, + stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + contractAddress: { + 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', + 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://pancakeswap.finance/', + harvest: true, + tokenPerBlock: '10', + sortOrder: 1, + isFinished: false, + tokenDecimals: 18, + }, + { + sousId: 3, + tokenName: 'AVAX', + stakingTokenName: QuoteToken.CAKE, + stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + contractAddress: { + 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', + 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://pancakeswap.finance/', + harvest: true, + tokenPerBlock: '10', + sortOrder: 1, + isFinished: false, + tokenDecimals: 18, + }, + { + sousId: 4, + tokenName: 'WBTC', + stakingTokenName: QuoteToken.CAKE, + stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + contractAddress: { + 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', + 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://pancakeswap.finance/', + harvest: true, + tokenPerBlock: '10', + sortOrder: 1, + isFinished: false, + tokenDecimals: 18, + }, + { + sousId: 5, + tokenName: 'USDC', + stakingTokenName: QuoteToken.CAKE, + stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + contractAddress: { + 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', + 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://pancakeswap.finance/', + harvest: true, + tokenPerBlock: '10', + sortOrder: 1, + isFinished: false, + tokenDecimals: 18, + }, + { + sousId: 6, + tokenName: 'USDT', + stakingTokenName: QuoteToken.CAKE, + stakingTokenAddress: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82', + contractAddress: { + 97: '0xd3af5fe61dbaf8f73149bfcfa9fb653ff096029a', + 56: '0x73feaa1eE314F8c655E354234017bE2193C9E24E', + }, + poolCategory: PoolCategory.CORE, + projectLink: 'https://pancakeswap.finance/', + harvest: true, + tokenPerBlock: '10', + sortOrder: 1, + isFinished: false, + tokenDecimals: 18, + }, ] export default pools diff --git a/src/config/constants/types.ts b/src/config/constants/types.ts index 380b7b2a2..8aa26de00 100644 --- a/src/config/constants/types.ts +++ b/src/config/constants/types.ts @@ -50,6 +50,8 @@ export interface FarmConfig { multiplier?: string isTokenOnly?: boolean isCommunity?: boolean + firstTokenImage?: string + secondTokenSymbol?: string risk: number dual?: { rewardPerBlock: number diff --git a/src/config/localisation/languageCodes.ts b/src/config/localisation/languageCodes.ts index 4d66634e8..5ac737e6d 100644 --- a/src/config/localisation/languageCodes.ts +++ b/src/config/localisation/languageCodes.ts @@ -32,8 +32,8 @@ export const allLanguages = [ EN, // AR, // CA, - ZHCN, - ZHTW, + // ZHCN, + // ZHTW, // CS, // DA, // DE, diff --git a/src/contexts/ThemeContext.tsx b/src/contexts/ThemeContext.tsx index 9043d4630..6c4a4e207 100644 --- a/src/contexts/ThemeContext.tsx +++ b/src/contexts/ThemeContext.tsx @@ -1,6 +1,22 @@ import React, { useState } from 'react' import { ThemeProvider as SCThemeProvider } from 'styled-components' -import { light, dark } from '@pancakeswap-libs/uikit' +import { light as lightOrigin, dark as darkOrigin, PancakeTheme } from '@pancakeswap-libs/uikit' + +// customize dark theme +const dark: PancakeTheme = darkOrigin; +dark.toggle.handleBackground = 'white'; +dark.colors.input = '#292933'; +dark.colors.success = '#cdcdcd'; +dark.card.background = '#27262c'; +dark.colors.text = 'white'; + +// customize light theme +const light: PancakeTheme = lightOrigin; +light.toggle.handleBackground = 'white'; +light.colors.input = '#292933'; +light.colors.success = '#cdcdcd'; +light.card.background = '#27262c'; +light.colors.text = 'white'; const CACHE_KEY = 'IS_DARK' @@ -12,6 +28,8 @@ const ThemeContextProvider = ({ children }) => { return isDarkUserSetting ? JSON.parse(isDarkUserSetting) : false }) + + const toggleTheme = () => { setIsDark((prevState) => { localStorage.setItem(CACHE_KEY, JSON.stringify(!prevState)) diff --git a/src/state/hooks.ts b/src/state/hooks.ts index e614020e5..5b1218a35 100644 --- a/src/state/hooks.ts +++ b/src/state/hooks.ts @@ -45,7 +45,6 @@ export const useFarmUser = (pid) => { } } - // Pools export const usePools = (account): Pool[] => { @@ -79,29 +78,32 @@ export const usePriceCakeBusd = (): BigNumber => { // const bnbPriceUSD = usePriceBnbBusd() // const farm = useFarmFromPid(pid) // return farm.tokenPriceVsQuote ? bnbPriceUSD.times(farm.tokenPriceVsQuote) : ZERO - const pid = 0; // EGG-BUSD LP - const farm = useFarmFromPid(pid); - return farm.tokenPriceVsQuote ? new BigNumber(farm.tokenPriceVsQuote) : ZERO; + const pid = 0 // HIGH-BUSD LP + const farm = useFarmFromPid(pid) + return farm.tokenPriceVsQuote ? new BigNumber(farm.tokenPriceVsQuote) : ZERO } export const useTotalValue = (): BigNumber => { - const farms = useFarms(); - const bnbPrice = usePriceBnbBusd(); - const cakePrice = usePriceCakeBusd(); - let value = new BigNumber(0); + const farms = useFarms() + // const bnbPrice = usePriceBnbBusd(); + const cakePrice = usePriceCakeBusd() + let value = new BigNumber(0) for (let i = 0; i < farms.length; i++) { const farm = farms[i] if (farm.lpTotalInQuoteToken) { - let val; - if (farm.quoteTokenSymbol === QuoteToken.BNB) { + let val + /* if (farm.quoteTokenSymbol === QuoteToken.BNB) { val = (bnbPrice.times(farm.lpTotalInQuoteToken)); - }else if (farm.quoteTokenSymbol === QuoteToken.CAKE) { - val = (cakePrice.times(farm.lpTotalInQuoteToken)); - }else{ - val = (farm.lpTotalInQuoteToken); + }else */ + if ( + farm.quoteTokenSymbol === QuoteToken.CAKE + ) { + val = cakePrice.times(farm.lpTotalInQuoteToken) + } else { + val = farm.lpTotalInQuoteToken } - value = value.plus(val); + value = value.plus(val) } } - return value; -} \ No newline at end of file + return value +} diff --git a/src/style/Global.tsx b/src/style/Global.tsx index 9ad075996..a11df4ea6 100644 --- a/src/style/Global.tsx +++ b/src/style/Global.tsx @@ -7,9 +7,10 @@ declare module 'styled-components' { export interface DefaultTheme extends PancakeTheme {} } + const GlobalStyle = createGlobalStyle` * { - font-family: 'Kanit', sans-serif; + font-family: 'IBM Plex Mono', monospace; } body { background-color: ${({ theme }) => theme.colors.background}; @@ -21,4 +22,6 @@ const GlobalStyle = createGlobalStyle` } ` + + export default GlobalStyle diff --git a/src/views/Farms/Farms.tsx b/src/views/Farms/Farms.tsx index 02d5118fc..d95bc4754 100644 --- a/src/views/Farms/Farms.tsx +++ b/src/views/Farms/Farms.tsx @@ -26,7 +26,7 @@ const Farms: React.FC = (farmsProps) => { const TranslateString = useI18n() const farmsLP = useFarms() const cakePrice = usePriceCakeBusd() - const bnbPrice = usePriceBnbBusd() + // const bnbPrice = usePriceBnbBusd() const { account, ethereum }: { account: string; ethereum: provider } = useWallet() const {tokenMode} = farmsProps; @@ -62,11 +62,11 @@ const Farms: React.FC = (farmsProps) => { let apy = cakePrice.times(cakeRewardPerYear); - let totalValue = new BigNumber(farm.lpTotalInQuoteToken || 0); + const totalValue = new BigNumber(farm.lpTotalInQuoteToken || 0); - if (farm.quoteTokenSymbol === QuoteToken.BNB) { + /* if (farm.quoteTokenSymbol === QuoteToken.BNB) { totalValue = totalValue.times(bnbPrice); - } + } */ if(totalValue.comparedTo(0) > 0){ apy = apy.div(totalValue); @@ -79,32 +79,31 @@ const Farms: React.FC = (farmsProps) => { key={farm.pid} farm={farm} removed={removed} - bnbPrice={bnbPrice} + // bnbPrice={bnbPrice} cakePrice={cakePrice} ethereum={ethereum} account={account} /> )) }, - [bnbPrice, account, cakePrice, ethereum], + [/* bnbPrice, */ account, cakePrice, ethereum], ) return ( - + { tokenMode ? - TranslateString(10002, 'Stake tokens to earn EGG') + TranslateString(10002, 'Stake tokens to earn HIGH') : - TranslateString(320, 'Stake LP tokens to earn EGG') + TranslateString(320, 'Stake LP tokens to earn HIGH') } - - {TranslateString(10000, 'Deposit Fee will be used to buyback EGG')} + + {TranslateString(10000, 'Stake HIGH to earn BLISS once event ends')}
- {stakedOnly ? farmsList(stakedOnlyFarms, false) : farmsList(activeFarms, false)} @@ -114,7 +113,6 @@ const Farms: React.FC = (farmsProps) => {
- illustration
) } diff --git a/src/views/Farms/components/FarmCard/ApyCalculatorModal.tsx b/src/views/Farms/components/FarmCard/ApyCalculatorModal.tsx index c511ef061..f6fd84f49 100644 --- a/src/views/Farms/components/FarmCard/ApyCalculatorModal.tsx +++ b/src/views/Farms/components/FarmCard/ApyCalculatorModal.tsx @@ -67,7 +67,7 @@ const ApyCalculatorModal: React.FC = ({ - {TranslateString(999, 'EGG per $1000')} + {TranslateString(999, 'HIGH per $1000')} {/* 1 day row */} diff --git a/src/views/Farms/components/FarmCard/CardActionsContainer.tsx b/src/views/Farms/components/FarmCard/CardActionsContainer.tsx index 07816bc8f..f308827e5 100644 --- a/src/views/Farms/components/FarmCard/CardActionsContainer.tsx +++ b/src/views/Farms/components/FarmCard/CardActionsContainer.tsx @@ -65,25 +65,10 @@ const CardActions: React.FC = ({ farm, ethereum, account } } return ( - - - - {/* TODO: Is there a way to get a dynamic value here from useFarmFromSymbol? */} - EGG - - - {TranslateString(999, 'Earned')} - - - - - - {lpName} - - - {TranslateString(999, 'Staked')} - - + + {/* */} {!account ? : renderApprovalOrStakeButton()} ) diff --git a/src/views/Farms/components/FarmCard/CardHeading.tsx b/src/views/Farms/components/FarmCard/CardHeading.tsx index bb37ed0e7..4a7a5c9b1 100644 --- a/src/views/Farms/components/FarmCard/CardHeading.tsx +++ b/src/views/Farms/components/FarmCard/CardHeading.tsx @@ -10,18 +10,44 @@ export interface ExpandableSectionProps { depositFee?: number farmImage?: string tokenSymbol?: string + farmAPY?: string + firstTokenImage?: string + secondTokenImage?: string } const Wrapper = styled(Flex)` + padding:30px 20px; + background:#0E0E14; + border-radius:20px; svg { margin-right: 0.25rem; } ` +const AprWrapper = styled.div` + text-align:left; + font-size:22px; + font-weight:600; + margin-top:20px; + color:#30BAC6; +` + +const TVLWrapper = styled.div` + color:#fff; + font-size:12px; + text-align:left; + font-weight:600; + margin-top:20px; +` + const MultiplierTag = styled(Tag)` margin-left: 4px; ` +const HeadingWrapper = styled(Heading)` + color:#fff; +` + const CardHeading: React.FC = ({ lpLabel, multiplier, @@ -29,19 +55,22 @@ const CardHeading: React.FC = ({ farmImage, tokenSymbol, depositFee, + farmAPY, + firstTokenImage, + secondTokenImage, }) => { return ( - - {tokenSymbol} - - {lpLabel} - - {depositFee === 0 ? : null} - {/* {isCommunityFarm ? : } */} - {/* */} - {multiplier} + + + {lpLabel} + + {secondTokenImage && {tokenSymbol}} + {tokenSymbol} - + + {farmAPY}% APR + + TVL: $1,026,865 ) } diff --git a/src/views/Farms/components/FarmCard/DetailsSection.tsx b/src/views/Farms/components/FarmCard/DetailsSection.tsx index c7b070522..4d9e6acea 100644 --- a/src/views/Farms/components/FarmCard/DetailsSection.tsx +++ b/src/views/Farms/components/FarmCard/DetailsSection.tsx @@ -54,9 +54,9 @@ const DetailsSection: React.FC = ({ {TranslateString(316, 'Stake')}: {lpLabel} diff --git a/src/views/Farms/components/FarmCard/FarmCard.tsx b/src/views/Farms/components/FarmCard/FarmCard.tsx index 5b87696c9..bc2f3b224 100644 --- a/src/views/Farms/components/FarmCard/FarmCard.tsx +++ b/src/views/Farms/components/FarmCard/FarmCard.tsx @@ -29,6 +29,37 @@ const RainbowLight = keyframes` } ` +const CardBottomContent = styled.div` + padding:15px; + backgroudn:red !important; + text-align:left; + flex-direcion:row; + display:flex; + justify-content:space-between; + flex:1 1; + .cardContent{ + } + .textTitle{ + color:#fff; + font-size:12px; + } +` + +const HarvestButton = styled.button` + background:#000; + border:1px solid #30BAC6; + padding:8px 12px; + font-size:14px; + color:#fff; + border-radius:6px; + margin-top:10px; + transition:0.25s all; + cursor:pointer; + &:hover{ + border:1px solid #6CF3FF; + } +` + const StyledCardAccent = styled.div` background: linear-gradient(45deg, rgba(255, 0, 0, 1) 0%, @@ -43,26 +74,22 @@ const StyledCardAccent = styled.div` rgba(251, 7, 217, 1) 90%, rgba(255, 0, 0, 1) 100%); background-size: 300% 300%; - animation: ${RainbowLight} 2s linear infinite; - border-radius: 16px; - filter: blur(6px); + border-radius: 20px; position: absolute; - top: -2px; - right: -2px; - bottom: -2px; - left: -2px; + top: -1px; + right: -1px; + bottom: -1px; + left: -1px; z-index: -1; ` const FCard = styled.div` align-self: baseline; - background: ${(props) => props.theme.card.background}; - border-radius: 32px; - box-shadow: 0px 2px 12px -8px rgba(25, 19, 38, 0.1), 0px 1px 1px rgba(25, 19, 38, 0.05); + background: #17171F; + border-radius: 20px; display: flex; flex-direction: column; justify-content: space-around; - padding: 24px; position: relative; text-align: center; ` @@ -104,20 +131,20 @@ const FarmCard: React.FC = ({ farm, removed, cakePrice, bnbPrice, return null } if (farm.quoteTokenSymbol === QuoteToken.BNB) { - return bnbPrice.times(farm.lpTotalInQuoteToken) + return null // bnbPrice.times(farm.lpTotalInQuoteToken) } if (farm.quoteTokenSymbol === QuoteToken.CAKE) { return cakePrice.times(farm.lpTotalInQuoteToken) } return farm.lpTotalInQuoteToken - }, [bnbPrice, cakePrice, farm.lpTotalInQuoteToken, farm.quoteTokenSymbol]) + }, [/* bnbPrice, */ cakePrice, farm.lpTotalInQuoteToken, farm.quoteTokenSymbol]) const totalValueFormated = totalValue ? `$${Number(totalValue).toLocaleString(undefined, { maximumFractionDigits: 0 })}` : '-' const lpLabel = farm.lpSymbol - const earnLabel = 'EGG' + const earnLabel = 'HIGH' const farmAPY = farm.apy && farm.apy.times(new BigNumber(100)).toNumber().toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2, @@ -127,7 +154,7 @@ const FarmCard: React.FC = ({ farm, removed, cakePrice, bnbPrice, return ( - {farm.tokenSymbol === 'EGG' && } + {farm.tokenSymbol === 'HIGH' && } = ({ farm, removed, cakePrice, bnbPrice, depositFee={farm.depositFeeBP} farmImage={farmImage} tokenSymbol={farm.tokenSymbol} + farmAPY={farmAPY} + firstTokenImage={farm.firstTokenImage} + secondTokenImage={farm.secondTokenSymbol} /> - {!removed && ( - - {TranslateString(352, 'APR')}: - - {farm.apy ? ( - <> - - {farmAPY}% - - ) : ( - - )} - - - )} - - {TranslateString(318, 'Earn')}: - {earnLabel} - - - {TranslateString(10001, 'Deposit Fee')}: - {(farm.depositFeeBP / 100)}% - + +
+ {TranslateString(318, 'Earn')}: + {earnLabel} +
+
+ {TranslateString(10001, 'Deposit Fee')}: + {(farm.depositFeeBP / 100)}% +
+
+ +
+ Rewards Earned + 3,534 HIGH +
+
+ Harvest +
+
+ + +
+ BLISS Deposited + 12,342 +
+
+ Harvest +
+
+ - setShowExpandableSection(!showExpandableSection)} expanded={showExpandableSection} diff --git a/src/views/Farms/components/FarmTabButtons/index.tsx b/src/views/Farms/components/FarmTabButtons/index.tsx index 46ca31b41..efe81ec08 100644 --- a/src/views/Farms/components/FarmTabButtons/index.tsx +++ b/src/views/Farms/components/FarmTabButtons/index.tsx @@ -1,11 +1,12 @@ import React from 'react' import styled from 'styled-components' -import { useRouteMatch, Link } from 'react-router-dom' -import { ButtonMenu, ButtonMenuItem, Text, Toggle } from '@pancakeswap-libs/uikit' +import { useRouteMatch, useHistory } from 'react-router-dom' +import { Text, Toggle } from '@pancakeswap-libs/uikit' import useI18n from 'hooks/useI18n' const FarmTabButtons = ({ stakedOnly, setStakedOnly }) => { const { url, isExact } = useRouteMatch() + const history = useHistory() const TranslateString = useI18n() return ( @@ -14,14 +15,10 @@ const FarmTabButtons = ({ stakedOnly, setStakedOnly }) => { setStakedOnly(!stakedOnly)} /> {TranslateString(699, 'Staked only')} - - - {TranslateString(698, 'Active')} - - - {TranslateString(700, 'Inactive')} - - + + (!isExact ? history.push(url) : history.push(url.concat('/history')))} /> + {TranslateString(700, 'Inactive')} +
) } @@ -43,5 +40,6 @@ const ToggleWrapper = styled.div` ${Text} { margin-left: 8px; + color: #FFFFFF; } -` \ No newline at end of file +` diff --git a/src/views/Home/Home.tsx b/src/views/Home/Home.tsx index 02bcf4ef2..8cbe48d39 100644 --- a/src/views/Home/Home.tsx +++ b/src/views/Home/Home.tsx @@ -6,12 +6,13 @@ import Page from 'components/layout/Page' import FarmStakingCard from './components/FarmStakingCard' import LotteryCard from './components/LotteryCard' import CakeStats from './components/CakeStats' -import TotalValueLockedCard from './components/TotalValueLockedCard' +import TotalStackedCard from './components/TotalStackedCard' import TwitterCard from './components/TwitterCard' +import LogoCard from './components/LogoCard' const Hero = styled.div` align-items: center; - background-image: url('/images/egg/3.png'); + background-image: url('/images/high/3.png'); background-repeat: no-repeat; background-position: top center; display: flex; @@ -23,7 +24,7 @@ const Hero = styled.div` text-align: center; ${({ theme }) => theme.mediaQueries.lg} { - background-image: url('/images/egg/3.png'), url('/images/egg/3b.png'); + background-image: url('/images/high/3.png'), url('/images/high/3b.png'); background-position: left center, right center; height: 165px; padding-top: 0; @@ -58,18 +59,10 @@ const Home: React.FC = () => { return ( - - - {TranslateString(576, 'Goose Finance')} - - {TranslateString(578, 'Top 3 best DEFI app on Binance Smart Chain.')} -
- - - - + +
diff --git a/src/views/Home/components/CakeStats.tsx b/src/views/Home/components/CakeStats.tsx index 33a8da30b..785b8727e 100644 --- a/src/views/Home/components/CakeStats.tsx +++ b/src/views/Home/components/CakeStats.tsx @@ -41,7 +41,7 @@ const CakeStats = () => { - {TranslateString(534, 'Egg Stats')} + {TranslateString(534, 'High Stats')} {TranslateString(10005, 'Market Cap')} @@ -60,7 +60,7 @@ const CakeStats = () => { {cakeSupply && } - {TranslateString(540, 'New EGG/block')} + {TranslateString(540, 'New HIGH/block')} {eggPerBlock} diff --git a/src/views/Home/components/FarmStakingCard.tsx b/src/views/Home/components/FarmStakingCard.tsx index 207d4e64a..f30c1698d 100644 --- a/src/views/Home/components/FarmStakingCard.tsx +++ b/src/views/Home/components/FarmStakingCard.tsx @@ -16,7 +16,7 @@ import useAllEarnings from '../../../hooks/useAllEarnings' import { getBalanceNumber } from '../../../utils/formatBalance' const StyledFarmStakingCard = styled(Card)` - background-image: url('/images/egg/2a.png'); + background-image: url('/images/high/2a.png'); background-repeat: no-repeat; background-position: top right; min-height: 376px; @@ -71,14 +71,14 @@ const FarmedStakingCard = () => { {TranslateString(542, 'Farms & Staking')} - + - + - + @@ -91,7 +91,7 @@ const FarmedStakingCard = () => { fullWidth > {pendingTx - ? TranslateString(548, 'Collecting EGG') + ? TranslateString(548, 'Collecting HIGH') : TranslateString(999, `Harvest all (${balancesWithValue.length})`)} ) : ( diff --git a/src/views/Home/components/LogoCard.tsx b/src/views/Home/components/LogoCard.tsx new file mode 100644 index 000000000..2a2252e3c --- /dev/null +++ b/src/views/Home/components/LogoCard.tsx @@ -0,0 +1,42 @@ +import React, { useState, useCallback } from 'react' +import styled from 'styled-components' +import { Card, CardBody } from '@pancakeswap-libs/uikit' + +const StyledLotteryCard = styled(Card)` + background-position: top right; + min-height: 376px; + background: transparent; +` + +const Block = styled.div` + margin-bottom: 16px; +` + +const CardImage = styled.img` + margin-bottom: 16px; +` + +const Label = styled.div` + color: ${({ theme }) => theme.colors.textSubtle}; + font-size: 14px; +` + +const Actions = styled.div` + display: flex; + margin-top: 24px; + button { + flex: 1 0 50%; + } +` + +const LogoCard = () => { + return ( + + + + + + ) +} + +export default LogoCard diff --git a/src/views/Home/components/TotalStackedCard.tsx b/src/views/Home/components/TotalStackedCard.tsx new file mode 100644 index 000000000..b66051f6b --- /dev/null +++ b/src/views/Home/components/TotalStackedCard.tsx @@ -0,0 +1,59 @@ +import React from 'react' +import styled from 'styled-components' +import { Card, CardBody, Heading, Skeleton, Text } from '@pancakeswap-libs/uikit' +import useI18n from 'hooks/useI18n' +import { useGetStats } from 'hooks/api' +import { useTotalValue } from '../../../state/hooks' +import CardValue from './CardValue' + +const StyledTotalStackedCard = styled(Card)` + align-items: center; + display: flex; + flex: 1; + background: transparent; +` + +const TotalStackedCard = () => { + const TranslateString = useI18n() + // const data = useGetStats() + const totalValue = useTotalValue() + // const tvl = totalValue.toFixed(2); + + return ( + + + + The highest rewards! + + + Stake, swap, and farm your crypto here + + <> + + Total Staked: $ + {totalValue.toNumber().toLocaleString(undefined, { + minimumFractionDigits: 2, + maximumFractionDigits: 2, + })} + + + MAX APR: ~ + {Number("17.08").toLocaleString(undefined, { + minimumFractionDigits: 2, + maximumFractionDigits: 2, + })} + + + TVL: $ + {totalValue.toNumber().toLocaleString(undefined, { + minimumFractionDigits: 2, + maximumFractionDigits: 2, + })} + + + + + ) +} + +export default TotalStackedCard diff --git a/src/views/Lottery/components/PastDrawsHistory/HistoryChart.tsx b/src/views/Lottery/components/PastDrawsHistory/HistoryChart.tsx index 60ec81a2f..6a797bee1 100644 --- a/src/views/Lottery/components/PastDrawsHistory/HistoryChart.tsx +++ b/src/views/Lottery/components/PastDrawsHistory/HistoryChart.tsx @@ -57,7 +57,7 @@ const HistoryChart: React.FC = () => { borderCapStyle: 'round', gridLines: { display: false }, ticks: { - fontFamily: 'Kanit, sans-serif', + fontFamily: 'IBM Plex Mono, monospace', fontColor: color, fontSize: 14, lineHeight, diff --git a/src/views/Pools/Syrup.tsx b/src/views/Pools/Syrup.tsx index f96dbd20f..aca191b7a 100644 --- a/src/views/Pools/Syrup.tsx +++ b/src/views/Pools/Syrup.tsx @@ -10,7 +10,7 @@ import partition from 'lodash/partition' import useI18n from 'hooks/useI18n' import useBlock from 'hooks/useBlock' import { getBalanceNumber } from 'utils/formatBalance' -import { useFarms, usePriceBnbBusd, usePools } from 'state/hooks' +import { useFarms, usePools } from 'state/hooks' import { QuoteToken, PoolCategory } from 'config/constants/types' import FlexLayout from 'components/layout/Flex' import Page from 'components/layout/Page' @@ -25,7 +25,6 @@ const Farm: React.FC = () => { const { account } = useWallet() const farms = useFarms() const pools = usePools(account) - const bnbPriceUSD = usePriceBnbBusd() const block = useBlock() const priceToBnb = (tokenName: string, tokenPrice: BigNumber, quoteToken: QuoteToken): BigNumber => { @@ -33,9 +32,6 @@ const Farm: React.FC = () => { if (tokenName === 'BNB') { return new BigNumber(1) } - if (tokenPrice && quoteToken === QuoteToken.BUSD) { - return tokenPriceBN.div(bnbPriceUSD) - } return tokenPriceBN } @@ -67,28 +63,16 @@ const Farm: React.FC = () => { return ( - -
- - {TranslateString(282, 'SYRUP Pool')} - -
    -
  • {TranslateString(580, 'Stake CAKE to earn new tokens.')}
  • -
  • {TranslateString(404, 'You can unstake at any time.')}
  • -
  • {TranslateString(406, 'Rewards are calculated per block.')}
  • -
-
- SYRUP POOL icon -
+ + {TranslateString(580, 'Stake CAKE to earn new tokens.')} + - <> {orderBy(openPools, ['sortOrder']).map((pool) => ( ))} - diff --git a/src/views/Pools/components/PoolCard.tsx b/src/views/Pools/components/PoolCard.tsx index 9f75fc753..163b62d58 100644 --- a/src/views/Pools/components/PoolCard.tsx +++ b/src/views/Pools/components/PoolCard.tsx @@ -1,7 +1,7 @@ import BigNumber from 'bignumber.js' import React, { useCallback, useState } from 'react' import styled from 'styled-components' -import { Button, IconButton, useModal, AddIcon, Image } from '@pancakeswap-libs/uikit' +import { Button, IconButton, useModal, AddIcon, Image, Flex, Heading, Text, Link, LinkExternal } from '@pancakeswap-libs/uikit' import { useWallet } from '@binance-chain/bsc-use-wallet' import UnlockButton from 'components/UnlockButton' import Label from 'components/Label' @@ -16,6 +16,7 @@ import { useSousHarvest } from 'hooks/useHarvest' import Balance from 'components/Balance' import { QuoteToken, PoolCategory } from 'config/constants/types' import { Pool } from 'state/types' +import ExpandableSectionButton from 'components/ExpandableSectionButton' import DepositModal from './DepositModal' import WithdrawModal from './WithdrawModal' import CompoundModal from './CompoundModal' @@ -25,6 +26,71 @@ import OldSyrupTitle from './OldSyrupTitle' import HarvestButton from './HarvestButton' import CardFooter from './CardFooter' +const CardBottomContent = styled.div` + padding:15px; + backgroudn:red !important; + text-align:left; + flex-direcion:row; + display:flex; + justify-content:space-between; + flex:1 1; + .cardContent{ + } + .textTitle{ + color:#fff; + font-size:12px; + } +` + +const StyledHarvestButton = styled.button` + background:#000; + border:1px solid #30BAC6; + padding:8px 12px; + font-size:14px; + color:#fff; + border-radius:6px; + margin-top:10px; + transition:0.25s all; + cursor:pointer; + &:hover{ + border:1px solid #6CF3FF; + } +` + +const PCard = styled.div` + align-self: baseline; + background: #17171F; + border-radius: 20px; + display: flex; + flex-direction: column; + justify-content: space-around; + position: relative; + text-align: center; +` + +const StyledCardAccent = styled.div` + background: linear-gradient(45deg, + rgba(255, 0, 0, 1) 0%, + rgba(255, 154, 0, 1) 10%, + rgba(208, 222, 33, 1) 20%, + rgba(79, 220, 74, 1) 30%, + rgba(63, 218, 216, 1) 40%, + rgba(47, 201, 226, 1) 50%, + rgba(28, 127, 238, 1) 60%, + rgba(95, 21, 242, 1) 70%, + rgba(186, 12, 248, 1) 80%, + rgba(251, 7, 217, 1) 90%, + rgba(255, 0, 0, 1) 100%); + background-size: 300% 300%; + border-radius: 20px; + position: absolute; + top: -1px; + right: -1px; + bottom: -1px; + left: -1px; + z-index: -1; +` + interface PoolWithApy extends Pool { apy: BigNumber } @@ -33,6 +99,51 @@ interface HarvestProps { pool: PoolWithApy } +const CardHeadingWrapper = styled(Flex)` + padding:30px 20px; + background:#0E0E14; + border-radius:20px; + svg { + margin-right: 0.25rem; + } +` + +const HeadingWrapper = styled(Heading)` + color:#fff; +` + +const AprWrapper = styled.div` + text-align:left; + font-size:22px; + font-weight:600; + margin-top:20px; + color:#30BAC6; +` + +const ExpandingWrapper = styled.div<{ expanded: boolean }>` + height: ${(props) => (props.expanded ? '100%' : '0px')}; + overflow: hidden; +` + +const DetailsWrapper = styled.div` + margin-top: 24px; +` + +const StyledLinkExternal = styled(LinkExternal)` + text-decoration: none; + font-weight: normal; + color: ${({ theme }) => theme.colors.text}; + display: flex; + align-items: center; + + svg { + padding-left: 4px; + height: 18px; + width: auto; + fill: ${({ theme }) => theme.colors.primary}; + } +` + const PoolCard: React.FC = ({ pool }) => { const { sousId, @@ -63,6 +174,8 @@ const PoolCard: React.FC = ({ pool }) => { const { onUnstake } = useSousUnstake(sousId) const { onReward } = useSousHarvest(sousId, isBnbPool) + const [showExpandableSection, setShowExpandableSection] = useState(false) + const [requestedApproval, setRequestedApproval] = useState(false) const [pendingTx, setPendingTx] = useState(false) @@ -109,45 +222,42 @@ const PoolCard: React.FC = ({ pool }) => { }, [onApprove, setRequestedApproval]) return ( - - {isFinished && sousId !== 0 && } -
- - {isOldSyrup && '[OLD]'} {tokenName} {TranslateString(348, 'Pool')} - -
-
- {tokenName} -
- {account && harvest && !isOldSyrup && ( - { - setPendingTx(true) - await onReward() - setPendingTx(false) - }} - /> - )} + + + + + {isOldSyrup && '[OLD]'} {tokenName} {TranslateString(348, 'Pool')} + {tokenName} + + + {isFinished || isOldSyrup || !apy || apy?.isNaN() || !apy?.isFinite() ? ( + '- %' + ) : ( + + )} APR + + + +
+ Rewards Earned + 3,534 HIGH +
+
+ Harvest +
+
+ +
+ {tokenName} Deposited + {getBalanceNumber(stakedBalance)} +
+
+ Harvest
- {!isOldSyrup ? ( - - - {sousId === 0 && account && harvest && ( - - )} - - ) : ( - - )} -
+
- {!account && } + {!account && } {account && (needsApproval && !isOldSyrup ? (
@@ -180,33 +290,35 @@ const PoolCard: React.FC = ({ pool }) => { ))} - -
{TranslateString(736, 'APR')}:
- {isFinished || isOldSyrup || !apy || apy?.isNaN() || !apy?.isFinite() ? ( - '-' - ) : ( - - )} -
- -
- - 🥞{' '} - - {TranslateString(384, 'Your Stake')}: -
- -
- setShowExpandableSection(!showExpandableSection)} + expanded={showExpandableSection} /> - + + + + {TranslateString(316, 'Stake')}: + + {stakingTokenName} + + + {!isFinished && ( + + {TranslateString(23, 'Total Liquidity')}: + {totalStaked} + + )} + + + {TranslateString(356, 'View on BscScan')} + + + + + ) } diff --git a/src/views/Pools/components/PoolTabButtons/index.tsx b/src/views/Pools/components/PoolTabButtons/index.tsx index 7f215e1a0..054fbaa14 100644 --- a/src/views/Pools/components/PoolTabButtons/index.tsx +++ b/src/views/Pools/components/PoolTabButtons/index.tsx @@ -1,23 +1,20 @@ import React from 'react' import styled from 'styled-components' -import { useRouteMatch, Link } from 'react-router-dom' -import { ButtonMenu, ButtonMenuItem } from '@pancakeswap-libs/uikit' +import { useRouteMatch, useHistory } from 'react-router-dom' +import { Text, Toggle } from '@pancakeswap-libs/uikit' import useI18n from 'hooks/useI18n' const PoolTabButtons = () => { const { url, isExact } = useRouteMatch() + const history = useHistory() const TranslateString = useI18n() return ( - - - {TranslateString(999, 'Active')} - - - {TranslateString(999, 'Inactive')} - - + + (!isExact ? history.push(url) : history.push(url.concat('/history')))} /> + {TranslateString(700, 'Inactive')} + ) } @@ -30,3 +27,15 @@ const Wrapper = styled.div` align-items: center; margin-bottom: 32px; ` + +const ToggleWrapper = styled.div` + display: flex; + justify-content: center; + align-items: center; + margin-right: 32px; + + ${Text} { + margin-left: 8px; + color: #FFFFFF; + } +` diff --git a/yarn.lock b/yarn.lock index 8edeb30a7..2a1b24498 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1830,7 +1830,7 @@ "@pancakeswap-libs/uikit@goosedefi/goose-uikit": version "0.10.2" - resolved "https://codeload.github.com/goosedefi/goose-uikit/tar.gz/068e017bb0f927c566a43596fb555a5818e13154" + resolved "https://codeload.github.com/goosedefi/goose-uikit/tar.gz/4a665ca7b735e1fc9e22191b98912308a6001bbd" dependencies: "@types/lodash" "^4.14.162" "@types/styled-system" "^5.1.10" @@ -4954,6 +4954,11 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" +classnames@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e" + integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA== + clean-css@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78"