How To Manually Burn LAB/PEX To Mint EGGS Using Remix
1
Prerequisites
2
- MetaMask
3
- An account with LAB or PEX
4
- Convert Ether to WEI https://eth-converter.com/
5
6
Contracts you will need.
7
- ERC20.sol - https://gist.github.com/chrisfranko/cf633bd6b21bdd430e7fc10c9cef19ff
8
- BurnToMint.sol - https://gist.github.com/chrisfranko/6ee76a7c6f8a666d265a9639d71c837d
9
10
Address’s
11
- LAB - 0x3b4cfcc4532eec161860cb6544f49947544d940d
12
- PEX - 0x4f5ec5a69dbe12c48ca1edc9c52b1e8896aed932
13
- BurnToMint - 0x5AD51ce8073ff3aBf48a2966f720eA4e09ec1648
14
15
Byte32
16
- LAB: 0x4c41420000000000000000000000000000000000000000000000000000000000
17
- PEX: 0x5045580000000000000000000000000000000000000000000000000000000000
18
19
Steps
20
21
1. Setup Remix
22
1. Go To https://remix.ethereum.org
23
2. Click “Plugins” at the bottom of left hand navigation menu.
24
3. Activate Solidity Compiler
25
4. Activate Deploy & Run Transactions
26
2. Add Contracts
27
1. Click the File Explorer Icon
28
2. Click the + sign to create a new file
29
3. Create file named BurnToMint.sol
30
4. Go to BurnToMint.sol source and copy the source code
31
5. Paste burntoMint source into the BurnToMint file created on Remix
32
6. Click the + sign
33
7. Create file named Token.sol
34
8. Go to ERC20.sol source and copy the source code
35
9. Paste ERC20 source into the ERC20 file created on Remix
36
3. Load Burn To Mint Contracts
37
1. Click on the BurnToMint TAB
38
2. Select The “Solidity Compiler” from the left menu
39
3. Click “Compile BurnToMint.sol”
40
4. Click “Deploy & Run Transactions” from the left menu
41
5. Change “Environment” to “Injected Web3” from the drop down menu
42
6. Select the account that has the EXP and Tokens
43
7. Paste the BurnToMint address into the blue “At Address” input
44
8. Click “At Address”
45
4. Load BurntoMint at Tokens
46
1. Click the ERC20 TAB
47
2. Select The “Solidity Compiler” from the left menu
48
3. Click “Compile ERC20.sol”
49
4. Click “Deploy & Run Transactions” from the left menu
50
5. Change “Environment” to “Injected Web3” from the drop down menu
51
6. Select the account that has the EXP and Tokens
52
7. Paste the TOKEN address into the blue “At Address” input
53
8. Click “At Address”
54
5. Approve Tokens
55
1. At the Deploy & Run Transactions View scroll to the bottom of the page
56
2. Select the token you’d like to approve
57
3. Find the orange “Approve” option and click the down arrow
58
4. Paste “BurnToMint” address into “spender”
59
5. Paste “100000000000000000000000000” into “amount”
60
6. Click “transact”
61
7. Click “ok”
62
8. Follow meta mask prompts
63
6. BurnToMint
64
1. At the Deploy & Run Transactions View scroll to the bottom of the page
65
2. Select “BurnToMint”
66
3. Select “burn tokens” and click the black arrow
67
4. Paste the corresponding Bytes32 for the token you want to burn
68
5. Use the Ether Converter to convert the amount of tokens you want to burn into WEI
69
6. Click transact
70
7. Click ok
71
8. Follow the metamask prompts
72
7. Check Balance
73
1. Go to eggs.cool or eggs.cool/ex/
Copied!
Last modified 7mo ago
Copy link