mrchico / stablecoin.services Goto Github PK
View Code? Open in Web Editor NEWA gas free offering of common Dai and Chai operations
Home Page: https://stablecoin.services
A gas free offering of common Dai and Chai operations
Home Page: https://stablecoin.services
The server needs to do a basic handling of nonces
For more effective fetching of blockchain data
I would like to expose the basic features provided by the server as a proper API.
There will need to be some effort into making this a "proper" API, or at least one that doesn't completely suck. And documentation.
Would be nice to have a discussion with @reverendus on this
Without employing any complicated resubmitting functionality + nonce handling + gas calculations, the fee
users need to pay for a given cheque should only be fixed, and given by a server side calculation. The price will be delivered to the front end by a call to an api function, getPermitAndChequeFee()
or getChequeFee()
(depending on whether the user has already permitted the dach or not). The result of this call would be inserted into the fee
box in the front end.
Similarly, for swapToEth
.
similarly to how chai.money does it :)
It might be nice to incorporate a simple way for dai holders to put their dai into the pot to accumulate interest, still without requiring them to hold eth.
This is definitely possible, but it remains to be seen how much complexity it will add, so it's mainly a question about scope.
In scope for the MVP is the swapToEth feature of the dach
, which allows users to swap their dai into eth (when the dach has been autorized).
This remains to be intergrated into the front end.
Currently, the processing fee suggested by the front end is calculated according to the following formula:
operation_fee = 1.1 * gas_per_operation * fast_gas_price * eth_price_in_dai (or chai),
where fast_gas_price
is provided by Gas Station Network.
At the time of writing this comes down to a $9.9 tx fee for a simple DAI transfer (at ~145 Gwei for fast_gast_price). For many applications, this is prohibitively expensive.
Can an alternative be provided for users that do not require fast transactions?
e.g. using the average_gas_price
from the Gas Station Network?
(Source)
Potential issue: The "time to live" for messages signed using stablecoin.services is currently 10 minutes. This might need to be increased, to accomodate for slower confirmation.
Successful calls to the server api will return a tx hash, and user will need a way to see/understand the pending txs.
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.