All Projects → MrChico → stablecoin.services

MrChico / stablecoin.services

Licence: other
A gas free offering of common Dai and Chai operations

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to stablecoin.services

decentrapay
Maker DAI payment processor
Stars: ✭ 72 (+125%)
Mutual labels:  dai, stablecoin
arbitrage-keeper
Maker Keeper Framework: Keeper to arbitrage on OasisDEX, `join`, `exit`, `boom` and `bust`. Efficiently handles both bad debt liquidations and surplus Dai.
Stars: ✭ 102 (+218.75%)
Mutual labels:  dai, stablecoin
ching
Easy, web-based, crypto-first POS that supports DAI and xDAI.
Stars: ✭ 26 (-18.75%)
Mutual labels:  dai, stablecoin
bite-keeper
Maker Keeper Framework: Keeper to bite undercollateralized cups.
Stars: ✭ 46 (+43.75%)
Mutual labels:  dai, stablecoin
layer2-finance-contracts
Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.
Stars: ✭ 40 (+25%)
Mutual labels:  defi
Setheum
Setheum Network - Islamic Finance DeFi, Multi-Stablecoins, Payments, EVM, DeFi on Rockets to Heaven => 🚀ready for hacking🚀
Stars: ✭ 15 (-53.12%)
Mutual labels:  defi
express-mysql-rest
Building the simple api with sequelize, mysql and express js. this repository contains the code about how to use sequelize with mysql at express js. for example i have provide the crud operation to this repository. You can also testing the api with chai and mocha with chai-http by this repository
Stars: ✭ 25 (-21.87%)
Mutual labels:  chai
ricochet
Enter the world of real-time investing
Stars: ✭ 21 (-34.37%)
Mutual labels:  defi
itoken
yToken wrappers for automated investment strategy tokenization
Stars: ✭ 71 (+121.88%)
Mutual labels:  defi
react-innertext
Returns the innerText of a React JSX object.
Stars: ✭ 37 (+15.63%)
Mutual labels:  chai
nodejs-application-architecture
👨‍🔧 A discussion on how Node.js projects can be organized.
Stars: ✭ 81 (+153.13%)
Mutual labels:  chai
setprotocol.js
🥞 Javascript library for a collateralized basket of ERC20 tokens
Stars: ✭ 57 (+78.13%)
Mutual labels:  defi
compound-borrow-examples
Code examples for borrowing Ethereum assets from the Compound Protocol.
Stars: ✭ 76 (+137.5%)
Mutual labels:  defi
uniswap-python
🦄 The unofficial Python client for the Uniswap exchange.
Stars: ✭ 533 (+1565.63%)
Mutual labels:  defi
v1-contracts
Primitive protocol solidity contracts.
Stars: ✭ 42 (+31.25%)
Mutual labels:  defi
Aave-FlashLoan-using-solidity
This contains all the code to execute a successful flash-loan on the Kovan test-net of Ethereum. Flash-loan will be taken from the aave lending pool where will will take 1 DAI as a flash-loan, please keep in mind that you can take very huge flash-loans but make sure you have topped-up enough DAI in to your smart contract i.e. in this instance to…
Stars: ✭ 32 (+0%)
Mutual labels:  defi
sdk
Li.Fi - Bridge & DEX aggregation: Any-to-Any Cross-Chain-Swap SDK
Stars: ✭ 18 (-43.75%)
Mutual labels:  defi
match-screenshot
A simple Jest or Chai matcher to compare screenshots, using Applitools Eyes
Stars: ✭ 14 (-56.25%)
Mutual labels:  chai
chai-passport-strategy
Helpers for testing Passport strategies with the Chai assertion library.
Stars: ✭ 32 (+0%)
Mutual labels:  chai
CDP-leverager
Margin trading tool for ETH long positions
Stars: ✭ 21 (-34.37%)
Mutual labels:  dai

About stablecoin.services

Today, we are introducing stablecoin.services, which allows for common Dai and Chai operations to be performed gas-free, at your convenience. This promotes Dai and Chai to first class tokens in the Ethereum network, allowing users to transact in these currencies without ever holding any Ether.

At launch, the following operations are supported:

  • Dai and Chai transfers,
  • Dai -> Eth and Chai -> Eth uniswap trades,
  • Dai <-> Chai conversions.

Head over to stablecoin.services to give it a spin. Alfred will be there to assist you.

image of butler

A relaying api is provided at api.stablecoin.services, which can be integrated into other dapps interested in offering gas-free conveniences to their users.

How does it work?

To initiate an action, the user signs a message specifying the details of the operation to be performed, and authorizes a relayer to process the transaction on their behalf. As the relayer submits the message to the blockchain, the operation is processed and the fee is delivered to the relayer to reimburse their gas costs.

At the heart of this process sits a smart contract called the Dai Automated Clearing House, or dach, for short. The first time you use stablecoin.services you will be asked to sign a message which permits this contract to operate on your behalf. You should study this contract carefully as it determines the terms of engagement between you and the relaying service. It specifies a set of message types, one for each action offered by stablecoin.services, and corresponding functions which executes the operation specified by each message.

This is all made possible by the permit function in the Dai and Chai contracts, which allows for approvals to be done by signed messages, instead of transactions relying on msg.sender. We hope that stablecoin.services serves as an example of the power and extensibility of the permit construction, and encourage future token designers to adopt a similar pattern.

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.

What are the risks?

The dach contract has not yet undergone an audit. It is a fairly small and straightforward contract written and reviewed by experienced smart contract developers, but as with all smart contracts, you should make your own risk assessment before engaging.

Assuming the contract works as intended, neither the relayer or the dach contract holds custody over any user assets. They are simply granted the permission to execute the actions as specified by the signed messages by the user, and the worst they can do is to withhold from processing an operation, only to submit it when the user gives up. To mitigate against this, messages are equipped with an expiration date after which they can no longer be processed. The time to live for messages signed using stablecoin.services is 10 minutes. Messages are also equipped with a nonce for replay protection and to enable overwriting of stale messages.

Resources

The code for the dach contract can be found at github.com/dapphub/ds-dach, or in the etherscan live deployment

The code for the stablecoin.services front end is hosted at github.com/MrChico/stablecoin.services.

Both distributed under the AGPL license.

Pixel Art by Abbey Titcomb

Documentation of the relaying api is provided at api.stablecoin.services

Martin Lundfall, Andrew Cassetti, Lev Livnev

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].