pancakeswap / pancake-frontend Goto Github PK
View Code? Open in Web Editor NEW:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
Home Page: https://pancakeswap.finance
License: GNU General Public License v3.0
:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
Home Page: https://pancakeswap.finance
License: GNU General Public License v3.0
Waiting for this PR to be merged Uniswap/web3-react#93
Bug Description
Staking liquidity to a pool seems possible in the liquidity screen without approving the contract first.
Steps to Reproduce
Expected Behavior
If you have the option to stake it at the liquidity page, you would expect that everything else works. If the contract first should be approved, that should be prompted.
Perhaps I there is another issue but I think I just lost LP tokens.
Additional Context
I use Firefox on Ubuntu with the Binance Chain plug-in on the Binance Smart Chain Network.
Bug Description
A clear and concise description of the bug.
Steps to Reproduce
Expected Behavior
I Think there should be a QR code that pops up to connect your wallet.
Additional Context
Up to date Chrome Browser on Mac OS
Bug Description
After rejecting the wallet connect request by clicking close button. It cannot be shown again until restart in PC
Steps to Reproduce
Expected Behavior
A consistent behaviour that everytime I should see the wallet connect qr code.
Additional Context
It is reproducible in pc
We need to redesign the syrup pool cards to match the new style of the site
New design
Figma available here: https://www.figma.com/file/q5dKq3BuQZ4YzV5pR0Mt2M/Design-System-UI?node-id=1678%3A14040
Remove https://github.com/pancakeswap/pancake-frontend/blob/develop/src/components/Input/Input.tsx and replace it by the Input in the uikit
https://pancakeswap.github.io/pancake-uikit/?path=/story/components-input--default
Is your feature request related to a problem? Please describe.
At this moment pancakeswap have 63 farms in 3 columns, the scroll of page is large and hard to read with so many items. Also having so many elements also implies more calculations, therefore more consumption of resources for low end devices.
Describe the solution you'd like
Pagination of 12 or 24 items maybe? a select with options (6, 12, 24, 48)?
Less items, less resource consumption and therefore faster loading speed.
I want to collaborate with this project but I need the REACT_APP_CROWDIN_APIKEY and REACT_APP_CROWDIN_PROJECTID. Could someone send me the keys to try to help?
Congratulations for the project and thank you for sharing pancake-frontend on github! 🥞🙌
Best!
CAKE to Harvest: not loading --> 0.0000
APR / Cake rate not loading
etc...
JS error in console :
4.2e516208.chunk.js:1 Uncaught (in promise) Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.
at l.decodeParametersWith (4.2e516208.chunk.js:1)
at l.decodeParameters (4.2e516208.chunk.js:1)
at j.h._decodeMethodReturn (4.2e516208.chunk.js:1)
at h.outputFormatter (4.2e516208.chunk.js:1)
at h.formatOutput (4.2e516208.chunk.js:1)
at s (4.2e516208.chunk.js:1)
at 4.2e516208.chunk.js:1
at XMLHttpRequest.i.onreadystatechange (4.2e516208.chunk.js:1)
Reward: $150 USD in CAKE
Description:
Add "Add {Token name} to MetaMask" to the details section of the Pool card.
We may need to add the earn token contract address to src/config/constants/pools.ts
in order to make this work.
Important notes:
MUST BE THE EARNING TOKEN, NOT THE STAKING TOKEN.
Resources:
Metamask Docs: https://docs.metamask.io/guide/registering-your-token.html#code-free-example
Pankake Syrup pooling used the word APY everywhere but technically it is APR as we can read here:
https://www.investopedia.com/personal-finance/apr-apy-bank-hopes-cant-tell-difference/
APR does not take into account the compounding of interest within a specific year. It is calculated by multiplying the periodic interest rate by the number of periods in a year in which the periodic rate is applied. It does not indicate how many times the rate is applied to the balance.
Unlike APR, APY does take into account the frequency with which the interest is applied—the effects of intra-year compounding.
I can easily change the code to replace APY in Syrup pools with APR if needed
Regarding: #346
FARMS
POOLS
I am using Binance Smart Chain as wallet on Chrome browser
Attached image where UI get's stuck nothing happens after approving from wallet
Steps:
Go to Farm
Example Cake-BNB LP
Click on + button to which opens Stake LP tokens
Enter number of stake click on confirm
Which opens wallet, Approve transaction in wallet
Nothing happens after approval
Thanks
Bug Description
Harvest all(count) button in farm staking card in home page is not translated
Steps to Reproduce
Expected Behavior
Harvest all(count) should also be translated
Is your feature request related to a problem? Please describe.
as a user, I want to view the evolution of the value of my stacked assets.
Describe the solution you'd like
I wanna see the current value of my coin in a pool or liquidity pair in a farm.
Example :
It could be an awesome to see the evolution of every assets.
In farm it would be nice to see the value of pairs in cake to remember how much i have stacked on this or this farm
So ! pancakeswap is awesome ! Thanks you so much
Bug Description
On the dashboard there is no approve state, so a user is unable to approve contract interaction and when clicking "buy tickets" they are unable to buy tickets.
Steps to Reproduce
Expected Behavior
Buy tickets would not show, the approve button should.
Bug Description
Warning: The data on this site has only synced to Binance Smart Chain block 4928512 (out of 4932297). Please check back soon.
Steps to Reproduce
Expected Behavior
To see the pairs
Reward allocation:
$250 in CAKE
Description:
Our current site slider component is a little boring, we want to add some fun to it.
Task is to replace the existing slider component with the bunny version (please see figma for more design details)
You will need to do this in the UI Kit & apply it to the respective areas on the website (exchange & main site)
Design:
Resources:
https://www.figma.com/file/q5dKq3BuQZ4YzV5pR0Mt2M/Design-System-UI?node-id=3840%3A95164
my computer fan is working, and chrome gpu up to 60 percent in use.
dose you use my computer to mine?
Android10
Trust Wallet ver1.19.21
DApps browser in Trust Wallet
https://i.imgur.com/iwBYcNO.png
This bug occurs when the Pool page (or Farming) is continuously displayed for more than 30 seconds under the above conditions.
The token display in stakes changes to zero. Or it becomes NaN.
Reloading does not fix it.
Forced to change the IP
For example, if you have a WiFi connection, you can fix it by switching to a 5G or 4G line (mobile line).
How would the user feel if the token amount shows 0 immediately after staking a large sum of money?
Perhaps users will not invest any more money.
This kind of precarious situation leads directly to credit problems.
Please deal with it as soon as possible.
Bug Description
Wallet disconnecting when going between and other navigations in menu
Steps to Reproduce
Expected Behavior
You are logged in whole time whenever you click in menu
Additional Context
Looks like wrong cookies scope as the items navigate to exchange.pancakeswap.finance, while other items navigate to pancakeswap.finance
Relevant PR: #482
Harvest button is disabled but should be enabled when there are funds earned.
Cake earned and amount staked - incorrect font color (numbers should not be black font)
Liquidity incorrect font color (numbers should not be black)
In dark mode, liquidity, earned and staked are wrong font color
[lower priority] - Add soft drawer opening animation rather than just opening it suddenly. A short transition will be good.
Strange compression of the 'table header' when shrinking the screen
At 340px wide viewport, the dividers extend beyond the table
IOS Safari/Chrome/Brave - The table rows are really thick. Unable to reproduce on emulated version of Iphone in chrome, consistent issue on real iphones
The 'earned' sorting doesn't always work as expected (notice EGLD in this screenshot)
Could you check this pool configuration ?
Farming looks unexpectedly low. (something like /100)
Thanks
We should use Hardhat mainet forking feature in order to enhance our dev workflow.
A PoC has been started here #376.
Anyone with some Hardhat knowledge can pick up the work and set this up.
I want to update the Pancakeswap logo which is a svg format to my own logo...how can i do that one?
Bug Description
Total CAKE Burned in the cake stats section in the landing page shows 0 when no wallets connected instead of correct value
Steps to Reproduce
Expected Behavior
It should show the amount of cakes burned so far
for 2 days, I was trying to remove a liquidity-Pair, which was not going through, because the confirm-button did nothing.
it boild down to a false date/time in that linux/debian VM, which I use for crypto-realted stuff only (walltes, & isolated browser).
the KVM-VM did get suspended at one time and did not reset the time to actual when it came online again.
there was no error-msg or hint from PCS-wsite.
after fixing this issue, rebooted the VM, every thing went back to normal.
might this info help sb, and/or maybe you guys can prg. some error-msg into your fabulous WS.
thx a lot for your dedication & work
guenter
Hi, is there any reason for the card's shadow rainbow animation to have a different border-radius than the card itself ? (16px for the background and 32px for the card).
Reddit post talking about it : https://www.reddit.com/r/pancakeswap/comments/lpeibm/this_is_the_worst_thing_about_pancakeswap/
I totally agree with the post, it makes the shadow weird.
I think this is basically a one line tweak, I can submit a PR.
Let me know 🥞
Bounty is $350 USD of CAKE tokens.
Bug Description
'Until ticket sale' times on lottery page are not reflecting the correct hour number (always 0).
Steps to Reproduce
Expected Behavior
Time to reflect correctly.
I am not sure what the correct time is meant to be for the ticket sale but this keeps rolling over to 59 minutes after it counts to zero. So im assuming the hour is just not reflecting correctly
Only seen on desktop. Have not checked on mobile.
MacOS, Chrome Browser version 88.0.4324.150.
Made a mistake setting price for token when I was setting up a new liquidity pool.
How do I reset the price this?
I removed the liquidity when I realized the error but now I am unable to reset the price.
Can you remove the token from pancakeswap so that I can re-add?
Please help.
Migrate https://github.com/pancakeswap/pancake-frontend/blob/develop/src/utils/lotteryUtils.js from JS to TS
Is your feature request related to a problem? Please describe.
As a pancakeswap user, time to time, I want to review how my staked LP tokens are doing. So I'm navigating to https://pancakeswap.finance/farms and now have to find few deposited farms out of the whole list of active farms. (Currently 57 items). It's a lot of scrolling and distraction.
Describe the solution you'd like
Add a staked
button to secondary navigation. This will navigate the user to page/view with a list of farms where his/her LP tokens are staked
Describe alternatives you've considered
Add a new filter bar, like the one https://app.beefy.finance/ having to filter list on the existing page.
Additional context
This would dramatically improve the user experience for all the stakers.
Pools should also benefit the new Farms list design
Display an error message when a user tries to connect from a different network than BSC.
A lot of users complain that wallet connect doesn't work
Bug Description
Lottery document is now obsolote
Steps to Reproduce
Expected Behavior
Lottery Ticket Fee for 1 ticket: 1 CAKE and more other changes
Bug Description
Many translations not working and stays in english when other language selected
Steps to Reproduce
Expected Behavior
Text should be in the language that selected
Bug Description
Im actually in 2 farms / 2 pools
On home : harvest all (3)
Steps to Reproduce
Expected Behavior
On home : harvest all (4)
Additional Context
Im in the CAKE pool / COMP
Maybe related
Bug Description
problem installing the node modules after downloading code.
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.12.0" from @binance-chain/[email protected]
npm ERR! node_modules/@binance-chain/bsc-use-wallet
Expected Behavior
I want it to download successfully so i can run the project
Bug Description
Can't approve contract in farm
space
Steps to Reproduce
On capture approve contact has been clicked
Here the console (network tab):
Approve contract on binance chain wallet extension appear after about 5 min
...
Expected Behavior
Enter an amount of CAKE and start farm.
Additional Context
Anyone know why this error?
https://i.imgur.com/ePv0LP2.png
Bug Description
When https://exchange.pancakeswap.finance/#/swap is embedded within an iframe on a parent page, the embedded Pancakeswap page fails to load.
In the console, there are some warnings and errors thrown, and I think the issue is because pancakeswap uses a package called redux-localstorage-simple to sync redux state and localstorage. However, pages within an iframe cannot interact with localstorage if they are not on the same domain.
Minimal reproducible example: https://jsfiddle.net/fv93q4sg/
Steps to Reproduce
Expected Behavior
The Pancakeswap exchange site should work when embedded in an iframe. Uniswap's exchange works this way, and we are able to embed it on https://app.moontools.io/pairs/0x02f14c27037bd30f18a6578590fd40fafd3376ff for example, under the "Swap" tab.
web3-bzz package will be deprecated in version 1.3.5 and will no longer be supported.
maybe update to v 1.3.3 : web3/web3.js#3898
The Crowdin translation PR: #16 implements all changes currently within Crowdin.
Issues
origin-UI
file need to be approved again, currently there are no approved translations for any language (meaning fallbacks will be used across the site).origin-UI.csv
as of 14:27 UTC 10/20 have been implemented. But - there is definitely text in the app that isn't included in that file.Bug Description
Lottery Latest Winning Numbers section shows the first lottery instead of the last one
Steps to Reproduce
Expected Behavior
It should show the latest lottery
QA result of: #336
disabled
when wallet is lockedA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.