Giter Site home page Giter Site logo

snowbank-frontend's People

Contributors

0x9nikopol avatar 0xotoguro avatar barenfels avatar cybertelx avatar dependabot[bot] avatar skeeter6380 avatar thomasvaeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

snowbank-frontend's Issues

RFV adjusted for SB dilution (wsSB)

Is your feature request related to a problem? Please describe.
A lot of noobies point to the fact that RFV is decreasing because of the $SB supply being diluted, and it's a slight inconvenience for more experienced Snowies to explain that SB is being distributed to stakers at an equal rate to the dilution of the supply.

If you account for the distribution to stakers by multiplying the RFV by Current Index, then it can more accurately show the true growth of an investor's staked Snowbank ($sSB)

Describe the solution you'd like. Include clear acceptance criteria.
Given, I am in the dashboard, When I want to check the growth in value of $SB token, Then I should be able to see both the RFV per $SB as well as the statistic mentioned above.

Is any UX Design input needed?
Not really, you can just simply add another thing to track on the dashboard, using the same style.

Describe alternatives you've considered
Manually multiplying the already-shown RFV by current index, but this is not user-friendly and makes it hard to grasp for noobies.

Tech Notes/Testing Notes
The addition of this new element is very simple and can be done within a few minutes by someone familiar to Snowbank's structure, such as one of the core devs.

Out of scope
This feature does not replace RFV but should rather be an accessory to it to allow new investors to comprehend the value growth by just buying and staking.

Additional context
N/A

Weird behaviour with Snowglobe sidebar

Describe the bug
When you go into Snowglobe section, the right sidebar appears and disappears in an infinite loop.

To Reproduce
Go into Snowglobe section

Expected behavior
The sidebar should appear if need it and if not should be hidden.

Screenshots
https://streamable.com/fx3xvw

Desktop (please complete the following information):

  • OS: macOS Monterey
  • Browser: Chrome
  • Version: 96.0.4664.55

Additional context
Keep the awesome work guys, let me know if I can help solve this small bug!

UI displays ridiculous balance after staking

Describe the bug
After staking any amount of SB, the Wrapped Staked Snowbank balance displayed on the UI, as well as all the items derived from it (value of balances, etc.), become far too large. This disappears after a refresh.

To Reproduce
Steps to reproduce the behavior:

  1. Stake an amount of SB
  2. Wait for transaction confirmation
  3. See wsSB balance become incredibly large

Expected behavior
The balance of wsSB should remain the same while the sSB is being added.

Workarounds (if any)
Refresh the page.

Screenshots
No screenshots here, to prevent my personal wallet being found.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Firefox 94.0.2
  • Version: FF 94, Ubuntu 20.04

Additional context
This happens in my dev copy of the dashboard running on my local machine, and the dashboard.
As far as I tested, this only happens to users with a balance of wsSB tokens.
I believe it may be some error with unit conversion, as it only happens to wsSB, which has a different amount of decimals to sSB and SB.

PR #27 causes issues with RFV

Describe the bug
The RFV shown on the dashboard is -$0.00.

To Reproduce
Steps to reproduce the behavior:

  1. Go on the Netlify preview URL for #27 or the current production app URL
  2. Enter dashboard
  3. See an impossibly low RFV

Expected behavior
The actual RFV should be displayed.

Workarounds (if any)
Use a preview URL for a PR before #27.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
Irrelevant, it affects all users

Smartphone (please complete the following information):
Irrelevant, it affects all users

Additional context
Educated guess as I'm not on my computer, but I believe it may be caused by the new MIM-AVAX turbine being added without updating the RFV calculation logic

deploy.js

Could you please provide how to deploy.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.