Questions tagged [stablecoins]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Are there any example of Decentralized stablecoins?

I was looking for some good examples that uses Decentralized stablecoins. I want a solution where the ERC20 token is supported by another cryptocurrency say Ethereum and its rate fluctuates and ...
0
votes
0answers
10 views

My Stable Coin returns 0 balance

I have compiled the contract in remix ide and everything is fine. But then when I test it at https://mumbai.polygonscan.com/address/0x908cC927e491eB378cED58FA148eFd22a974C27D Balance "0" ...
0
votes
0answers
6 views

automatic token submission erc20 [duplicate]

Very good, I am creating an erc-20 token and I want that for each transfer that is made, send a minimum percentage of the tokens that is sent directly and automatically to a wallet. How can I do that? ...
0
votes
0answers
9 views

Can’t use transferFrom of other contract [duplicate]

I'm creating a paid membership in my contract and I'm using Binance USD as payment token. This is the method: function PayMembership(uint256 membershipID) external { require(msg.sender != address(...
0
votes
1answer
26 views

How to make an erc20 token track the dollar to pound value ratio?

How to make an erc20 token that tries to mimick the pound value and track the dollar to pound value ratio? So if it goes up to 1 pound is 1.40 dollars I want to automatically buy/sell to match this ...
0
votes
0answers
20 views

How to choose number of decimal places for token

What should I consider when choosing the number of decimal places for an ERC20 token/stablecoin? My first thought was to just use 18 which seems to be the standard because Ether uses 18. However ...
2
votes
1answer
60 views

Why fiat-backed stablecoins have a decimal of more than 2?

Fiat-backed stablecoins usually have a decimal of 6 while fiat currencies only need a decimal of 2. Is it necessary to have 6 for fiat-backed stablecoins and why?
0
votes
0answers
320 views

How do zero fee USD to USDC transfers work?

I believe that Coinbase allows zero fee USD to USDC when you use certain payment methods like bank transfer. It also has zero fee USDC transfer among CB wallets. How is it economically viable for ...
0
votes
0answers
8 views

Is there a card which I can have stablecoin on the backend but use for fiat purchases?

Is there a pre-paid card, which stakes stablecoin in order to ear interest, but the user can also spend the stablecoin on daily purchases like a regular debit card? I guess similar to this https://...
2
votes
1answer
81 views

Why USDC interest rates are so high compared to USD interest rates?

USDC is a stable coin, pegged to USD, so there should be no risk (or very little) from owning some. However, the lending rate for USDC is between 3% and 13%: https://defirate.com/usdc/ Since higher ...
0
votes
1answer
1k views

Usdc bep20 from trust wallet sent to usdc erc20 on metamask

Please, I sent a bep20 usdc from my trust wallet account to an erc20 usdc or something like that on my metamask account since almost 24hr, but it's yet to reflect. Can someone kindly help with some ...
0
votes
0answers
117 views

How can a contract accept some ether and send a stablecoin in return

My contract has to take ETH as a collateral and send some stablecoins ( like USDC) to user. How can I use any stablecoin into my contract , assuming contract has an infinite supply of USDC ? I too ...
0
votes
1answer
38 views

full stack dapp clone example elastic supply algorithmic stablecoin

I'm new to vyper (but have some python experience), I would like to clone a very simple dapp to have a look at the full stack of an ethereum dapp from back end (write compile and deploy a simple ...
0
votes
1answer
580 views

Is it normal for a DAI vault to cost between $80 - $160 in gas fees?

I am trying to open a Vault for the first time with ETH-A as collateral. Do the below fees make sense? They seem quite expensive to me ... Additionally I see this:
6
votes
1answer
350 views

How does the Dai peg to dollar?

I am interested in the Dai stable coin and have seen multiple different explanations of how the coin balances and pegs to the $1. One said it was to do with the increase or decrease in interest rates ...
2
votes
0answers
33 views

How does the Dai stablize?

I am interested in the Dai stable coin and have seen multiple different explanations of how the coin balances and pegs to the $1. One said it was to do with the increase or decrease in interest rates ...
0
votes
1answer
194 views

Is it possible to work with stable coin currency in Ethereum smart contracts using solidity?

I know in solidity you can use identifiers like ether and wei. For example, I can do something like if (msg.value == 1 ether) { //do something } Is it possible for me to use stable coins as a type ...
2
votes
4answers
780 views

Why are lending rates on USD based stable coins so different?

Since DAI is a USD based stable coin along with USDT and USDC, then why are their lending rates so different? In theory, the risks behind owning any of these stable-coins is similar so their lending ...
0
votes
0answers
113 views

Transaction error thrown with Vyper smart contract in MetaMask

I am trying to troubleshoot a problem I'm having with a crowdsale contract (written in Vyper). The contract compiles fine, and I can deploy the contract to Rinkeby without any problems, however when I ...
0
votes
0answers
40 views

Tax coins for Universal Basic Income

I am working on building a coin that will be useful in providing UBI, but need a method to maintain the price of the coin, so that it doesn't fall below threshold. Here is the idea: So every month, ...
0
votes
1answer
90 views

Can ERC-20 based stablecoins be confiscated or be subject to legal process?

Can ERC-20 based stablecoins be confiscated or blacklisted? Can I lose my stablecoins? What are differences between stablecoins out there?
1
vote
2answers
320 views

Calling a Solidity function automatically in realtime

I have an oracle with a 'getPrice' function that returns the latest ETH/USD price. Let's say, I am implementing a stablecoin contract which requires over-collateralization with ETH. How will I ...
1
vote
0answers
92 views

How to get total tether supply on Ethereum from BigQuery dataset

I've noticed that the numbers for Totaly supply of Tethers seem to diverge on the official Tether transparency page and the Etherscan block explorer, and I want to find a way to get the correct number....
0
votes
1answer
245 views

Can someone send their stable coin ERC-20 tokens to my smart contract?

Here is a business case. Two people own an asset, and they estimate the annual maintenance on that asset is $1000 over the next year. So they each want to put $500 and lock it up in my smart ...
0
votes
1answer
748 views

How to build ERC20 based stablecoin?

I want to build stablecoin for my college project. I am thinking of developing ERC20 token pegged with fiat currency. Can someone please suggest me best tutorials/guides to build stablecoin on ERC20?
2
votes
1answer
41 views

How DAI stablecoin is able to be decentralised or how the CDP(Collateralized Debt Position ) process works?

I am reading about stablecoins in order to understand which one would be best suitable for my need( let users of my app be payed or rewarded by a crypto and at the same time lowering the effect of ...
7
votes
2answers
913 views

What is DeFi decentralized finance?

What is DeFi? What are its core components? How to think about or picture "it"? Some of the parts are tokens, stablecoins (tokens with specific properties to reduce its volatility), and exchanges, ...
1
vote
1answer
2k views

Create an ERC20 Stablecoin [duplicate]

How to create a stable coin with an ERC20 token contract ? Does it require contract to be modified ? Are there some good practices or standards ?
3
votes
2answers
39 views

Is there any stablecoin except for DAI that is stable against the dollar without actually being backed by physical dollars?

Is there any stablecoin except for DAI that is stable against the dollar without actually being backed by physical dollars? Perhaps backed by CDP or some other method? Vesa
1
vote
1answer
231 views

List of Stablecoins built on Ethereum

What are some stablecoin projects built on Ethereum and how do they distinct between each other?
1
vote
2answers
908 views

How to get price of ETH to DAI within smart contract?

Is it possible to get the current price of Ethereum to Dai within a smart contract? Can this be done without a transaction, using a read operation by the nodes on some kind of existing decentralized ...
3
votes
2answers
774 views

How does the DAI stablecoin stay at $1?

The answer here is not very useful so I'm asking again. It doesn't matter if you describe the mechanism with the current or future version of MKR. If the price of DAI on the open market deviates ...
7
votes
1answer
802 views

How does the DAI keep its peg to a USD dollar?

I learned recently that the DAI uses some kind of smart contract magic to peg itself to the dollar as a stable coin. How is this not centralized as it involves fiat pairs? And what are some of the ...
1
vote
0answers
621 views

List of stable coin projects [closed]

I am trying to list the various stable coin projects on Ethereum. So far I have: Maker StabL Digix EthereumDollar String Which did I miss? (I'll update the above as answer come in.)
4
votes
1answer
3k views

Smart Contract with stable coin

Is there any stable coin, which can already be used with smart contracts? If not, is there a possibility to exchange a stable coin in real time into a smart contract feasible coin like ETH by help ...
1
vote
1answer
85 views

How to control a token's exchange value

Suppose you wanted to create a token representing an index fund for various cryptocurrencies and you made sure that you held enough cryptocurrency reserves for each currency represented in the fund. ...
0
votes
0answers
71 views

How can I setup a fixed price (in USD) in a smart-contract? [duplicate]

I would like to sell tokens at a fixed price in dollars and to do the conversion in ETH by default at the coinmarketcap price. E.g. Would like to sell 1 "mytoken" every day at 1 USD. 1 USD = 0.12 ETH (...
10
votes
3answers
2k views

How would stablecoins work on Ethereum?

The idea of a stablecoin in Ethereum is to create a token that is pegged to the price of say $1 USD. What are the main ways of achieving a stable cryptocurrency? What DApps are implementing them and ...
7
votes
2answers
2k views

Smart contract based betting — protection against depreciation

Let’s say I want to enter into a bet with my friend — if it rains 10 days from now, I will pay him $100; if it doesn’t, he will pay me $100. Would it be possible to take advantage of smart contract ...