ETH Price: $1,885.47 (-4.43%)

Contract Diff Checker

Contract Name:
ROOMBAairdropStorage

Contract Source Code:

File 1 of 1 : ROOMBAairdropStorage

pragma solidity >=0.5.10;

contract ROOMBAairdropStorage {
    address distributorContract;
    address owner;
    
    constructor() public {
        owner = msg.sender;
    }
    mapping(address => uint256) public participants;

    function getParticipant(address _key) public view returns (uint256) {
        return participants[_key];
    }

    function registerParticipant() public {
        //store default airdrop token value
        participants[msg.sender] = 500;
    }

    function setDistributor(address _distributorContract) public {
        require(msg.sender == owner);
        distributorContract = _distributorContract;
        //set distribution contract after airdrop stop
    }

    function updateAllocaion(address _participant, uint256 _amount) public {
        require(msg.sender == owner);
        //update default airdrop token value to actual amount after airdrop stop
        participants[_participant] += _amount;
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):