ETH Price: $3,202.28 (+0.62%)
Gas: 3.74 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint154141472022-08-26 7:47:06885 days ago1661500026IN
0xbcC560D5...50E8dB896
0 ETH0.0004190110.2651669
Mint152601222022-08-02 1:17:45910 days ago1659403065IN
0xbcC560D5...50E8dB896
0 ETH0.0024404413.21128813
Mint152576492022-08-01 16:05:50910 days ago1659369950IN
0xbcC560D5...50E8dB896
0 ETH0.0017878217.70756668
Mint152559842022-08-01 10:00:03910 days ago1659348003IN
0xbcC560D5...50E8dB896
0 ETH0.000935827.14047176
Mint152546802022-08-01 5:17:11910 days ago1659331031IN
0xbcC560D5...50E8dB896
0 ETH0.00096477.77526878
Mint152538032022-08-01 1:55:39911 days ago1659318939IN
0xbcC560D5...50E8dB896
0 ETH0.000537395.89871531
Mint152530752022-07-31 23:02:08911 days ago1659308528IN
0xbcC560D5...50E8dB896
0 ETH0.000946677.36175965
Mint152522982022-07-31 20:05:26911 days ago1659297926IN
0xbcC560D5...50E8dB896
0 ETH0.0019313112.38308493
Mint152519302022-07-31 18:45:45911 days ago1659293145IN
0xbcC560D5...50E8dB896
0 ETH0.0030045919.1951495
Mint152518602022-07-31 18:28:46911 days ago1659292126IN
0xbcC560D5...50E8dB896
0 ETH0.0017759914.44556462
Mint152518462022-07-31 18:25:43911 days ago1659291943IN
0xbcC560D5...50E8dB896
0 ETH0.0022141216.59531229
Mint152517232022-07-31 17:58:04911 days ago1659290284IN
0xbcC560D5...50E8dB896
0 ETH0.001335938.20881123
Mint152516622022-07-31 17:45:04911 days ago1659289504IN
0xbcC560D5...50E8dB896
0 ETH0.001429349.30237163
Mint152515912022-07-31 17:31:34911 days ago1659288694IN
0xbcC560D5...50E8dB896
0 ETH0.0034418618.68964134
Mint152514342022-07-31 16:55:10911 days ago1659286510IN
0xbcC560D5...50E8dB896
0 ETH0.001946489.72227055
Mint152513202022-07-31 16:29:58911 days ago1659284998IN
0xbcC560D5...50E8dB896
0 ETH0.0023517514.86816097
Mint152513082022-07-31 16:27:10911 days ago1659284830IN
0xbcC560D5...50E8dB896
0 ETH0.0013300915.95244773
Mint152512362022-07-31 16:07:33911 days ago1659283653IN
0xbcC560D5...50E8dB896
0 ETH0.0012166510.40911986
Mint152500102022-07-31 11:38:47911 days ago1659267527IN
0xbcC560D5...50E8dB896
0 ETH0.000820495.66465304
Mint152484722022-07-31 5:53:01911 days ago1659246781IN
0xbcC560D5...50E8dB896
0 ETH0.000742168.04649906
Mint152474772022-07-31 2:04:43912 days ago1659233083IN
0xbcC560D5...50E8dB896
0 ETH0.001202895.81940184
Mint152470502022-07-31 0:37:31912 days ago1659227851IN
0xbcC560D5...50E8dB896
0 ETH0.001416848.80032027
Mint152469862022-07-31 0:21:04912 days ago1659226864IN
0xbcC560D5...50E8dB896
0 ETH0.0012089511.71198736
Mint152466262022-07-30 22:58:56912 days ago1659221936IN
0xbcC560D5...50E8dB896
0 ETH0.000966764.87494207
Mint152464252022-07-30 22:15:08912 days ago1659219308IN
0xbcC560D5...50E8dB896
0 ETH0.001508989.87532738
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AirdropHelper

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-07-17
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;


interface ILightERC721 {
  function transferFrom(address _from, address _to, uint256 _tokenId) external;
  function ownerOf(uint256 _tokenId) external view returns (address);
}

contract AirdropHelper {
  ILightERC721 public llamascape = ILightERC721(0xE5C7D9A18df4fDc12DB723761A862845612917bA);
  address public llama = 0xe8d939F1a9CC4e85E09AFf3d60d137a1Bea17b21;
  address public admin = 0x000000003604223ecc88b0205fc02efBe35F437f;

  mapping(address => uint[]) public wl;

  function addToWhitelist(address _addr,  uint _tokenId) internal {
    wl[_addr].push(_tokenId);
  }

  modifier onlyLlama {
    require(msg.sender == llama || msg.sender == admin);
    _;
  }

  function resetWhitelistForUser(address _addr) public onlyLlama {
    wl[_addr] = new uint[](0);
  }

  function uploadWhitelist(address[] calldata addresses, uint[] calldata tokenIds) public onlyLlama {
    for (uint i = 0; i < addresses.length; i++) {
      addToWhitelist(addresses[i], tokenIds[i]);
    }
  }

  function mint() public {
    uint[] storage ids = wl[msg.sender];
    for (uint i = 0; i < ids.length; i++) {
      llamascape.transferFrom(llama, msg.sender, ids[i]);
    }
  }

  function isWhitelisted(address user) public view returns (bool){
    // If llama doesn't own the token anymore, it has already been transferred
    return wl[user].length > 0 && llamascape.ownerOf(wl[user][0]) == llama;
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"llama","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"llamascape","outputs":[{"internalType":"contract ILightERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"resetWhitelistForUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"uploadWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"wl","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600080546001600160a01b031990811673e5c7d9a18df4fdc12db723761a862845612917ba1790915560018054821673e8d939f1a9cc4e85e09aff3d60d137a1bea17b21179055600280549091166f3604223ecc88b0205fc02efbe35f437f17905534801561007257600080fd5b5061078f806100826000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806397d6b91b1161005b57806397d6b91b146101255780639da67c6014610138578063c2fd6fbc1461014b578063f851a4401461016b57600080fd5b80631249c58b1461008d5780632f3102dd146100975780633af32abf146100bd5780636e0462b1146100e0575b600080fd5b61009561018b565b005b6100aa6100a53660046105a6565b610291565b6040519081526020015b60405180910390f35b6100d06100cb3660046105d2565b6102c2565b60405190151581526020016100b4565b6001546101009073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b4565b610095610133366004610642565b6103c0565b6100956101463660046105d2565b6104a6565b6000546101009073ffffffffffffffffffffffffffffffffffffffff1681565b6002546101009073ffffffffffffffffffffffffffffffffffffffff1681565b336000908152600360205260408120905b815481101561028d57600054600154835473ffffffffffffffffffffffffffffffffffffffff928316926323b872dd92169033908690869081106101e2576101e26106ae565b6000918252602090912001546040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b15801561026257600080fd5b505af1158015610276573d6000803e3d6000fd5b505050508080610285906106dd565b91505061019c565b5050565b600360205281600052604060002081815481106102ad57600080fd5b90600052602060002001600091509150505481565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040812054158015906103ba57506001546000805473ffffffffffffffffffffffffffffffffffffffff85811683526003602052604083208054948216949290911692636352211e92610338576103386106ae565b90600052602060002001546040518263ffffffff1660e01b815260040161036191815260200190565b602060405180830381865afa15801561037e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a2919061073c565b73ffffffffffffffffffffffffffffffffffffffff16145b92915050565b60015473ffffffffffffffffffffffffffffffffffffffff163314806103fd575060025473ffffffffffffffffffffffffffffffffffffffff1633145b61040657600080fd5b60005b8381101561049f5761048d858583818110610426576104266106ae565b905060200201602081019061043b91906105d2565b84848481811061044d5761044d6106ae565b9050602002013573ffffffffffffffffffffffffffffffffffffffff90911660009081526003602090815260408220805460018101825590835291200155565b80610497816106dd565b915050610409565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314806104e3575060025473ffffffffffffffffffffffffffffffffffffffff1633145b6104ec57600080fd5b604080516000808252602080830180855273ffffffffffffffffffffffffffffffffffffffff8616835260038252938220925183548185558484529190922061028d949181019291821561055c579160200282015b8281111561055c578251825591602001919060010190610541565b5061056892915061056c565b5090565b5b80821115610568576000815560010161056d565b73ffffffffffffffffffffffffffffffffffffffff811681146105a357600080fd5b50565b600080604083850312156105b957600080fd5b82356105c481610581565b946020939093013593505050565b6000602082840312156105e457600080fd5b81356105ef81610581565b9392505050565b60008083601f84011261060857600080fd5b50813567ffffffffffffffff81111561062057600080fd5b6020830191508360208260051b850101111561063b57600080fd5b9250929050565b6000806000806040858703121561065857600080fd5b843567ffffffffffffffff8082111561067057600080fd5b61067c888389016105f6565b9096509450602087013591508082111561069557600080fd5b506106a2878288016105f6565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610735577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561074e57600080fd5b81516105ef8161058156fea26469706673582212203eaf10c3d682df05599246b6199e84c6ed5ab3627821120688ce49494aa2394464736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c806397d6b91b1161005b57806397d6b91b146101255780639da67c6014610138578063c2fd6fbc1461014b578063f851a4401461016b57600080fd5b80631249c58b1461008d5780632f3102dd146100975780633af32abf146100bd5780636e0462b1146100e0575b600080fd5b61009561018b565b005b6100aa6100a53660046105a6565b610291565b6040519081526020015b60405180910390f35b6100d06100cb3660046105d2565b6102c2565b60405190151581526020016100b4565b6001546101009073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b4565b610095610133366004610642565b6103c0565b6100956101463660046105d2565b6104a6565b6000546101009073ffffffffffffffffffffffffffffffffffffffff1681565b6002546101009073ffffffffffffffffffffffffffffffffffffffff1681565b336000908152600360205260408120905b815481101561028d57600054600154835473ffffffffffffffffffffffffffffffffffffffff928316926323b872dd92169033908690869081106101e2576101e26106ae565b6000918252602090912001546040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b15801561026257600080fd5b505af1158015610276573d6000803e3d6000fd5b505050508080610285906106dd565b91505061019c565b5050565b600360205281600052604060002081815481106102ad57600080fd5b90600052602060002001600091509150505481565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040812054158015906103ba57506001546000805473ffffffffffffffffffffffffffffffffffffffff85811683526003602052604083208054948216949290911692636352211e92610338576103386106ae565b90600052602060002001546040518263ffffffff1660e01b815260040161036191815260200190565b602060405180830381865afa15801561037e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a2919061073c565b73ffffffffffffffffffffffffffffffffffffffff16145b92915050565b60015473ffffffffffffffffffffffffffffffffffffffff163314806103fd575060025473ffffffffffffffffffffffffffffffffffffffff1633145b61040657600080fd5b60005b8381101561049f5761048d858583818110610426576104266106ae565b905060200201602081019061043b91906105d2565b84848481811061044d5761044d6106ae565b9050602002013573ffffffffffffffffffffffffffffffffffffffff90911660009081526003602090815260408220805460018101825590835291200155565b80610497816106dd565b915050610409565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314806104e3575060025473ffffffffffffffffffffffffffffffffffffffff1633145b6104ec57600080fd5b604080516000808252602080830180855273ffffffffffffffffffffffffffffffffffffffff8616835260038252938220925183548185558484529190922061028d949181019291821561055c579160200282015b8281111561055c578251825591602001919060010190610541565b5061056892915061056c565b5090565b5b80821115610568576000815560010161056d565b73ffffffffffffffffffffffffffffffffffffffff811681146105a357600080fd5b50565b600080604083850312156105b957600080fd5b82356105c481610581565b946020939093013593505050565b6000602082840312156105e457600080fd5b81356105ef81610581565b9392505050565b60008083601f84011261060857600080fd5b50813567ffffffffffffffff81111561062057600080fd5b6020830191508360208260051b850101111561063b57600080fd5b9250929050565b6000806000806040858703121561065857600080fd5b843567ffffffffffffffff8082111561067057600080fd5b61067c888389016105f6565b9096509450602087013591508082111561069557600080fd5b506106a2878288016105f6565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610735577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561074e57600080fd5b81516105ef8161058156fea26469706673582212203eaf10c3d682df05599246b6199e84c6ed5ab3627821120688ce49494aa2394464736f6c634300080f0033

Deployed Bytecode Sourcemap

246:1253:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1082:182;;;:::i;:::-;;510:36;;;;;;:::i;:::-;;:::i;:::-;;;639:25:1;;;627:2;612:18;510:36:0;;;;;;;;1270:226;;;;;;:::i;:::-;;:::i;:::-;;;1092:14:1;;1085:22;1067:41;;1055:2;1040:18;1270:226:0;927:187:1;368:65:0;;;;;;;;;;;;1295:42:1;1283:55;;;1265:74;;1253:2;1238:18;368:65:0;1119:226:1;864:212:0;;;;;;:::i;:::-;;:::i;757:101::-;;;;;;:::i;:::-;;:::i;274:89::-;;;;;;;;;438:65;;;;;;;;;1082:182;1136:10;1112:18;1133:14;;;:2;:14;;;;;;1154:105;1175:10;;1171:14;;1154:105;;;1201:10;;;1225:5;1244:6;;1201:10;;;;;:23;;1225:5;;1232:10;;1244:3;;1248:1;;1244:6;;;;;;:::i;:::-;;;;;;;;;;;1201:50;;;;;;;;;;3151:42:1;3220:15;;;1201:50:0;;;3202:34:1;3272:15;;;;3252:18;;;3245:43;3304:18;;;3297:34;3114:18;;1201:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1187:3;;;;;:::i;:::-;;;;1154:105;;;;1105:159;1082:182::o;510:36::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1270:226::-;1427:8;;;1328:4;1427:8;;;:2;:8;;;;;:15;:19;;;;:63;;-1:-1:-1;1485:5:0;;;1450:10;;1485:5;1469:8;;;;;:2;:8;;;;;:11;;1485:5;;;;1450:10;;;;;:18;;1469:11;;;;:::i;:::-;;;;;;;;;1450:31;;;;;;;;;;;;;639:25:1;;627:2;612:18;;493:177;1450:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;;;1427:63;1420:70;1270:226;-1:-1:-1;;1270:226:0:o;864:212::-;708:5;;;;694:10;:19;;:42;;-1:-1:-1;731:5:0;;;;717:10;:19;694:42;686:51;;;;;;974:6:::1;969:102;986:20:::0;;::::1;969:102;;;1022:41;1037:9;;1047:1;1037:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;1051:8;;1060:1;1051:11;;;;;;;:::i;:::-;;;;;;;624:9:::0;;;;;;;;:2;:9;;;;;;;:24;;;;;;;;;;;;;;553:101;1022:41:::1;1008:3:::0;::::1;::::0;::::1;:::i;:::-;;;;969:102;;;;864:212:::0;;;;:::o;757:101::-;708:5;;;;694:10;:19;;:42;;-1:-1:-1;731:5:0;;;;717:10;:19;694:42;686:51;;;;;;839:13:::1;::::0;;850:1:::1;839:13:::0;;;::::1;::::0;;::::1;::::0;;;827:9:::1;::::0;::::1;::::0;;:2:::1;:9:::0;;;;;:25;;-1:-1:-1;;;;;;;;;;;;827:25:0::1;::::0;-1:-1:-1;;;;827:25:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:154:1;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;69:93;14:154;:::o;173:315::-;241:6;249;302:2;290:9;281:7;277:23;273:32;270:52;;;318:1;315;308:12;270:52;357:9;344:23;376:31;401:5;376:31;:::i;:::-;426:5;478:2;463:18;;;;450:32;;-1:-1:-1;;;173:315:1:o;675:247::-;734:6;787:2;775:9;766:7;762:23;758:32;755:52;;;803:1;800;793:12;755:52;842:9;829:23;861:31;886:5;861:31;:::i;:::-;911:5;675:247;-1:-1:-1;;;675:247:1:o;1350:367::-;1413:8;1423:6;1477:3;1470:4;1462:6;1458:17;1454:27;1444:55;;1495:1;1492;1485:12;1444:55;-1:-1:-1;1518:20:1;;1561:18;1550:30;;1547:50;;;1593:1;1590;1583:12;1547:50;1630:4;1622:6;1618:17;1606:29;;1690:3;1683:4;1673:6;1670:1;1666:14;1658:6;1654:27;1650:38;1647:47;1644:67;;;1707:1;1704;1697:12;1644:67;1350:367;;;;;:::o;1722:773::-;1844:6;1852;1860;1868;1921:2;1909:9;1900:7;1896:23;1892:32;1889:52;;;1937:1;1934;1927:12;1889:52;1977:9;1964:23;2006:18;2047:2;2039:6;2036:14;2033:34;;;2063:1;2060;2053:12;2033:34;2102:70;2164:7;2155:6;2144:9;2140:22;2102:70;:::i;:::-;2191:8;;-1:-1:-1;2076:96:1;-1:-1:-1;2279:2:1;2264:18;;2251:32;;-1:-1:-1;2295:16:1;;;2292:36;;;2324:1;2321;2314:12;2292:36;;2363:72;2427:7;2416:8;2405:9;2401:24;2363:72;:::i;:::-;1722:773;;;;-1:-1:-1;2454:8:1;-1:-1:-1;;;;1722:773:1:o;2750:184::-;2802:77;2799:1;2792:88;2899:4;2896:1;2889:15;2923:4;2920:1;2913:15;3342:349;3381:3;3412:66;3405:5;3402:77;3399:257;;3512:77;3509:1;3502:88;3613:4;3610:1;3603:15;3641:4;3638:1;3631:15;3399:257;-1:-1:-1;3683:1:1;3672:13;;3342:349::o;3696:251::-;3766:6;3819:2;3807:9;3798:7;3794:23;3790:32;3787:52;;;3835:1;3832;3825:12;3787:52;3867:9;3861:16;3886:31;3911:5;3886:31;:::i

Swarm Source

ipfs://3eaf10c3d682df05599246b6199e84c6ed5ab3627821120688ce49494aa23944

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.