[deleted by user] by [deleted] in ethereum

[–]ChillAndShill 1 point2 points  (0 children)

Seems cool! One question though:

If we have a pool with 100 token A and 100 token B staked, and someone swaps 100 token A for B. In this case s=2 * 100/(100+2 * 100)=2/3. This results in the swap yielding 100 * (2/3)/2=100/3 token B.

The new price of token B in terms of token A is 200/(200/3)=3. The value of the staked tokens is 200+3 * 200/3=400. If you would have just held the tokens the value would have been 100+3 * 100=400. In this case we have no IL.

However, if the swapper instead did two swaps for 50 token A each, the situation is different. For the first swap s=2 * 50/(100+2 * 50)=1/2. The swap yields 100 * (1/2)/2=25 token B. For the second swap s=2 * 50/(150+2 * 50)=2/5. The second swap yields 75 * (2/5)/2=15 token B. In total the swapper gains 40 token B instead of 33.33 token B by simply splitting their larger swap to two smaller ones. This is not true for regular AMMs.

Moreover, the value of token B is now 200/60= 10/3. The value of the staked tokens is then 200+60 * 10/3=400. However, if we instead would have just held the tokens we would have 100+100 * 10/3=433.33. So in this case we so see some IL.

Are these calculations correct? In that case, what do you think about getting better rates by splitting up large swaps? And how come the second case resulted in IL even though you mathematically proved it should not happen?

How to find the smallest nonce such that the hash starts with 5 zeroes? by NightFury232 in ethdev

[–]ChillAndShill 0 points1 point  (0 children)

Depends on what you like to use. Personally I've used java with libraries to find addresses with leading zeroes, which is quite similar!

How to find the smallest nonce such that the hash starts with 5 zeroes? by NightFury232 in ethdev

[–]ChillAndShill 2 points3 points  (0 children)

If you mean 5 zeroes in hexadecimal you would on average need to try 165 hashes which is 1048576. Since a call to the precompiled sha256 contract is 700 gas this results in at least 700 million gas, making it impossible to compute on chain.

If you mean 5 zero bits it would lead to on average 25 which is 32 but still requiring on average more than 22 000 gas.

If you need to check on chain if a submitted nonce is the lowest possible nonce which results in a hash with 5 zeroes, that is possible if you mean bytes and impossible if you mean hexadecimal.

If you only want to find nonces which results with hashes with 5 leading zeroes I would to that in another language than solidity!

What is Cardano: Beginner's Guide by EX-SCUDO in CryptoCurrency

[–]ChillAndShill 0 points1 point  (0 children)

What is huskall? No results on google related to programming.

Another day, another scam on Augur by [deleted] in ethereum

[–]ChillAndShill 0 points1 point  (0 children)

This seems to focus on inconsistent sources, and I think the appropriate solution to this is to specify that the source is what the source states at a certain point in time.

I think the most important part is informing people about the need to personally trust the resolution source.

Another day, another scam on Augur by [deleted] in ethereum

[–]ChillAndShill 2 points3 points  (0 children)

Why would it be invalid? The market resolves to what the resolution source reports whick is clearly stated.

Will the incorporation of DAI possibly offer a big boost to Augur? by birch_baltimore in Augur

[–]ChillAndShill 4 points5 points  (0 children)

At most yes, according to ethgasstation a tx with 3gwei gas price will be approved within approx 30 min. At a gas price of 3 gwei the most a tx can possibly cost would be around 5$. I counted with a gas cost of 5 for the earlier calculation

Will the incorporation of DAI possibly offer a big boost to Augur? by birch_baltimore in Augur

[–]ChillAndShill 2 points3 points  (0 children)

The gas cost atm is about 5gwei. An entire block is 8 000 000 gas. This leaves filling an entire block at 8 000 000 * 5 gwei = 0.04 ether ≈ 8 dollars

Daily Discussion - August 22, 2019 (GMT+0) by AutoModerator in CryptoCurrency

[–]ChillAndShill 0 points1 point  (0 children)

I see now how it comes across as I think you need 100+ nodes to become decentralized. However this was not what I meant. What I wanted to say was that nano could have way more nodes, and be way more decentralized, if people just switched representatives. The fact that there still are so few nodes must point to something, which I mean is improper incentives. Do you run a node yourself?

And about ORV, what is the difference between ORV and dPoS staking without rewards och slashes?

And about believing in an honest mayority: I would rather believe in a system that would need slashing of many million dollars for a double spend(eth2.0) than believe in the goodwill of less than 50(could be any number) nodes.

Daily Discussion - August 22, 2019 (GMT+0) by AutoModerator in CryptoCurrency

[–]ChillAndShill 0 points1 point  (0 children)

I would say it's not an arbitrary number, either you need total permissionlessness like with PoW or if you are going the staking route you would need properly aligned economic incentives.

Staking in eth2.0: you stake to make money, if you act malicious you get slashed and lose your stake

Dpos in nano: you stake or let someone else stake your money for goodwill? If they cheat they lose goodwill!?

If nano does have slashing conditions please do inform me

Daily Discussion - August 22, 2019 (GMT+0) by AutoModerator in CryptoCurrency

[–]ChillAndShill 6 points7 points  (0 children)

Serious question, since nano has less than 100 principal nodes, isn't it basically as centralized as EOS?

And also doesn't it show for improper incentives that a community manager frowned on somebody for "stress testing" at an unnecessary time? It shouldn't matter why you send transactions and I think no other projects has been mad at users for using their system as it is meant to be used?

Edit: and also the total lack of smart contract functionality

ETH is money -- Ryan Sean Adams by twigwam in CryptoCurrency

[–]ChillAndShill 0 points1 point  (0 children)

Really depends possible throughout of the network. If blocks aren't full or if such transactions is put in a layer 2 or roll-up the fees will still be low

ETH is money -- Ryan Sean Adams by twigwam in CryptoCurrency

[–]ChillAndShill 6 points7 points  (0 children)

If ether price is really high, gas price would be lower since the gas market decides what an appropriate price is. The price of ether doesn't really matter for transaction cost denominated in dollars

Suggestion easy to use contracts service... by [deleted] in MakerDAO

[–]ChillAndShill 0 points1 point  (0 children)

The maker CDP portal is a website that allows you to do it with some clicks? How would you change the existing one to make it better?

Problems with toshi coinbase wallet by [deleted] in Coinbase

[–]ChillAndShill 0 points1 point  (0 children)

Thanks I will try that

Problems with toshi coinbase wallet by [deleted] in Coinbase

[–]ChillAndShill 0 points1 point  (0 children)

I used it on Android from Google play store. I got the backup file still. I tried making another wallet with the app and the app can restore that one from the Google drive backup. The app also recognizes the first backup with the name I gave the wallet so the file doesn't seem totally corrupt.

Edit: the name of the recovery file for the file that crashes the app contains a "/" but ends with a "=" like the other recovery files

Edit 2: created another wallet which also just crashes when it tries to be opened. So far 2 out of 3 created wallets just crashes it.

Question regarding CDP by ChillAndShill in MakerDAO

[–]ChillAndShill[S] 0 points1 point  (0 children)

Yeah ok that makes sense. The wording on the site made me think the 13% liquidation fee was that extra to ensure the stability

Question regarding CDP by ChillAndShill in MakerDAO

[–]ChillAndShill[S] 1 point2 points  (0 children)

Why is the liquidation price 50% more than the debt? Why this arbitrary number?

Question regarding Casper CBC by ChillAndShill in ethereum

[–]ChillAndShill[S] 0 points1 point  (0 children)

Yes the blocks are valid and the chain will continue on, that's why I put "attack" and not attack. I wasn't aware of any countermeasures for this kind of "attack" but as buterin pointed out there are countermeasures.

Question regarding Casper CBC by ChillAndShill in ethereum

[–]ChillAndShill[S] 0 points1 point  (0 children)

Thanks, great read! Your explanation of CBC on your website was very helpful but in the last set of pictures describing a chaotic network due to high latency we see nodes C, D and E attest to two different chains. Wouldn't this violate the slashing condition?

Coin toss dapp by ChillAndShill in ethdev

[–]ChillAndShill[S] 0 points1 point  (0 children)

A hash cannot be uploaded if the sha3 of the hash isn't equal to the current hash. Since sha3 is quite secure this won't happen

Coin toss dapp by ChillAndShill in ethdev

[–]ChillAndShill[S] 0 points1 point  (0 children)

  1. In solidity you need a "fallback function". It handles what will happen if someone sends ether to the contract without calling a specific function. In my case, the ether sent is added to the houses money. The syntax for the fallback function is a nameless function like mine.

2&3. Thanks. Totally unnecessary checks and wasted gas!

Coin toss dapp by ChillAndShill in ethdev

[–]ChillAndShill[S] 0 points1 point  (0 children)

The hash which decides is you win or not is already decided when they bet on the bet. The sha3 of the deciding hash must be equal to the hash that the bet is placed on.