Exchange EGR tokens for XEG tokens. Step by step guide.

Engraved
3 min readFeb 11, 2018

--

The DAO manages the quarterly distribution of the collected fees (coming from the Ownership and Integrity registries) between the tokenholders of XEG (Engraved Coin). The exchange rate is 1 EGR = 100 XEG, so if you are holding 1,000 EGR you will finish the process with 100,000 XEG.

This is a tutorial for MyEtherWallet but you can reproduce these steps with any other Ethereum interface.

Step 1

First go to the “Contracts” tab.

1.1) Write the EGR token address in “Contract Address” :

0x044DD17bbbcbF1CF65f543918561BF8CF8130e7B

1.2) Fill in the “ABI / JSON interface” with the following code:

[{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

1.3) Then, press “Access”.

1.4) Select the “approve” function in the “Select a function” drop-down.

1.5) Write the Engraved DAO address in the “_spender” field:

0xC1415827CE9D43fd58349cCbAA189BC58fC21d8F

1.6) Write the amount of EGR tokens you have adding 3 more zeros in the “_amount” field.

So for example, if you are holding 1,000 EGR, you should write:

1000000

You are writing the total number of units of the token that you hold, but since EGR has 3 decimals, 3 more zeros have to be indicated.

You can leave the proposed value for the “Gas Limit” (be sure that you have ether enough to pay for the gas). Then, press “Generate Transaction”.

  1. 7) Finally, press “WRITE”, then “Generate Transaction” and “Yes, I am sure! Make transaction.”.

Note: wait until the first transaction is finished before continuing.

Step 2

Go to the “Contracts” tab again.

2.1) Write the Engraved DAO address in “Contract Address” :

0xC1415827CE9D43fd58349cCbAA189BC58fC21d8F

2.2) Fill in the “ABI / JSON interface” with the following code:

[{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"tokenExchange","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

2.3) Then, press “Access”.

2.4) Select the “tokenExchange” function in the “Select a function” drop-down.

2.5) Write the amount of EGR tokens you have adding 3 more zeros in the “_amount” field.

So for example, if you are holding 1,000 EGR, you should write:

1000000
  1. 7) Finally, press “WRITE”, then “Generate Transaction” and “Yes, I am sure! Make transaction.”.

Step 3

It’s done! Now just check that you have your XEG tokens in Etherscan, for example.

Have a good week,

The Engraved Team

--

--

Engraved

A Trustworthy Distributed Platform for Copyright Registration and File Integrity Verification