agave-dao / agave-frontend Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
On the main deposit page under balances, what I see next to my xDai balance is actually the wxDai in my wallet that I wrapped a few days ago. It shows the wxDai balance correctly as follows.
Also, on reserve overview page, the same issue above repeats as it can be seen on the left side of the following screen:
However, after clicking xDai on that main deposit screen, I see the amount of xDai and not wxDai balance, which I assume is how it should have shown on the first screen as well.
Relevant Forum Link: https://forum.1hive.org/t/feedback-on-agave-platform/4297/6
It should be showing xDai on the main deposit page as well is what I guess.
Move the allowance check directly when the view is loaded rather than when the approve button is clicked
Path: src/utils/contracts/getBalance.js
Sometimes res is undefined and it crashes the whole app
return new Promise((resolve, reject) => {
contractInstance.methods.balanceOf(address).call({ from: address }, (err, res) => {
if (err) reject(err);
let balance = parseInt(web3.utils.fromWei(res, 'ether')).toFixed(4);
resolve(balance)
});
})
Add a check for this undefined? Maybe a try catch?
return new Promise((resolve, reject) => {
contractInstance.methods.balanceOf(address).call({ from: address }, (err, res) => {
if (err) reject(err);
if(!res === undefined) {
let balance = parseInt(web3.utils.fromWei(res, 'ether')).toFixed(4);
resolve(balance)
}
});
})
Repro'd on Coinbase Wallet. Can someone repro on any other mobile web3 browsers?
Comparing this to Gardens UI using a favicon checker, a fix may be to include a favicon.ico in the code base.
https://realfavicongenerator.net/favicon_checker?protocol=http&site=agave.finance
https://realfavicongenerator.net/favicon_checker?protocol=https&site=gardens.1hive.org%2F
-Keppa
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.