Coder Social home page Coder Social logo

Comments (6)

jedmccaleb avatar jedmccaleb commented on July 20, 2024

Why not just add this to the stellar.toml ?

from stellar-protocol.

raymens avatar raymens commented on July 20, 2024

That might be a better option yes, that seems like a different but simpler implementation.

The main thing I wanted with this issue, is to start (and log) a conversation about handling assets in wallets.

from stellar-protocol.

jedmccaleb avatar jedmccaleb commented on July 20, 2024

This is related to this conversation: #20

And this #23

Basically I think we only need 2 modes. decimal or integer. Being able to move the decimal arbitrarily I don't think buys us much since the range of decimals that humans can deal with is pretty limited.

from stellar-protocol.

MikeFair avatar MikeFair commented on July 20, 2024

Having had a few of these conversations and seeing the same responses.

The 12 character asset code made up by the person issuing the credit cannot uniquely identify the asset the credit line is referencing. It identifies what the issuer called their credit line.

If IssuerA puts out USD and IssuerB puts out USDollars; we humans in the United States can kind of tell that's "probably" the same underlying asset being credited. We can't expect a Wallet to figure that out.

It's the distinction between the "credit line asset" and "the asset referenced in the credit line".
What we have a balance for is a "credit line asset", the underlying referenced asset is completely missing.

Basically I think we only need 2 modes. decimal or integer.

Has little to do with "identifying" the referenced asset for a Wallet.

Why not just add this to the stellar.toml ?

Again, unless I'm misunderstanding how that works; this would tell you about the credit line identifier from the issuer; not the asset being credited; and you'd to search the entire data set to find the identifier you had to get any associated data; that's a lot of effort/work to expect from a Wallet when var details = GetAssetDetails(assetReference); would be so much easier.

[EDIT: And I should have mentioned that while using Federation is a way to shoehorn the concept into the system; it's an important enough concept that Asset Detail Records should have their own first class entity records that can be shared in common (controlled by the issuer).]

from stellar-protocol.

jedmccaleb avatar jedmccaleb commented on July 20, 2024

What the asset is is ultimately up to the issuer. If I issue an asset called "USD" but only redeem it for olives. I'm issuing olives not dollars despite the name. My point is I don't see what it buys you to store this extra info in the ledger. The issuer can provide extra info about what they mean by USD outside the system since this ultimately the only place that it matters. It is also not something that needs to be globally known.

Of course I hope that people follow conventions about what they call assets. For example I hope when someone issues dollars they call it USD and if they are issuing something called USD they mean dollars but there are no operations on the ledger that require this to be true so it doesn't seem like the extra info belongs in the ledger.

from stellar-protocol.

MikeFair avatar MikeFair commented on July 20, 2024

@raymens

Try this: http://76.230.245.107:8000/federation?q=IBM*&type=TICKER

You should get back every exchange listing globally that uses "IBM" as their Ticker.
It still needs to translate the exchange code to the appropriate MIC for the exchange.
The Name, Sector, and the Security Type fields are probably the most interesting for now.

Other identifiers like SEDOL, CUSIP, and ISIN are also supported by the query API.
The full list is here:
https://www.openfigi.com/api#supported-identifiers

These IBM results have another company that uses the IBM Ticker somewhere and some Money Market Assets. I don't recognize either of them.

Software would deduplicate these results based on the shareClassFIGI key which is linked to a specific company issued asset (as opposed to all the places that asset is traded).
[The CompositeFIGI is specific to the Country/Region where the asset is registered, and the FIGI is unique to a specific listing on a particular exchange (which is why there are so many results).]

The federation server can also generate its own FIGI-like identifier for accounts in Stellar.
The goal is coming up with some kind of "short code" for people to use to link to accounts and assets.

The thinking here is moving toward creating "Assets" as objects within the system just like "Accounts".
Not all asset codes necessarily get object status; sometimes all you want is named numeric value (like credits in an arcade or something); but when those Asset Codes are supposed to represent or be linked to actual assets in the real world; then creating an object to store some basic data about that asset makes complete sense to help coordinate our shared understanding of it.

from stellar-protocol.

Related Issues (20)

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.