boomcrypto / citycoins-ui Goto Github PK
View Code? Open in Web Editor NEWCitycoins website code
License: GNU General Public License v3.0
Citycoins website code
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
The old version of the site had a dashboard with components that were reused across a few pages.
Describe the solution you'd like
This should be restored in it's original state, but exploring #4 in the next iteration would be interesting as well.
Describe the bug
Seeing a few reports in Discord on this one:
Attempted to get mining rewards and got βCannot find city ID for city.β Didnβt see many posts on it, any workarounds to claim citycoins? I am showing 100 blocks have passed too (BabyGotStacks#1157)
I'm having a hard time claiming MIA blocks that have been won. I've logged out, cleared cache etc. Am I in the wrong spot? Feeling like I'm missing something really simple.
I'm getting the same error "Cannot find City ID" on MineCityCoins. I do have MIA selected.
I've been able to claim via the sandbox in the meantime - user error?
More so asking in case it may help others having the same woes. (Coin Latifah#2691)
I won the some blocks how to get a mia?? (Luckyboy#7897)
To Reproduce
TBD - need to evaluate against block heights being claimed. The city ID mentioned above is only relevant to the DaoV1 contracts and should not be checked for LegacyV1/LegacyV2.
Expected behavior
The mining claim will call the correct contract based on block height.
Bug Description:
This is a race condition type of problem where the user is able to claim their stacked MIA/NYC/CityCoins before Friedger's FAST Pool pays out the treasury stacking rewards. Because the user claim's their CityCoins before the calculation is done, their stacked CC is set to 0, so the resulting Stacking rewards is then calculated as 0.
Steps to reproduce the behavior:
Expected behavior:
The user is unable to claim their CC until the FAST Pool pays out the stacking rewards.
Device:
Windows 11, Brave Browser
Possible solutions:
Describe the bug
When trying to claim stacking reward, no popup appears and I see this error in the log:
Uncaught (in promise) TypeError: n.config is undefined
e StackingReward.js:47
f runtime.js:63
_invoke runtime.js:293
M runtime.js:118
Babel 2
2 [StackingReward.js:47:8](https://minecitycoins.com/static/js/components/stacking/StackingReward.js)
β
Is your feature request related to a problem? Please describe.
A lot of the data stored on the page is queried more often then it needs to be, and only stored in localstorage.
Describe the solution you'd like
See if it's possible to use a loadable
atom to track global state, such that:
loadable
util helps track state of atom
lastBlock < currentBlock
, update, set, return valueDescribe alternatives you've considered
It works as-is, but this model would help bring in more data from the contracts, and set a foundation for exposing more data in the UI.
The minecitycoins.com website shows users the "Claim" button on the last delegated stacking cycle they stacked for, rather than appearing in the subsequent cycle where the CityCoins will actually unlock. This is a UX issue where users think they can claim their CityCoins, but the transactions will fail (user loss of fees) because the CityCoins are still being stacked in that last cycle.
The following error for the failing transaction is:
This transaction would have succeeded, but was rolled back by a supplied post-condition.
This bug can be seen on the Stacks Explorer.
0x033e7d7f4b9bddaec27357a3c4bff5a9edac1d917ec9cd04d4a5f0f976ef3f5c
0xc896ad5b89be372900f4141cf30f9152e82560dc2b8c028c0e5871390bacf358
Describe the bug
Right now you can specify any number of blocks for a mining transaction, and it will let someone fill in the values then show an error at submission.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This check could be performed when the text field is updated, which is already captured to generate the needed form fields.
Screenshots
Describe the bug
Reported in Discord - stacking claims do not include the city name in the function arguments, causing the call to fail:
citycoins-ui/src/components/stacking/StackingReward.js
Lines 64 to 69 in 06514c5
To Reproduce
Steps to reproduce the behavior:
Expected behavior
These fields should adjust based on the contract being called. LegacyV1 and LegacyV2 only require the target cycle, whereas DaoV1 needs both the city name and the target cycle.
Screenshots
minecitycoins UI:
sandbox:
Describe the solution you'd like
There should be a current BTC block atom/component, which could be used alongside the stacking data to show cycle start, cycle end, and progress.
A 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.