How to Mint and Burn $LDOGE with $LUNA

Lunadoge
4 min readMay 17, 2021

Note: This is for advanced users only. If you do not fully understand what you are dealing with, you may lose some or all of your funds, and the LDOGE development team does not hold any obligations to recover any losses. If you find this process too complicated, simply buy LDOGE with ETH on Uniswap.

  1. Lunadoge contracts are built on the Ethereum blockchain.

Thus, you will need to hold LUNA wrapped in ERC-20 with an Ethereum wallet in order to mint LDOGE.

If you already hold ETH, USDT (Tether USD), or wrapped UST, buy LUNA from Uniswap: ETH — LUNA, USDT — LUNA, UST — LUNA.

Alternatively, if you already hold LUNA on a Terra Station wallet, use bridge.terra.money to move LUNA tokens over to an Ethereum wallet. This option would be the best for those who already hold LUNA or bought LUNA from an exchange.

If you hold LUNA on a personal Terra Station wallet, install the Terra Station extension and visit bridge.terra.money. Enter an amount and an Ethereum destination address. Clicking on the big blue button will invoke a Terra Station popup asking you to sign the bridging transaction.

If you hold LUNA on a centralized exchange that allows LUNA outbound transfers on the Terra blockchain, perform the following:

  1. On your exchange wallet, enter Shuttle’s Ethereum bridging address (terra13yxhrk08qvdf5zdc9ss5mwsg5sf7zva9xrgwgc) as the destination address for LUNA transfers.
  2. Enter your destination Ethereum address as the transaction memo. IMPORTANT: failing to provide or incorrectly providing an Ethereum address as a memo may result in permanent loss of your funds.

Note that:

Shuttle charges a fee only for transferring assets from Terra to Ethereum/BSC, and the quantity is calculated as max($1, 0.1% * amount). A transaction with tiny amount smaller than $1 value will be ignored.

2. Once you have wrapped LUNA on your Ethereum Web3 wallet, you may now proceed to interact with Lunadoge contracts.

Visit https://etherscan.io/address/0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4#writeContract. Please verify that the address of the contract you are interacting with is 0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4.

Also, visit the official token contract address for wrapped LUNA: https://etherscan.io/address/0xd2877702675e6ceb975b4a1dff9fb7baf4c91ea9#writeContract. Please verify that the address of the contract you are interacting with is 0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9.

Open the contract write page for wrapped LUNA (0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9). You will see the following interface:

Click on the “Connect to Web3” button. This will invoke a MetaMask connection confirmation window. Make sure the wallet you are connecting is the one holding wrapped LUNA tokens.

Click on the “approve” tab, and enter the following values;

spender (address): 0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4

amount (uint256): 115792089237316195423570985008687907853269984665640564039457584007913129639935

This will provide maximum spending approval for wrapped LUNA from your wallet to contract 0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4, which is the official Lunadoge contract. If you feel insecure about providing infinite approvals and its potential security risks, adjust the amount accordingly.

Finally, click on “Write”. This will invoke a MetaMask popup asking you to sign this approval transaction.

3. In order to mint new LDOGE, visit https://etherscan.io/address/0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4#writeContract . Please verify that the address of the contract you are interacting with is 0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4. The above approval transaction only has to be done once per wallet; if you haven’t done so, please perform the above steps before proceeding.

Click on the “Connect to Web3” button. This will invoke a MetaMask connection confirmation window. Make sure the wallet you are connecting is the one holding wrapped LUNA tokens, and the one that you have provided approval to this contract prior.

Click on the “moon” tab, and enter the following;

_amount (uint256): (the amount of LUNA you want to mint LDOGE with) * 10¹⁸ = click on the “+” button next to this field, and select “10¹⁸” after entering the desired amount of LUNA.

For example, if you want to mint 100 LUNA worth of LDOGE:

and click “Write”. This will invoke a MetaMask popup asking you to sign this transaction.

4. In order to burn LDOGE back to LUNA, first select “approve” on the same page (https://etherscan.io/address/0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4#writeContract). Enter the following values;

spender (address): 0x845e23098a2C08390A0c2Aa81b312Eb685b4F1D4

amount (uint256): 115792089237316195423570985008687907853269984665640564039457584007913129639935

and click Write to sign the transaction with the Ethereum wallet holding LDOGE. This only needs to be done once per wallet.

Click on the “unmoon” tab, and enter the following:

_amount (uint256): (the amount of LDOGE you want to burn) * 10¹⁸= click on the “+” button next to this field, and select “10¹⁸” after entering the desired amount of LDOGE.

For example, if you want to burn 100 LDOGE:

and click “Write”. This will invoke a MetaMask popup asking you to sign this transaction.

--

--