Skip to content

Commit

Permalink
update ui things
Browse files Browse the repository at this point in the history
  • Loading branch information
hederan committed Oct 8, 2021
1 parent 4ccddd4 commit b0d6961
Show file tree
Hide file tree
Showing 83 changed files with 3,853 additions and 3,860 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to the Pancake ecosystem 🥞
# Contributing to the Rubyswap ecosystem 🥞

Thanks for taking the time to contribute !
You can start by reading our [Contribution guidelines](https://docs.rubyswap.finance/code/contributing) first.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# RubySwap Frontend
# 🥞 Rubyswap Frontend

[![Netlify Status](https://api.netlify.com/api/v1/badges/7bebf1a3-be7b-4165-afd1-446256acd5e3/deploy-status)](https://app.netlify.com/sites/pancake-prod/deploys)

This project contains the main features of the RubySwap application.
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.
Binary file added public/d0f70294961d7014.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/egem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<title>RubySwap</title>
<meta
name="description"
content="Cheaper and faster than Uniswap? Discover RubySwap, the leading DEX on Ethergem Chain(EGEM) with the best farms in DeFi and a lottery for CAKE."
content="Cheaper and faster than Uniswap? Discover RubySwap, the leading DEX on Ethergem Chain(EGEM) with the best farms in DeFi and a lottery for RUBY."
/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1" />
<meta name="theme-color" content="#1FC7D4" />
Expand Down
266 changes: 133 additions & 133 deletions public/locales/ar-SA.json

Large diffs are not rendered by default.

250 changes: 125 additions & 125 deletions public/locales/bn-BD.json

Large diffs are not rendered by default.

268 changes: 134 additions & 134 deletions public/locales/de-DE.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/el-GR.json

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions public/locales/en-AU.json

Large diffs are not rendered by default.

240 changes: 120 additions & 120 deletions public/locales/en-US.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/es-ES.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/fi-FI.json

Large diffs are not rendered by default.

246 changes: 123 additions & 123 deletions public/locales/fil-PH.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/fr-FR.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/hi-IN.json

Large diffs are not rendered by default.

248 changes: 124 additions & 124 deletions public/locales/hu-HU.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/id-ID.json

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions public/locales/it-IT.json

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions public/locales/ja-JP.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/ko-KR.json

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions public/locales/nl-NL.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/pl-PL.json

Large diffs are not rendered by default.

250 changes: 125 additions & 125 deletions public/locales/pt-BR.json

Large diffs are not rendered by default.

250 changes: 125 additions & 125 deletions public/locales/pt-PT.json

Large diffs are not rendered by default.

258 changes: 129 additions & 129 deletions public/locales/ro-RO.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/ru-RU.json

Large diffs are not rendered by default.

250 changes: 125 additions & 125 deletions public/locales/sv-SE.json

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions public/locales/ta-IN.json

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions public/locales/tr-TR.json

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions public/locales/uk-UA.json

Large diffs are not rendered by default.

254 changes: 127 additions & 127 deletions public/locales/vi-VN.json

Large diffs are not rendered by default.

252 changes: 126 additions & 126 deletions public/locales/zh-CN.json

Large diffs are not rendered by default.

252 changes: 126 additions & 126 deletions public/locales/zh-TW.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"short_name": "RubySwap",
"name": "RubySwap",
"description": "Farm CAKE with Pancake LP Tokens",
"description": "Farm RUBY with Rubyswap LP Tokens",
"homepage_url": "https://pancakeswap.finance",
"start_url": ".",
"display": "standalone",
Expand Down
17 changes: 9 additions & 8 deletions src/components/Layout/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ const StyledPage = styled(Container)`
const PageMeta = () => {
const { t } = useTranslation()
const { pathname } = useLocation()
const cakePriceUsd = usePriceCakeBusd()
const cakePriceUsdDisplay = cakePriceUsd.gt(0)
? `$${cakePriceUsd.toNumber().toLocaleString(undefined, {
minimumFractionDigits: 3,
maximumFractionDigits: 3,
})}`
: ''
// const cakePriceUsd = usePriceCakeBusd()
// const cakePriceUsdDisplay = cakePriceUsd.gt(0)
// ? `$${cakePriceUsd.toNumber().toLocaleString(undefined, {
// minimumFractionDigits: 3,
// maximumFractionDigits: 3,
// })}`
// : ''

const pageMeta = getCustomMeta(pathname, t) || {}
const { title, description, image } = { ...DEFAULT_META, ...pageMeta }
const pageTitle = cakePriceUsdDisplay ? [title, cakePriceUsdDisplay].join(' - ') : title
// const pageTitle = cakePriceUsdDisplay ? [title, cakePriceUsdDisplay].join(' - ') : title
const pageTitle = title

return (
<Helmet>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Menu = (props) => {
currentLang={currentLanguage.code}
langs={languageList}
setLang={setLanguage}
cakePriceUsd={cakePriceUsd.toNumber()}
// cakePriceUsd={cakePriceUsd.toNumber()}
links={config(t)}
// profile={{
// username: profile?.username,
Expand Down
4 changes: 2 additions & 2 deletions src/config/abi/bunnySpecial.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
"indexed": false,
"internalType": "uint256",
"name": "costCake",
"name": "costRuby",
"type": "uint256"
}
],
Expand All @@ -68,7 +68,7 @@
{
"indexed": false,
"internalType": "uint256",
"name": "costCake",
"name": "costRuby",
"type": "uint256"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/config/abi/bunnySpecialCakeVault.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"name": "cakeVault",
"outputs": [
{
"internalType": "contract CakeVault",
"internalType": "contract RubyVault",
"name": "",
"type": "address"
}
Expand Down
2 changes: 1 addition & 1 deletion src/config/abi/cakeVault.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
},
{
"inputs": [],
"name": "calculateHarvestCakeRewards",
"name": "calculateHarvestRubyRewards",
"outputs": [
{
"internalType": "uint256",
Expand Down
6 changes: 3 additions & 3 deletions src/config/abi/claimRefund.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"internalType": "uint256",
"name": "_numberCake",
"name": "_numberRuby",
"type": "uint256"
},
{
Expand Down Expand Up @@ -91,7 +91,7 @@
},
{
"inputs": [],
"name": "getCakeBack",
"name": "getRubyBack",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -117,7 +117,7 @@
},
{
"inputs": [],
"name": "numberCake",
"name": "numberRuby",
"outputs": [
{
"internalType": "uint256",
Expand Down
18 changes: 9 additions & 9 deletions src/config/abi/lotteryV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
{
"indexed": false,
"internalType": "uint256",
"name": "priceTicketInCake",
"name": "priceTicketInRuby",
"type": "uint256"
},
{
Expand Down Expand Up @@ -504,7 +504,7 @@
},
{
"inputs": [],
"name": "maxPriceTicketInCake",
"name": "maxPriceTicketInRuby",
"outputs": [
{
"internalType": "uint256",
Expand All @@ -517,7 +517,7 @@
},
{
"inputs": [],
"name": "minPriceTicketInCake",
"name": "minPriceTicketInRuby",
"outputs": [
{
"internalType": "uint256",
Expand Down Expand Up @@ -622,16 +622,16 @@
"inputs": [
{
"internalType": "uint256",
"name": "_minPriceTicketInCake",
"name": "_minPriceTicketInRuby",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_maxPriceTicketInCake",
"name": "_maxPriceTicketInRuby",
"type": "uint256"
}
],
"name": "setMinAndMaxTicketPriceInCake",
"name": "setMinAndMaxTicketPriceInRuby",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -668,7 +668,7 @@
},
{
"internalType": "uint256",
"name": "_priceTicketInCake",
"name": "_priceTicketInRuby",
"type": "uint256"
},
{
Expand Down Expand Up @@ -760,7 +760,7 @@
},
{
"internalType": "uint256",
"name": "priceTicketInCake",
"name": "priceTicketInRuby",
"type": "uint256"
},
{
Expand Down Expand Up @@ -800,7 +800,7 @@
},
{
"internalType": "uint256",
"name": "amountCollectedInCake",
"name": "amountCollectedInRuby",
"type": "uint256"
},
{
Expand Down
20 changes: 10 additions & 10 deletions src/config/abi/pancakeProfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
"inputs": [
{ "internalType": "contract IBEP20", "name": "_cakeToken", "type": "address" },
{ "internalType": "uint256", "name": "_numberCakeToReactivate", "type": "uint256" },
{ "internalType": "uint256", "name": "_numberCakeToRegister", "type": "uint256" },
{ "internalType": "uint256", "name": "_numberCakeToUpdate", "type": "uint256" }
{ "internalType": "uint256", "name": "_numberRubyToReactivate", "type": "uint256" },
{ "internalType": "uint256", "name": "_numberRubyToRegister", "type": "uint256" },
{ "internalType": "uint256", "name": "_numberRubyToUpdate", "type": "uint256" }
],
"stateMutability": "nonpayable",
"type": "constructor"
Expand Down Expand Up @@ -343,21 +343,21 @@
},
{
"inputs": [],
"name": "numberCakeToReactivate",
"name": "numberRubyToReactivate",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "numberCakeToRegister",
"name": "numberRubyToRegister",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "numberCakeToUpdate",
"name": "numberRubyToUpdate",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
Expand Down Expand Up @@ -455,11 +455,11 @@
},
{
"inputs": [
{ "internalType": "uint256", "name": "_newNumberCakeToReactivate", "type": "uint256" },
{ "internalType": "uint256", "name": "_newNumberCakeToRegister", "type": "uint256" },
{ "internalType": "uint256", "name": "_newNumberCakeToUpdate", "type": "uint256" }
{ "internalType": "uint256", "name": "_newNumberRubyToReactivate", "type": "uint256" },
{ "internalType": "uint256", "name": "_newNumberRubyToRegister", "type": "uint256" },
{ "internalType": "uint256", "name": "_newNumberRubyToUpdate", "type": "uint256" }
],
"name": "updateNumberCake",
"name": "updateNumberRuby",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
2 changes: 1 addition & 1 deletion src/config/abi/sousChef.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
{ "internalType": "contract IBEP20", "name": "lpToken", "type": "address" },
{ "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
{ "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "accCakePerShare", "type": "uint256" }
{ "internalType": "uint256", "name": "accRubyPerShare", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
Expand Down
4 changes: 2 additions & 2 deletions src/config/abi/sousChefBnb.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
{
"inputs": [],
"name": "WBNB",
"name": "WEGEM",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
Expand Down Expand Up @@ -117,7 +117,7 @@
{ "internalType": "contract IBEP20", "name": "lpToken", "type": "address" },
{ "internalType": "uint256", "name": "allocPoint", "type": "uint256" },
{ "internalType": "uint256", "name": "lastRewardBlock", "type": "uint256" },
{ "internalType": "uint256", "name": "accCakePerShare", "type": "uint256" }
{ "internalType": "uint256", "name": "accRubyPerShare", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
Expand Down
6 changes: 3 additions & 3 deletions src/config/abi/syrup.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"inputs": [
{
"internalType": "contract CakeToken",
"internalType": "contract RubyToken",
"name": "_cake",
"type": "address"
}
Expand Down Expand Up @@ -245,7 +245,7 @@
"name": "cake",
"outputs": [
{
"internalType": "contract CakeToken",
"internalType": "contract RubyToken",
"name": "",
"type": "address"
}
Expand Down Expand Up @@ -590,7 +590,7 @@
"type": "uint256"
}
],
"name": "safeCakeTransfer",
"name": "safeRubyTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
8 changes: 4 additions & 4 deletions src/config/constants/lists.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const PANCAKE_EXTENDED = 'https://tokens.rubyswap.finance/pancakeswap-extended.json'
const PANCAKE_TOP100 = 'https://tokens.rubyswap.finance/pancakeswap-top-100.json'
const PANRUBY_EXTENDED = 'https://tokens.rubyswap.finance/pancakeswap-extended.json'
const PANRUBY_TOP100 = 'https://tokens.rubyswap.finance/pancakeswap-top-100.json'

export const UNSUPPORTED_LIST_URLS: string[] = []

// lower index == higher priority for token import
export const DEFAULT_LIST_OF_LISTS: string[] = [
PANCAKE_TOP100,
PANCAKE_EXTENDED,
// PANRUBY_TOP100,
// PANRUBY_EXTENDED,
...UNSUPPORTED_LIST_URLS, // need to load unsupported tokens as well
]

Expand Down
Loading

0 comments on commit b0d6961

Please sign in to comment.