xrpl-labs / net-worth-xapp Goto Github PK
View Code? Open in Web Editor NEWCheck the total worth of your XRPL account using DEX rates for all owned tokens & NFT's
Home Page: https://xumm.app/detect/xapp:xumm.accountworth
Check the total worth of your XRPL account using DEX rates for all owned tokens & NFT's
Home Page: https://xumm.app/detect/xapp:xumm.accountworth
Here's an account with 19k EUR
in IOU. The default currency selected in the wallet is EUR
. Meaning we're looking at an IOU representation of the native asset selected in the wallet.
Now when the Account Worth xApp is opened:
This then results in a lower EUR
value, because there's slippage (lack of liquidity)
However, if my native asset is EUR, and the IOU is EUR, I won't end up with a lower amount of EUR when looking at net worth: it should stay unconverted.
Imo, there should be one addition to the current calculations:
We recently improvd a thing or two in XUMM (home screen) regarding TLs displayed: instead of showing them if present, we show them only if they claim a reserve. It happens that TLs are misconfigured by issuers, so the TLs are fully in default state on the end user side (in XUMM), but because the issuer isn't in default state the TL (ledger object) still exists. It doesn't claim reserve on the user side though.
The best way to determine if it's relevant for the end user is if it claims reserve. Then they opted in to have the TL. Reserve claimed or balance non zero, actually.
I discussed this with XRPscan, Bithomp, etc. and they agree and will change their explorers as well.
The XUMM home screen already respects this, Account Worth should as well :) If not, users see TLs they don't have on their side, and are not claiming reserve. Showing it anyway is only confusing.
This is a sample that uses account_objects
and flags to check for the reserve claim, and mocks the output of account_lines
.
https://gist.github.com/WietseWind/5df413334385367c548a148de3d8a713
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.