Skip to main content

Questions tagged [stablecoins]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

How to test my Wrapped token/Stablecoin in a testnet?

Is it possible to test if my wrapped token or stablecoin peg system is working in some testnet? Or I need to deploy it in the mainnet?
Ryan Holanda's user avatar
1 vote
2 answers
24 views

Does anyone know any stablecoins that has more than 18 decimals?

Does anyone know of any stablecoins that have more than 18 decimals? I only see fewer than 18 decimals, not more.
anonauditor's user avatar
0 votes
1 answer
35 views

Connected to a proxy function but getting an error when I call the transfer function of the implementation contract

I'm currently working on a project where I can transfer USDC from my account to another directly, provided I have my provider and private key, programmatic. So I connected to a proxy contract on the ...
Eyang Daniel's user avatar
0 votes
0 answers
20 views

Type address is not implicitly convertible to expected type struct HelperConfig.NetworkConfig memory

Why even if I am returning a struct from a function then if I initialize another variable with the struct type it is showing me the following error: Type address is not implicitly convertible to ...
Nirban Chakraborty's user avatar
0 votes
1 answer
20 views

Actual Stable STABLECOIN

What is the best way to make a stablecoin which will stay stable irrespective of the market or any other factor? USDT -> Hard to believe someone is storing actual dollars somewhere. DAI -> What ...
Saikat Karmakar's user avatar
0 votes
1 answer
40 views

How to use stable coins for transactions on any chain

i am trying to implement such a smart contract where it takes the stable coin of that chain and send and receive it. For example i am deploying my smart contracts on the mumbai-polygon testnet. And ...
user10384418's user avatar
0 votes
1 answer
58 views

Approval question

Beginner question: I have trusted wallet with 1000 LINK erc20. I want to swap it to get USDT erc 20. It ask to approve the LINK. How long approval takes? In some time after I got the USDT, I wish to ...
shem's user avatar
  • 3
2 votes
1 answer
71 views

Getting error ERC20: insufficient allowance even after the user approving the tokens. Need help with debugging

The following code is from a Stablecoin project. To gain more context, please refer to this Github repo. I've added a new function to the DSCEngine.sol name collapseDsc() which is responsible for ...
alfheimrShiven's user avatar
1 vote
0 answers
13 views

Would a circuit breaker feature always execute one block after the trigger is detected?

Lets say I had a Dapp that used a popular stablecoin whereby the stablecoin had a freeze function. Then say I wanted to detect if the stablecoin accounts were frozen and then circuit break the Dapp. ...
zunior's user avatar
  • 1,312
1 vote
2 answers
37 views

Do banks store the money when we buy stablecoins? Then how is it decentralized?

I need someone to verify if my understanding is correct. When we buy ETH, we swap it in a pool with Stablecoin. To trade, it requires a pair of ETH/USD. What gives a Stablecoin its value? In the ...
Xirexor's user avatar
  • 137
0 votes
0 answers
15 views

Creating an stable ERC20 coin for Commerce

I am looking to build a euro backed stable coin that is built on ETH. We have liquidity behind it to keep it pegged. This would be used on a ecommerce site to buy physical items and than users will be ...
Jas B's user avatar
  • 1
3 votes
1 answer
38 views

What are the countermeasures for losses in decentralized finance platforms like Aave?

I am a newbie in the blockchain/Web3 space and trying to understand the AAVE protocol. Suppose a borrower deposits 1 ETH whose value is 500 DAI Tokens(500$) as collateral to borrow 100 DAI Tokens(100$)...
Hrithik Raj's user avatar
1 vote
1 answer
26 views

Oracle recommendations for stablecoin project

Looking for an oracle to add to my stablecoin project. Want the essentials (decentralized, censorship-resistant, secure mechanics, no multi-sig to control everything). Any ideas?
Rayn's user avatar
  • 65
2 votes
1 answer
126 views

how to peg an ERC20 token to a stipulated price in other to make it a stablecoin [duplicate]

I'm new into blockchain development and currently challenging myself to create a stablecoin. I have created an ERC20 token but I don't know how to peg the price to the desired price. Please can anyone ...
Syre Musk's user avatar
6 votes
5 answers
2k views

Why not use a stablecoin as the base currency of a blockchain?

Chains like Ethereum use Eth for gas, and then a stablecoin is delivered as a contract. I'm thinking that it might be nice to actually use a stablecoin as the BASE token for a new blockchain. That way,...
Bob Dobbs's user avatar
1 vote
1 answer
983 views

How to accept stabel coins such as USDT/USDC in a contract? [duplicate]

I am trying to create a contract in solidity that can accept ERC20 tokens more specifically stable coins like USDT/USDC. I am not sure how to make a minimum token amount to be paid. I have a basic ...
code-wolf-byte's user avatar
1 vote
1 answer
80 views

Stablecoin as basic ERC-20 Token

I am just trying to make a collateral backed stablecoin (1:1 AUD transparently backed) and am struggling to find any reasons as to why it cant be implemented using a simple ERC-20 contract? If I offer ...
freshsalmon's user avatar
1 vote
0 answers
120 views

How a stable coin, like USDT and USDC works?

I need help regarding stable coin, particularly like USDT and BUSD, pegged to US Dollar. I am working on a stable coin project. The smart contract needed to be developed in solidity and deployed on ...
Asad Hayat's user avatar
1 vote
0 answers
22 views

Stablecoin Fixed price how to keep

I'm developing a stable coin. I need to update daily the amount of USDC that one mytoken will value As an example Today mytoken = 30 USDC Tomorrow mytoken = 28 USDC After tomorrow my token = 31 USDC ...
David Rodríguez's user avatar
0 votes
0 answers
97 views

**Math/Stableswap Formula** Explaining the subsitution of "Chi" to get Stableswap invariant formular

Hello, I'm having a trouble of understanding this operation: In Curve.fi Stable Swap's paper, page 5, they substitue into this formular With some simplification step, we get the Stableswap invariant:...
vietcuongmonad's user avatar
2 votes
3 answers
115 views

Swapping stablecoins on a CFMM

Let's say I want to swap stablecoins, let's say USDC with DAI, in a CFMM where the function is the usual xy=k. Let's say that the liquidity is now fixed to be 1000USDC and 1000DAI, equals as they ...
Roberto Palermo's user avatar
0 votes
1 answer
45 views

How to get price data for a redeem without using chainlink

Trying to make a ecosystem where you have two tokens (Token X, Token Y) Token X can be minted for $1 worth of Token Y burned. And Token X can be redeemed for $1 worth of Token Y. How would I do this ...
Brayden Pee's user avatar
1 vote
1 answer
152 views

How can i make fully decentralized token pegged to BUSD or USDT?

I am making an ecosystem, where i want to give rewards in my own stablecoin. How is it possible for me to make it fully decentralized, with minting and burning to maintain a fixed price to $1 when ...
Captainsend's user avatar
1 vote
0 answers
18 views

What does SAFE stand for in the RAI ecosystem?

The SAFEEngine is analogous to Vat.sol in DAI. What does SAFE stand for?
Patrick Collins's user avatar
1 vote
1 answer
42 views

How does USDC ever lose its peg?

If USDC is always backed by $1 worth of fiat or treasuries, how does USDC lose and then rebalance its peg on an ongoing basis?
cormacncheese's user avatar
0 votes
2 answers
564 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-...
loyd.f's user avatar
  • 1
0 votes
2 answers
605 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.
Axel's user avatar
  • 11
0 votes
1 answer
25 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){ ...
user18312403's user avatar
0 votes
2 answers
700 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?
Prince Aj's user avatar
0 votes
2 answers
143 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 ...
af_bln's user avatar
  • 1
0 votes
1 answer
50 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 ...
Hurie's user avatar
  • 1
0 votes
0 answers
2k 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 ...
Mikhail Janowski's user avatar
2 votes
1 answer
483 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?
Jem's user avatar
  • 99
2 votes
1 answer
112 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 ...
Sithered's user avatar
  • 123
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 ...
Peculiar Tunde Akinyele's user avatar
0 votes
0 answers
469 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 ...
Ashish kumar's user avatar
0 votes
1 answer
82 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 ...
Carlo Travaglio's user avatar
0 votes
1 answer
714 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:
Newskooler's user avatar
6 votes
1 answer
1k 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 ...
Thomas Stokes's user avatar
2 votes
0 answers
63 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 ...
Thomas Stokes's user avatar
0 votes
1 answer
368 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 ...
Asker123's user avatar
  • 101
2 votes
4 answers
841 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 ...
Newskooler's user avatar
0 votes
0 answers
173 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 ...
phantalune's user avatar
0 votes
0 answers
47 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, ...
Amiya Behera's user avatar
0 votes
1 answer
161 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?
Mikko Ohtamaa's user avatar
2 votes
2 answers
656 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 ...
Anshu Jalan's user avatar
1 vote
0 answers
174 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....
Dario's user avatar
  • 11
0 votes
1 answer
375 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 ...
NealWalters's user avatar
0 votes
1 answer
1k 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?
Bhushan Mahajan's user avatar
2 votes
1 answer
60 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 ...
Carmine's user avatar
  • 121