Coder Social home page Coder Social logo

Comments (8)

liberuum avatar liberuum commented on June 27, 2024

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.

nsouch avatar nsouch commented on June 27, 2024

Hi, thx for your help.

new attempt failed for 25 Dai. TxHash :

0x7a749ea7bfa1663c20da5275518f3c694ee7dd9d8876aa1017ce96231fa649fb

from developerguides.

liberuum avatar liberuum commented on June 27, 2024

Hmm, try to use that on the latest kovan deployment:
https://changelog.makerdao.com/releases/kovan/1.0.9/contracts.json

from developerguides.

nsouch avatar nsouch commented on June 27, 2024

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.

liberuum avatar liberuum commented on June 27, 2024

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.

nsouch avatar nsouch commented on June 27, 2024

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.

liberuum avatar liberuum commented on June 27, 2024

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.

nsouch avatar nsouch commented on June 27, 2024

--to-dec was the problem and drawing 25 instead of 20.
rate is rather 1.024393872125548319941739518

thx a lot

from developerguides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.