create account

EOS Sale tutorial - the MyEtherWallet version by nadejde

View this thread on: hive.blogpeakd.comecency.com
· @nadejde ·
$26.40
EOS Sale tutorial - the MyEtherWallet version
This is a short tutorial explaining how to use MyEtherWallet to get the same information and result you can get with the official interface on https://eos.io website.

For the rest of the tutorial, you will need the contract address and the ABI (visible under Contract Source tab). You can get those both by following the link posted here:
 
https://steemit.com/eos/@eosio/eos-io-temporarily-unavailable
 
Everything you do from now on begins with these steps:
1. Go to https://www.myetherwallet.com/#contracts
2. Add the contract address and ABI in the provided fields
3. Select the required function
 
Let's start with some light reading:

# Get the current window number
 
Find out what the current window number is.
Function name: *today*
Returns: *0-index number. 0 is the first 5-day​ window* 

# Get the number of tokens on sale today:

Function name: *createOnDay*
Parameter: *window number*
Returns: *Total numbers of tokens on sale on the day in it’s smallest subdivision divide this by 10^18 to get the number of actual EOS*
 
Example for day 0 returns: 200000000000000000000000000
To get number of actual EOS you will get: 200000000000000000000000000 / (10^18) = 200000000 (200,000,000)

# Number of total ETH contributed on the day:

Function name: *dailyTotals*
Parameter: *window number*
Returns: *total ETH contributed in the window in wei. Divide by 10^18 to get number in ETH*

# How much ETH did you send on the day:

Function name: *userBuys*
Parameters: *window number, address*
Returns: *total ETH contributed by that address​ sin the window. Number returned is in WEI (divide by 10^18 to get ETH)*

Using the numbers above you can calculate the following:
Effective price: dailyTotals / createOnDay
EOS you get: userBuys / Effective price

# But I want to BUY BUY BUY!

Of course, ​the three most important operations you want to know about are:
1. Sending your ETH in
2. Claiming your EOS
3. Registering the EOS public key so you can claim then on EOS chains

The three are described on the MyEtherWallet page of the contract:
![instruction.jpeg](https://steemitimages.com/DQmc1owqfhStCi1ZS1FChWY6ULezrnNNns96eNLQR29Aemc/instruction.jpeg)

Let’s dissect this a bit:
## Generate EOS key-pair

You need this to be able to claim the currency on all blockchains that will be launched on eos.io software who choose to use this distribution as they first block. You can use this tool to generate a pair (works in any browser): https://nadejde.github.io/eos-token-sale/
**SAVE YOUR PRIVATE KEY! YOU CAN NOT RECOVER IT!**
 
## Register/Map your EOS key

After you have the key you can associate the address that has the EOS tokens to the new EOS key. On any chain that uses EOS.io you will be able to use the generated KEY to access currency.
 
## Fund EOS Contract

This is how you send ETH in to get EOS. Straight forward!

## Claim EOS Tokens

Because of the way this sale is built you do not get the EOS tokens right away. You only get them at the end of the window when the final price for that window has been settled. This is why you need to use the claim function when you actually want to take ownership of the EOS tokens. You can use this at the end of every day.
👍  , , , , , , , , , , , , , , ,
properties (23)
authornadejde
permlinkeos-sale-tutorial-the-myetherwallet-version
categoryeos
json_metadata{"tags":["eos"],"image":["https://steemitimages.com/DQmc1owqfhStCi1ZS1FChWY6ULezrnNNns96eNLQR29Aemc/instruction.jpeg"],"links":["https://eos.io","https://steemit.com/eos/@eosio/eos-io-temporarily-unavailable","https://www.myetherwallet.com/#contracts","https://nadejde.github.io/eos-token-sale/"],"app":"steemit/0.1","format":"markdown"}
created2017-06-26 20:40:15
last_update2017-06-26 20:40:15
depth0
children3
last_payout2017-07-03 20:40:15
cashout_time1969-12-31 23:59:59
total_payout_value21.728 HBD
curator_payout_value4.676 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,189
author_reputation794,352,858,143
root_title"EOS Sale tutorial - the MyEtherWallet version"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,232,028
net_rshares2,858,091,099,171
author_curate_reward""
vote details (16)
@billbutler ·
$9.67
Nice. Thanks for this guide.
👍  ,
properties (23)
authorbillbutler
permlinkre-nadejde-eos-sale-tutorial-the-myetherwallet-version-20170626t222812043z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2017-06-26 22:28:12
last_update2017-06-26 22:28:12
depth1
children0
last_payout2017-07-03 22:28:12
cashout_time1969-12-31 23:59:59
total_payout_value9.660 HBD
curator_payout_value0.014 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation31,319,794,402,837
root_title"EOS Sale tutorial - the MyEtherWallet version"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,244,977
net_rshares1,051,470,070,974
author_curate_reward""
vote details (2)
@brucebrownftw ·
$0.10
Great info.  Will be able to calculate how much EOS I have.
👍  ,
properties (23)
authorbrucebrownftw
permlinkre-nadejde-eos-sale-tutorial-the-myetherwallet-version-20170626t211613561z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2017-06-26 21:16:18
last_update2017-06-26 21:16:18
depth1
children1
last_payout2017-07-03 21:16:18
cashout_time1969-12-31 23:59:59
total_payout_value0.095 HBD
curator_payout_value0.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length59
author_reputation1,092,260,798,193
root_title"EOS Sale tutorial - the MyEtherWallet version"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,236,121
net_rshares11,477,630,375
author_curate_reward""
vote details (2)
@nadejde ·
$0.07
Prepare for a shock:) also keep in mind the value is only final after the window closes.
👍  
properties (23)
authornadejde
permlinkre-brucebrownftw-re-nadejde-eos-sale-tutorial-the-myetherwallet-version-20170626t211806813z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2017-06-26 21:18:06
last_update2017-06-26 21:18:06
depth2
children0
last_payout2017-07-03 21:18:06
cashout_time1969-12-31 23:59:59
total_payout_value0.052 HBD
curator_payout_value0.016 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length88
author_reputation794,352,858,143
root_title"EOS Sale tutorial - the MyEtherWallet version"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id6,236,354
net_rshares7,448,958,848
author_curate_reward""
vote details (1)