How To Manually Burn LAB/PEX To Mint EGGS Using Remix

Prerequisites
- MetaMask
- An account with LAB or PEX
- Convert Ether to WEI https://eth-converter.com/
Contracts you will need.
- ERC20.sol - https://gist.github.com/chrisfranko/cf633bd6b21bdd430e7fc10c9cef19ff
- BurnToMint.sol - https://gist.github.com/chrisfranko/6ee76a7c6f8a666d265a9639d71c837d
Address’s
- LAB - 0x3b4cfcc4532eec161860cb6544f49947544d940d
- PEX - 0x4f5ec5a69dbe12c48ca1edc9c52b1e8896aed932
- BurnToMint - 0x5AD51ce8073ff3aBf48a2966f720eA4e09ec1648
Byte32
- LAB: 0x4c41420000000000000000000000000000000000000000000000000000000000
- PEX: 0x5045580000000000000000000000000000000000000000000000000000000000
Steps
1. Setup Remix
1. Go To https://remix.ethereum.org
2. Click “Plugins” at the bottom of left hand navigation menu.
3. Activate Solidity Compiler
4. Activate Deploy & Run Transactions
2. Add Contracts
1. Click the File Explorer Icon
2. Click the + sign to create a new file
3. Create file named BurnToMint.sol
4. Go to BurnToMint.sol source and copy the source code
5. Paste burntoMint source into the BurnToMint file created on Remix
6. Click the + sign
7. Create file named Token.sol
8. Go to ERC20.sol source and copy the source code
9. Paste ERC20 source into the ERC20 file created on Remix
3. Load Burn To Mint Contracts
1. Click on the BurnToMint TAB
2. Select The “Solidity Compiler” from the left menu
3. Click “Compile BurnToMint.sol”
4. Click “Deploy & Run Transactions” from the left menu
5. Change “Environment” to “Injected Web3” from the drop down menu
6. Select the account that has the EXP and Tokens
7. Paste the BurnToMint address into the blue “At Address” input
8. Click “At Address”
4. Load BurntoMint at Tokens
1. Click the ERC20 TAB
2. Select The “Solidity Compiler” from the left menu
3. Click “Compile ERC20.sol”
4. Click “Deploy & Run Transactions” from the left menu
5. Change “Environment” to “Injected Web3” from the drop down menu
6. Select the account that has the EXP and Tokens
7. Paste the TOKEN address into the blue “At Address” input
8. Click “At Address”
5. Approve Tokens
1. At the Deploy & Run Transactions View scroll to the bottom of the page
2. Select the token you’d like to approve
3. Find the orange “Approve” option and click the down arrow
4. Paste “BurnToMint” address into “spender”
5. Paste “100000000000000000000000000” into “amount”
6. Click “transact”
7. Click “ok”
8. Follow meta mask prompts
6. BurnToMint
1. At the Deploy & Run Transactions View scroll to the bottom of the page
2. Select “BurnToMint”
3. Select “burn tokens” and click the black arrow
4. Paste the corresponding Bytes32 for the token you want to burn
5. Use the Ether Converter to convert the amount of tokens you want to burn into WEI
6. Click transact
7. Click ok
8. Follow the metamask prompts
7. Check Balance
1. Go to eggs.cool or eggs.cool/ex/