Questions tagged [stablecoins]
The stablecoins tag has no usage guidance.
45
questions
0
votes
0
answers
17
views
StableSwap invariant and price computation
Having issue reproducing the price Curve.fi propose for swaping tokens.
Let's take tricrypto2 pool for example.
As I'm writing this, the actual balance of the pool is the following:
I'm trying to re-...
0
votes
0
answers
8
views
What entities are actually borrowing stablecoins at 10% interest rates?
What entities are borrowing stablecoins at 10% interest rates? Why are they borrowing such stablecoins?
And how is it possible that some stablecoins are offering 20% APY? Are they just printing ...
0
votes
1
answer
53
views
Stablecoin Development
Can anyone link me with some information on how to develop stablecoins that are fiat backed, I can't seem to find anything on this topic.
0
votes
1
answer
20
views
Issues with stable coin code compiling
Including all code here:
pragma solidity ^0.5.0;
contract stablecoin{
address ceo = ;
mapping(address => uint) tokens;
function approval(address _owner, address _approved,uint _tokenId){
...
0
votes
0
answers
28
views
Does any Stablecoin have permit() or approveAndCall() function in polygon mainnet?
I'm trying to develop a DAPP with a stablecoin under the polygon mainnet. Having permit() or approveAndCall() in the token is necessary to complete a transaction in single call, for a better user ...
0
votes
0
answers
23
views
how do i provide liquidity to a stable coin?
the coin is fiat backed stablecoin
I have the fiat amount to back the coin supply. but what i don't understand is how an off-chain asset will provide value to an on-chain asset
as far as i've ...
0
votes
1
answer
155
views
Stablecoin smart contract
Drop in smart contract links for ERC-20 stablecoin.
There is no list defined anywhere.
There should be easy to understand resources in one place for new lerners.
what should be the best boilerplate?
0
votes
2
answers
66
views
how to create a dApp to interact with a user using stable coins
I use my holidays to learn solidity. Since I've programming background is solidity not my biggest challenge. Remix online IDE and JavaScript VM are great tools to start with. I've created a smart ...
0
votes
0
answers
17
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
0
answers
15
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
0
answers
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
0
answers
24
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
1
answer
39
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
0
answers
238
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
1
answer
145
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?
2
votes
1
answer
90
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
1
answer
2k
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
0
answers
235
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
1
answer
54
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
1
answer
655
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
1
answer
603
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
0
answers
44
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
1
answer
269
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
4
answers
813
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
0
answers
145
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
0
answers
43
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
1
answer
110
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
2
answers
476
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
0
answers
110
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
1
answer
301
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
1
answer
876
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
1
answer
44
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
3
answers
992
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
1
answer
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
2
answers
42
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
1
answer
237
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
2
answers
974
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
2
answers
887
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
1
answer
911
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
0
answers
625
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
1
answer
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
1
answer
88
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
0
answers
72
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
3
answers
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 ...
8
votes
2
answers
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 ...