Comments (8)
Hi,
Seeing from your txhash, you should frob with at least 20 Dai. As 20 Dai is the minimum amount you could draw from the system. I'd recommend you draw 25 Dai.
from developerguides.
Hi, thx for your help.
new attempt failed for 25 Dai. TxHash :
0x7a749ea7bfa1663c20da5275518f3c694ee7dd9d8876aa1017ce96231fa649fb
from developerguides.
Hmm, try to use that on the latest kovan deployment:
https://changelog.makerdao.com/releases/kovan/1.0.9/contracts.json
from developerguides.
But the addresses involded in the guide are not different between 1.0.2 and 1.0.9.
There's maybe the MCD_FLIP_BAT_A (not called by the guide but is related to BAT).
ILK_REGISTRY is new, otherwise many new collaterals are introduced and SAI is removed.
from developerguides.
Make sure that your $dink and $dart values are set correct. Due to seth being updated, the conversion might be a different one than in the guide.
You can set dink=$(seth --to-uint256 $(seth --to-wei 150 eth))
and dart=$(seth --to-uint256 $(seth --to-wei 25 eth))
For me it worked fine doing above.
My tx: https://kovan.etherscan.io/tx/0x72c244fd38a64b48313017311c073cfbe09eb4fb3b2919b37b1897f615ec731b
from developerguides.
the frob() call succeeded with your dart calculation but the DAI balance seems incorrect :)
$ seth --to-fix 45 $(seth --to-dec $(seth call $MCD_VAT 'dai(address)(uint256)' $urn))
57280581651.654777643580824758089718844654393534456004608
Note that the rate was curious too : 327388.476393033923681366870037784
Did I miss something ? What's your rate ?
from developerguides.
Try removing the `$(seth --to-dec ) command. latest version of seth converts straight to a decimal number now. That's why :D
So the full list of commands without the seth --to-dec
would look like this:
art=$(seth --from-wei $(seth call $MCD_VAT 'urns(bytes32,address)(uint256,uint256)' $ilk $urn | sed -n 2p))
rate=$(seth --to-fix 27 $(seth call $MCD_VAT 'ilks(bytes32)(uint256,uint256,uint256,uint256,uint256)' $ilk | sed -n 2p))
debt=$(bc<<<"$art*$rate")
debtWadRound=$(seth --to-uint256 $(bc<<<"$art*$rate*10^18/1+1"))
from developerguides.
--to-dec was the problem and drawing 25 instead of 20.
rate is rather 1.024393872125548319941739518
thx a lot
from developerguides.
Related Issues (20)
- Open vault, deposit collateral token and receivve dai all at once in multicall?
- i install the dapp , and when dapp build it errors ,could anyone help me HOT 1
- TypeError: Maker.create is not a function
- Frob always revert? Only when make dart is 0, it executes
- Kovan Network deprecated.
- https://coinmarketcap.com/watchlist/640f900c28520a37ec369efa/
- Full deployment of MCD protocol to testnet
- Keeper Bot Set-Up guide severely outdated - faucet on Goerli not set-up correctly either
- Please can someone setup some Sepolia DSR contracts, or setup a guide
- Error: browser ethereum provider and URL network param do not match. HOT 1
- A problem encountered when borrowing DAI HOT 2
- A problem occurred while interacting with contracts using seth HOT 2
- Error: requests.exceptions.ConnectionError: HTTPSConnectionPool HOT 1
- Fix outdated links in Vault Integration Guide
- Quick start link in exchanges is broken HOT 1
- Fix problem
- Some DAI seem to got stuck :/ :)
- Question: How can I make sure contract is receiving DAI? HOT 1
- Mrk.tools Application Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from developerguides.