Comments (6)
If we're going to revisit this, we should also think about ways to have multiple authorities (aka namespace). For example, STR, BTC are not in the list of ISO currencies (which seems to be fiat only) - in theory a country could decide that they want to use this and not worry about conflicting with a lesser used/known one. This may have to be unified with issuers in a user friendly way.
from stellar-protocol.
If demurrage/interest rate is move to the account itself, then you'll probably end up with one issuing account for each currency, so no direct connection with the gateway account. And in that case, the issuer IS the currency.
Assume I'm a gateway and I issue credits with precious metals backing. Gold, Silver, Platinum, etc. What if the storage costs are different? Just based on specific gravity, silver would take more space, and would cost more to store.
Or what if I'm taking deposits of STR and issuing an interest bearing STR backed currency with a couple of different maturities?
from stellar-protocol.
Yeah, I talked to Jed about this and I realized that it is better to keep the demurrage information inside a currency code.
What would end up happening is that a few characters of the 160-bit currency code is for the currency code itself and then a timestamp (or anything else, this is all arbitrary) can be stored in the currency to signify when this precious metal was first released. This would put the burden of calculating demurrage on the client and rather stellard (which should remain as light as possible).
from stellar-protocol.
I just though of this, but one more reason not to, is that it leaves the issuer free to change the interest rate/demurrage at will.
from stellar-protocol.
johansten: well you could make it where they could only set it once. but probably better to put it in the currency code.
from stellar-protocol.
no longer applies
from stellar-protocol.
Related Issues (20)
- CAP-0052 - provide a way to retrieve the return value of an on-chain contract call HOT 3
- SEP-9: add proof_of_liveness field HOT 1
- Transfer SEPs: add optional `refund_account` attribute to transaction initiation requests HOT 2
- SEPs (6, 12, 24, 31): Update callback header from `X-Stellar-Signature` to `Signature` HOT 4
- SEP-9: define a generalized account identifier format HOT 4
- SEP-9: add `bank_account_type` field HOT 2
- SEP-6: /deposit and /withdraw IDs should map to list of transactions rather than a single transaction HOT 22
- SEP-24: make `account` for deposit request optional to match withdraw request
- Add SEP for Soroban token interface HOT 1
- Nice
- SEP-7: thoughts on using "web+stellar://" instead of "web+stellar:"? HOT 1
- SEP-6: standardize structured off-chain deposit instructions for users HOT 1
- SEP-6: Providing deposit instructions asynchronously
- security HOT 1
- SEP-24: Layered fee structure HOT 1
- SEP-24: Configure fees by payment method HOT 1
- SEP-9: support `organization.referrer`
- Add deviation parameter instead of pure uniform periods HOT 8
- Support for `memo` field in SEP-9 Financial Account Fields
- Prettier SEP CI workflow failing suddenly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stellar-protocol.