Questions tagged [dai]

The tag has no usage guidance.

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

Smart contract holds USDT

My smart contract holds some USDT token and now if someone knows my Contract address can he/she transfer that USDT to his/her address. Just to clarify the USDT contract has transferfrom function which ...
Nishant Dhamija's user avatar
2 votes
1 answer
122 views

Uniswap DAI / ETH: TypeError: exchangeContract.methods.getEthToTokenInputPrice is not a function

I played around with this https://github.com/dappuniversity/trading-bot and came to the following error: TypeError: exchangeContract.methods.getEthToTokenInputPrice is not a function I thought that ...
Christopherus's user avatar
0 votes
0 answers
15 views

Unmatching supply of DAI from etherscan and daistat

Both daistat and coinmarketcap points out that there is around 5,84x,xxx,xxx DAI currently. While etherscan is showing 5,11x,xxx,xxx in Max Total Supply. Why is it so?
MingMingChan's user avatar
0 votes
1 answer
124 views

How to retrieve DAI transfers

I'm trying to fetch most recent DAI transfers for this address 0x6b175474e89094c44da98b954eedeac495271d0f, and retrieve information about them such as address, etc. I feel like I'm missing ...
user110925's user avatar
0 votes
1 answer
499 views

UniswapV2Router02 swapExactTokensForTokens deadline

im trying to swap some DAI with USDC Using UniswapV2Router02 function swapExactTokensForTokens() with brownie and python by unlocking a DAI token holder account and im getting this error : ...
noro meb's user avatar
  • 328
0 votes
3 answers
7k views

How to mint Dai to Goerli testnet wallet?

Trying to get lots of Dai (need like 300,000+) on Goerli to transfer to zksync alpha testnet. When I try to just directly mint to my wallet's address on etherscan using the contract web interface, ...
Fiattarone's user avatar
1 vote
0 answers
14 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
0 votes
1 answer
2k views

Having trouble executing swapExactTokensForTokens on a uniswap contract?

I am attempting to use brownie to execute a swap on Quickswap. But I keep getting a Dai/insufficient-balance error. Here is the traceback for the tx: https://dashboard.tenderly.co/tx/mumbai/...
Pickinanameainteasy's user avatar
0 votes
1 answer
111 views

Pool.borrow ValueError: Gas estimation failed: 'execution reverted'

I'm trying to borrow some DAI on the rinkeby testnet but borrow() transaction fails, even if I have collateral in the Pool contract. I'm trying to borrow 50% of the borrowable. Any idea why this could ...
Andrea's user avatar
  • 31
0 votes
1 answer
237 views

approve() function DAI on rinkeby

Cloned Rinkeby test network on local and trying to add liquidity to DAI-BAT pool after creation of the pool. Here is the addLiquidity function for reference: pragma solidity >0.7.0; //import the ...
Rohan's user avatar
  • 1
1 vote
1 answer
427 views

How to exchange DAI to ETH without paying fee in ETH?

I was trying to exchange my DAI stablecoins to other token, but for that I needed ETH to pay commission. All my assets are in stablecoins and I can not even exchange them to ETH on Uniswap or 1Inch ...
Tymofii Koval's user avatar
1 vote
1 answer
201 views

Automatic conversion from token to stable coin

I have an idea for a smart contract where 0.05% of each transaction would be converted to a stable coin from within the smart contract and sent to a separate account. I was planning on having DAI be ...
GoodGooglyMoogli's user avatar
12 votes
3 answers
5k views

hardhat mainnet forking and impersonating an account isnt working, help!

So I'm trying to fork the mainnet using hardhat, impersonate a Dai whale, and transfer its Dai to a hardhat wallet for testing a smart contract, but I'm running into problems. My code looks like this: ...
Nolan Jannotta's user avatar
0 votes
0 answers
220 views

Why did the dropped and replaced transaction go to a different address?

I tried to transfer some DAI from my instar wallet to my CoinBase wallet. The initial transaction was 'dropped and replaced' and the replacement transaction was successful, but appears the funds were ...
Jerren Saunders's user avatar
0 votes
1 answer
782 views

Getting execution reverted error when calling TransferFrom() function

This is my following Code. I am using the Rinkeby network. //SPDX-License-Identifier: MIT pragma solidity ^0.8; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/...
Yash Madhwal's user avatar
0 votes
1 answer
192 views

How to transfer DAIs from account to smart contract and vice-versa?

I used the below code to send 0.1 DAI from my account to a smart contract: const tokenTx = await daiTokenContract.approve('accountAddress', ethers.utils.parseEther("0.1")); await tokenTx....
Logesh R's user avatar
0 votes
1 answer
2k views

Uniswap Dai getAmountsOut returns 0

I'm trying to get the amount of WETH I can receive for 100 dai: uniswapController.sol contract UniswapController { address internal constant UNISWAP_ROUTER_ADDRESS = ...
Cristian 's user avatar
1 vote
1 answer
389 views

Is DAI-style permit safe to use?

Here's a snippet from the DAI stablecoin permit function: uint wad = allowed ? uint(-1) : 0; allowance[holder][spender] = wad; emit Approval(holder, spender, wad); (full source code can be found here)...
Thomas C. G. de Vilhena's user avatar
1 vote
1 answer
595 views

Uniswap: Fail with error ‘Dai/insufficient-allowance’

I am trying to deposit kovan DAI to my smart contract by using transferFrom of the ERC20 function, but I get an Dai/insufficient-allowance. So I tried approving it explicitly and then trying to ...
Harshak Krishnaa's user avatar
0 votes
0 answers
411 views

Withdraw erc20 DAI token from smart contract but get DAI/insufficient-allowance

I try to withdraw DAI token from smart contract into my wallet on kovan net that holds around 20 dai by executing the following: const mantissa = (numberOfDaiTransfer * Math.pow(10, underlyingDecimals)...
ethereal1m's user avatar
0 votes
1 answer
694 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
0 votes
2 answers
2k views

What is the difference between collateral types ETH-A and ETH-B?

Upon trying to create DAI for the first time via the Oasis app, I am first faced with a choice between two collateral types: ETH-A ETH-B I see that they have different stability fees, liquidation ...
Newskooler's user avatar
2 votes
1 answer
76 views

MakerDAO Liquidation Mechanism

Could you please explain, what happens when the collateral price goes down(but doesn't hit the liquidation ratio) and the user neither doesn't deposit extra collateral nor doesn't possess enough dai ...
Hakob Arshakyan's user avatar
4 votes
1 answer
2k views

What's the difference between token tracker and address page in Etherscan?

As an example, let's use DAI. DAI has these pages in Etherscan: https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f https://etherscan.io/address/...
Cekpome Woot'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
839 views

Returning ERC20 tokens accidentally sent to the DAI contract

I don’t know if it’s the right place for it, but I’m taking a chance. Despite several years of daily use of ERC20 tokens, I unfortunately managed to make a mistake and send some ERC20 tokens to the ...
HeyMrDev's user avatar
2 votes
4 answers
822 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
6 votes
0 answers
266 views

Not able to use DAI's permit() function

I'm having trouble testing the permit() functionality from the DAI contract. I've read the documentation and a couple of other resources, although, I got the contract code and deployed myself a copy ...
João Quintanilha's user avatar
0 votes
1 answer
950 views

What's the minimum gaslimit guaranteed and sufficient for Dai v2 token transfer?

I have (mulicollatral)Dai v2 in the wallet and I want to set the minimum possible gas limit such that my send transaction don't fail. Thanks
lebed2045's user avatar
  • 295
0 votes
1 answer
159 views

How to sign a erc20 contract call with key using web3

I am making a call to the Dai contract on the Kovan testnet to facilitate transactions between any two addresses entered as input. I was able to successfully make read calls but I realized I needed to ...
Rishabh Guha's user avatar
0 votes
1 answer
308 views

web3.eth.defaultChain returns undefined

Hi I am trying to make a call to the Dai contract in the Kovan testnet using web3.js and have to set the value of web3.eth.defaultChain to 'kovan'. The docs state that the default value for web3.eth....
Rishabh Guha's user avatar
4 votes
2 answers
7k views

How to obtain Rinkeby DAI?

I need to obtain Rinkeby DAI token with this token address: 0x8f2e097e79b1c51be9cba42658862f0192c3e487 I tried a faucet and https://rinkeby.uniswap.exchange/swap - both give me a different token (...
porton's user avatar
  • 1,744
1 vote
1 answer
143 views

How to calculate current DAI Savings Rate

I have read the documentation on the topic but still don't get how I can calculate the current DAI Savings Rate myself. The current dsr value is stored in the pot contract. At time of this writing it ...
Chris's user avatar
  • 1,272
1 vote
1 answer
728 views

Want to Access remote dai smart contract in another smart contract

I want to transfer Dai tokens from account1 to account2. My account1 has 50 DAI tokens. Kovan Dai contract address given by makerdao is: 0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa. What I am doing ...
sunny radadiya's user avatar
1 vote
1 answer
33 views

Puzzle- how to implement simple savings pool (via cDai) without iterating over unbounded loops?

Consider this example of a very simple savings contract, where users send Dai, which the contract converts to cDai. At any time users are free to withdraw their share of the accrued interest. I cannot ...
Andrew Stanger's user avatar
1 vote
0 answers
231 views

transferFrom is not displaying DAI amount on MetaMask verification popup

I am using web3.min_1.36.js to send DAI to a contract. I already called "approve", so transferFrom is working correctly without error. However, the Metamask verification popup does not display the ...
Tester's user avatar
  • 313
1 vote
2 answers
246 views

Borrow Maker DAI or Exchange

Why would one borrow Dai instead of buying from exchange ? if i have $150 worth ether i can borrow $100 worth Dai. With 8% stability fee basically at 8% interest rate. On the other hand i can just ...
Shilpan Shukla's user avatar
1 vote
2 answers
483 views

How to withdraw DAI from DSR (Oasis Saving Dapp / MakerDao) using the contract only, not the Dapp frontend?

I am currently testing the Oasis Saving Dapp by MakerDao (https://oasis.app/save). After converting some DAI to DSR, users can earn savings and whenever they want, withdraw their funds (convert back ...
felixhelix's user avatar
6 votes
1 answer
3k views

Accepting Dai or an any ERC20 token as a payment

I have created an ERC20 token and want to make it payable with DAI. I read some of the related questions but did not found any proper answer. As dai is an ERC20 token so, how can I accept any token ...
iamsujit's user avatar
  • 193
2 votes
1 answer
58 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
0 votes
1 answer
87 views

How does Ethereum's Makerdao Dai stablecoin differ from EOS's Equilibrium EOSDT stable coin?

What are the main differences from Ethereum's makerdao dai stablecoin to EOS's equilibrium EOSDT stablecoin? And are there other stablecoins like these two that are decentralized and issued via a ...
Patoshi パトシ's user avatar
1 vote
0 answers
375 views

How to get DAI using Web3.js

I'm building a Web3 app and I'm trying it out on the Kovan testnet. I'm trying to get some DAI. As far as I understand it the way to get DAI is to: Exchange ETH for WETH. Use Sai Tub contract to open ...
J. Hesters's user avatar
1 vote
1 answer
1k views

How to use DAI in my contract

I'm familiar with smart contracts development. Although, every time I developed something, I used traditional ether. For the sake of simplicity, let's assume this contract. pragma solidity ^0.5.0; ...
João Quintanilha's user avatar
2 votes
2 answers
1k views

Is there a unicode currency symbol for DAI?

USD uses the symbol $. Ether has Ξ. Is there an agreed-upon Unicode currency symbol for DAI? And in your answer, please don't point me to an image of the symbol. I'm asking specifically if there's a ...
Thomas Jay Rush's user avatar
7 votes
2 answers
10k views

Does Rinkeby have a faucet where I can fill a wallet with DAI?

I'm looking to use a testnet to test an application. I know I can get ether, but is there an easy way I could convert it to Dai? Thanks
Brennan's user avatar
  • 71
0 votes
1 answer
412 views

How should one approach the signing of ERC20 token transactions with an offline device?

I use an offline PC as a cold wallet. It works in combination with 2 USB drives: the 1st has Tails OS; the 2nd has my key files, a copy of MyCrypto desktop, and my encrypted account info. I can sign ...
Lichtung's user avatar
3 votes
3 answers
6k views

How to send ERC20 without paying gas in Ether?

Is there any way to send ERC20 Dai without paying gas in Ether but paying in DAI instead? I heard about some services which called relayers which presumably can help to send popular ERC20 token ...
lebed2045's user avatar
  • 295
2 votes
1 answer
1k views

Getting a loan on my Ethereum using the MakerDAO to get DAI. What are the risks and safe zone collateral needed? [closed]

I have 10 Ethereum and I read one can take a loan against it and use it as collateral using the MakerDAO service to get DAI tokens. I've never done this and want to make sure I'm doing it correctly. ...
Patoshi パトシ's user avatar
0 votes
2 answers
850 views

How can you approve a token through an interface?

I have an interface to Dai from my contract and want to allow a user to approve the contract to transfer their Dai. Dai uses DSToken code which has an approve function that relies on msg.sender: ...
Ayeayeron's user avatar
  • 161