We decided it’s time to explain how to make money in LORDLESS. Would you love to write an article to explain it? we prepare 3ETH for authors.

Rules:

  1. This activity will end on February 23 GST.

Rewards for author:

  • 1.5 ETH for first place

Rewards will be paid out…


LORDLESS implemented the features mentioned in this article;

LORDLESS & Trust Wallet

On the mobile side, LORDLESS will guide users to open web pages with Trust Wallet in the absence of Web3.

If the user does not install Trust Wallet, we will prompt to download


token airdrop

Contract Code

pragma solidity ^0.4.21;

import "../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";


contract Airdrop is Ownable {
/**
* @dev daAirdrop to address
* @param _tokenAddr address the erc20 token address
* @param dests address[] addresses to airdrop
* @param values uint256[] value(in ether) to airdrop
*/
function doAirdrop(address _tokenAddr, address[] dests, uint256[] values) onlyOwner public
returns (uint256) {
uint256 i = 0;
while (i < dests.length) {
ERC20(_tokenAddr).transferFrom(msg.sender, dests[i], values[i] * (10 ** 18));
i += 1;
}
return(i);
}

Usage

  1. set approve to this airdrop contract address
  • _tokenAddr : erc20 token address

LORDLESS Official

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store