Airdrops & activities

How to get ahead of the curve for LayerZero airdrops? Opportunities for potential projects to participate in LayerZero airdrops!

LayerZero Labs is a network communication protocol designed to simplify cross-chain messaging.

In simple terms, the LayerZero protocol is a link that connects different blockchains, allowing tokens to be transferred from one network to another. Prior to LayerZero, users needed to use a cross-chain bridge to transfer tokens between different blockchains, which required 2-3 transactions and incurred commissions for each transaction.

LayerZero is a partner of global fintech company Circle, which helps businesses and developers leverage the power of stablecoins for payments and online commerce worldwide.

Investment: $170 million led by Sequoia Capital, a16z, Coinbase, Binance, Tiger Global, Uniswap, and PayPal Ventures.

Interaction Time: 1 hour

Rewards: In the form of future LayerZero (ZRO) tokens and airdrops from projects that test protocol solutions.

  1. Testnet

We will start with the testnet before moving on to other activities.

Step 1 – Go to the site and connect your wallet:

https://usdcdemo.layerzero.network/bridge

Step 2 – Claim test tokens:

USDC Faucet: usdcfaucet.com – tokens used for exchange.

Choose ETH and/or AVAX network.

Goerli Faucet: goerlifaucet.com – Claim ETH test tokens.

AVAX Faucet: faucet.avax.network – Tokens used for exchange and gas. Choose USDC and AVAX.

Step 3 – Perform multiple USDC exchanges between networks:

https://usdcdemo.layerzero.network/bridge

Use Goerli Testnet for network transactions.

II. Mainnet Transactions

Next, we will introduce the projects on the LayerZero protocol in the mainnet, where you can actively participate and look forward to Retrodrop. Interoperability is optional, but it may increase opportunities for rewards.

I. STARGATE
Stargate is a bridge and main project on the LayerZero protocol. Stargate has its own STG token, which you can use to participate in voting.

Cost of using Stargate bridge:

  • Tokens for exchange: 10U or more.
  • Gas fees for exchange: Approximately 10U in ETH; up to $2 in other networks.
  • Staking fees: 0.05-0.5U.
  • Obtain Role 39U (Role **100 STG) and 1K LP Farmer Role.

Go to Stargate.finance and connect your MetaMask wallet.

  1. Exchange tokens on different networks:

Exchange tokens in the “Transfer” option. When choosing a network, the gas fee will be different for each network:

For example, if you want to trade on Avalanche, you need AVAX; on the Matic network, you need MATIC tokens; on the Arbitrum network, you need ETH tokens from the same network.

If you don’t have enough tokens to pay for gas on some networks, you can use the Bungee service to exchange a small amount of tokens for gas without paying extra fees for transactions between networks.

The Transfer (Gas Estimator) will also help you save on gas fees. Clicking “Check Transfer Gas Estimator” will show the average gas fee for transfers between networks.

We select the network, tokens for exchange, set the amount, and confirm in MetaMask.

  1. Add liquidity:

Switch to Pools and select a pool to add liquidity. I choose a pool on the Arbitrum network:

Under the “Available” tab, you will see the pools you can use and the available tokens.

As a liquidity provider, you can also form an LP to earn rewards in the form of STG tokens.

  1. Farm STG:

Click “Go to Farm” to enter the farm and deposit tokens. You can obtain the 1K LP Farmer role, which is only available for farming, and earn annualized yield rewards. You can cancel farming at any time by removing the option.

Obtain role:

Enter the Stargate Discord and go to the #guild-join channel to obtain a role.

  1. Member Role:

Enter Guilds and connect your MetaMask wallet and Discord

Once you hold at least 100 STG on any network, you can obtain the Role **100 STG, which may require a cost of 40U and can be purchased on Pancake Swap.

STG token contract: 0xb0d502e938ed5f4df2e681fe6e419ff29631d62b

After receiving the tokens, you will obtain a role.

Once your mainnet has over 25 veSTG, you can use the veStaker role.

Please note: The STG that is staked will be deducted from your balance, which will result in losing the effect of 100 STG, and you will not be able to withdraw it before the selected deadline.

If you are ready to interact, go to the Stake section and you will see your previous stakes. I have staked some on the Arbitrum and BSC network:

Click on any of them and set the parameters for staking.

This role requires at least 25 veSGT. To obtain them, I need to lock 100 STG for 9 months. Even if you stake for only one month, you will still receive some veSGT, which will open up opportunities for participating in voting.

  1. The role of 1K LP Farmer:

By participating in this activity, you will have the opportunity to receive 1K tokens for farming. The benefit is voting – voting usually comes into play when calculating rewards, so we don’t miss out.

After obtaining veSTG, we go to the website.

We connect our wallet, join Stargate DAO, and vote for active proposals (which are continuously updated).

Please note: Voting is issued when creating the vote, meaning that if you only received veSTG, you will not be able to vote for the current vote. Please wait for the next one.

(2) Hashflow:

Hashflow is a decentralized exchange designed for interoperability, zero slippage, and MEV protection, allowing trading of any asset on any chain without paying commissions.

Connect your wallet at https://app.hashflow.com/, select a network, set the tokens and amount for the exchange, and make some trades.

Cost: Gas is within 0.3 U, depending on the different chains.

(3) Bridge Apartments:

Multiple uses of the bridge at https://theaptosbridge.com/bridge are required.

Please note: There is a 3-day (72-hour) delay when crossing from Aptos to any network.

  1. Connect your MetaMask wallet and any Aptos wallet.
  2. Choose a network and set the token amount.
  3. Exchange the tokens.

(4) Liquidswap Bridge:

Log in to the bridge at https://bridge.liquidswap.com/.

Please note: There is a 3-day (72-hour) delay when transferring from Aptos to any network.

Click “Connect.”

Connect your MetaMask and Aptos wallets.

Trade.

(5) SushiXSwap:

Connect your wallet and make some cross-chain exchanges at https://www.sushi.com/xswap.

(6) WooFi:

Interact between networks at https://fi.woo.org/.

(7) Rage Trade:

Trade with leverage and use their storage at https://www.app.rage.trade/trade/0xa237af5e.

  1. Connect your wallet.
  2. Have at least 20U in funds.

By the way, you can exchange ETH for Arbitrum’s USDC in the exchange above (WooFi) at a cost of 0.23U * 3 transactions (don’t take too much leverage).

If you don’t have trading experience, opening and closing positions for a few positions is enough, and you don’t have to wait for favorable market fluctuations.

To use their storage, go to Vaults, choose a vault, and you may see the following image indicating that the “Stablecoin Farm” is already full:

So I will interact in the Recycled Liquidity (which may also be full when you interact).

  1. Click “Approve” and connect your wallet.

  1. Specify the amount and click “Deposit and Stake.” To withdraw, click “Withdraw.”

(8) Angle Protocol:

Bridges $ANGLE or agEUR tokens can be exchanged on the website: https://app.angle.money/#/bridges-ANGLE.

Connect your wallet.

  1. Check the network in which you will purchase agEUR.
  2. Go to the agEUR section.
  3. Choose “Swap.”
  4. Specify the token and its amount.
  5. Approve the token.
  6. Proceed with the exchange.

Then, you can swap it back.

Additionally, you can use $ANGLE for cross-chain transfers, but the interactions above are already sufficient.

In the “Buy $ANGLE” section, purchase some $ANGLE (with a gas fee of 2.5U on the ETH network).

Next, we go to Bridge and make a few exchanges of $ANGLE between networks. The gas fee is 5U on the ETH network, and gas is around 0.15U between other networks.

(9) OmniBTC:

Make cross-chain exchanges at https://omnibtc.finance/.

To cross from Optimism to the BNB network, a gas fee of 0.26U is required.

By the way, APT can be exchanged through this bridge, and the gas fee is now 1.5U.

(10) LayerZero Domain:

The website is https://lz.domains/. Purchasing a domain name typically costs around 10U.

(11) Radiant:

The Landing protocol on Arbitrum. If you want to interact, change the network to Arbitrum before connecting your wallet; otherwise, you won’t be able to connect.

Website: https://app.radiant.capital/#/dashboard

  1. Making a deposit.

Confirm in MetaMask.

  1. Switch to “Borrow” and borrow tokens.

You can borrow any token using USDC.

  1. Switch to “Stake.”

To enter the “Stake” section, you need to add liquidity to the wETH/RDNT pool on SushiSwap using the Arbitrum network.

If you don’t have wETH and RDNT tokens, go to SushiSwap to purchase them.

In the “Liquidity” section, choose “Add,” select the wETH-RDNT tokens and their amount, and confirm.

Go back to Radiant, and you will see the added liquidity. Click “Stake” and confirm.

Then, you can extract the liquidity using the “Unstake” function.

(12) TofuNFT:

For this project, you can buy and sell NFTs on https://tofunft.com/ranking?network=10.

(13) Clearpool:

You can deposit USDC into a pool on the Ethereum network or stake using CPOOL on https://app.clearpool.finance/?market=ethereum.

III. LayerZero Testnet Bridge:

LayerZero has built a bridge between the Ethereum mainnet and the Goerli testnet, allowing for easy token exchanges without the need for a faucet.

The cost of 1 goETH is 0.1 USD, and there are 12,500 goETH in the pool, which is open and hosted on Uniswap. You can add LP to two pools:

  • Goerli: ETH/mETH (“Mainnet ETH”)
  • Ethereum: ETH/gETH (“Goerli ETH”)

This bridge is the first of several public products that LayerZero is preparing to launch and is waiting for cheaper gas fees.

LayerZero ETH-GOERLI Bridge.

IV. LayerZero Smart Contract Deployment:

Step 1: Log in to Remix at https://remix.ethereum.org/.

Step 2: Create a file with any name (it’s best to name it something like Arbitrum1 or LayerZero5 to know which code and network you’re inserting).

Step 3: Paste the code.

// SPDX-License-Identifier: MIT
 pragma solidity >= 0.8  .17 ;
import "<https://github.com/LayerZero-Labs/solidity-examples/blob/main/contracts/lzApp/NonblockingLzApp.sol>" ; 
import "@openzeppelin/contracts/token/ERC20/ERC20.sol" ; contract Harmony is NonblockingLzApp, ERC20 { 
    uint16 destChainId; constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) ERC20( "Cross Chain Token" , "CCT" ) { 
        if (_lzEndpoint == 0x9740FF91F1985D8d2B71494aE1A2f723bb3Ed9E4 ) destChainId = 109 ; 
        if (_lzEndpoint == 0x3c2269811836af69497E5F486A85D7316753cf62 ) destChainId = 116 ;
        _mint(msg.sender, 1000000 * 10 ** decimals()); 
    } function _nonblockingLzReceive(uint16, bytes memory, uint64, bytes memory _payload) internal  override { 
       (address toAddress, uint amount) = abi.decode(_payload, (address, uint )); 
       _mint(toAddress, amount); 
    }      function bridge ( uint _amount ) public payable { 
        _burn(msg.sender, _amount); 
        bytes memory payload = abi.encode(msg.sender, _amount);
        _lzSend(destChainId, payload, payable(msg.sender), address( 0x0 ), bytes( "" ), msg. value ); 
    }      function trustAddress ( address _otherContract ) public onlyOwner { 
        trustedRemoteLookup[destChainId] = abi.encodePacked(_otherContract, address( this ));     
} 
}

Compare:

Check if your working “workspace” exists.

The contract contains the Endpoint and ChainId of the network where we will deploy the contract.

For other networks, refer to this list of Endpoints and ChainIds:

https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids

Important note: The endpoints in the above list should not be the same, i.e., Arbitrum-Optimism cannot be deployed. In our example, we will deploy to Fantom and Polygon for a penny each, and you will need some tokens on these networks to pay the fees.

The endpoints and ChainId are already inserted in the contract (the ChainId should always be cross-inserted if deploying to other networks).

Before each deployment, it’s best to rename the contract with the name of the network we are deploying to.

If you’re ready with Polygon, the contract will look like this:

Step 4: Continue Deployment

Press Ctrl+S or click the green triangle above to compile our contract.

Then, in MetaMask, set the network to Polygon. Click on the ether icon on the left-hand side, select “Injected Provider” under Environment as usual, and insert the Polygon endpoint (0x3c2269811836af69497E5F486A85D7316753cf62) into the Deploy window. Set the Gas Limit to 3000 at the top and then confirm the transaction in MetaMask.


Then we check from below, and if everything is okay, it should look like this, which means it’s ready:

Step 5: Next, we will deploy on the Fantom network. To do this, in the contract, change the name to “Fantom” and change the ENDPOINT near the Deploy button to the Fantom endpoint, then click “Deploy” (while remembering to switch the network in MetaMask to Fantom) and confirm the transaction:

After we have obtained the two contracts, we need to make them trusted.

To do this, follow these steps:

  1. In the Polygon network, copy the address of the Fantom contract that was created.
  2. Open the Polygon contract’s functions, which has a checkbox on the left side.
  3. Paste it into TrustAddress.
  4. Click the “TrustAddress” button and confirm in MetaMask.
  5. Switch the network to Fantom, copy the Polygon contract, and paste it into TrustAddress.

Then you will see this display, which indicates that you have completed each step without issue and the contract deployment has been completed:

That’s all. It’s recommended to review the steps multiple times if possible. We will update our guide as new projects are released.

That’s the end of the content. For more information, please follow:

GlodChain Twitter: https://twitter.com/fongva2

What's your reaction?

Related Posts

Load More Posts Loading...No More Posts.