Latest 12 txns

TxHash Age From To Value [TxFee]
0x824fadd9b8884aecf0520b1039153c7a767fb4d049ba1aa71eddf7bb5a3922528 days 19 hrs ago0x2a83f2d2e4472beec3d259489a94f0f23c1faecd  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0.2 Ether0.000315048
0x426ea8be49e32cc341c02dfe36e14689d09fbd10b548f397fdd8dbcb2866c8de8 days 19 hrs ago0xcab74e724b0bc1e7eb05449073b87f6ce7fa8919  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0 Ether0.000013844
0x5dab17cec77f767900262ead714d47b15a42928e6bd8085f4a7a4afc152731628 days 19 hrs ago0x6e7b40556fd4fc174cf02d17fcf96871a9646ca6  IN   0xae1882ce69825fb92364ec034665cad027e6a89a1.2 Ether0.000039381
0x9d57d03b41ce4aa2bf0136fcbf20c8f7bf5f79a9fc35acc41a995b198329dca08 days 19 hrs ago0x2a83f2d2e4472beec3d259489a94f0f23c1faecd  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0.2 Ether0.00196905
0xa308a97e6fdceb161b87227e57e3f4b41a1c25fdfff8e532684e018b8f6703328 days 19 hrs ago0x2a83f2d2e4472beec3d259489a94f0f23c1faecd  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0.2 Ether0.00118143
0xc77a25c97d9a2e947b0f577c60822a40977fb5c9eb2d9e6b7c13838f904f2c038 days 19 hrs ago0xcab74e724b0bc1e7eb05449073b87f6ce7fa8919  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0 Ether0.001083104
0xd0ec0150ecab3e1e53706b210144c36c6d671d8be50f4ae614c1465002500d5c8 days 19 hrs ago0x6e7b40556fd4fc174cf02d17fcf96871a9646ca6  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0.7 Ether0.000026254
0x1939178b886455d380352081dcb0f8a257e69c5e2086130fa2fb9ea9df44f0e28 days 19 hrs ago0xcab74e724b0bc1e7eb05449073b87f6ce7fa8919  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0 Ether0.00036092
0xcd678b5d93a10ccf98227f1e4e175af6a2f858d209a5efeeeb527d3d9839c10f8 days 20 hrs ago0xcab74e724b0bc1e7eb05449073b87f6ce7fa8919  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0 Ether0.0000741444
0x738274b9dba6548d86a906748bafbf7bb97d25a40188be0f293ac4862f65fefc8 days 20 hrs ago0xcab74e724b0bc1e7eb05449073b87f6ce7fa8919  IN   0xae1882ce69825fb92364ec034665cad027e6a89a0 Ether0.0000581136
0xd56b8d446343e57600ff45294303f5d621db3b2ca52f16c1a152d4c6c9969b278 days 20 hrs ago0x6e7b40556fd4fc174cf02d17fcf96871a9646ca6  IN   0xae1882ce69825fb92364ec034665cad027e6a89a1.25 Ether0.000052508
0xa035b915b5670962a691bbf9912f86609f4f8584cae3922d4dc76716d9b6f8048 days 20 hrs ago0xcab74e724b0bc1e7eb05449073b87f6ce7fa8919  IN    Contract Creation1 Ether0.04277284
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 6 Internal Transactions

ParentTxHash Block Age From To Value
0xc77a25c97d9a2e947b0f577c60822a40977fb5c9eb2d9e6b7c13838f904f2c0350013648 days 19 hrs ago0xae1882ce69825fb92364ec034665cad027e6a89a0xa879ce660b0a41567fe33b1e329e2e9ad2b697ba0.3 Ether
0xc77a25c97d9a2e947b0f577c60822a40977fb5c9eb2d9e6b7c13838f904f2c0350013648 days 19 hrs ago0xae1882ce69825fb92364ec034665cad027e6a89a0x0a9a5355ec8d316616b167e132419e9811bea5d10.3 Ether
0xc77a25c97d9a2e947b0f577c60822a40977fb5c9eb2d9e6b7c13838f904f2c0350013648 days 19 hrs ago0xae1882ce69825fb92364ec034665cad027e6a89a0x64424d2a8ce4fe420eebad8cab039e3568ac15af0.3 Ether
0xc77a25c97d9a2e947b0f577c60822a40977fb5c9eb2d9e6b7c13838f904f2c0350013648 days 19 hrs ago0xae1882ce69825fb92364ec034665cad027e6a89a0xa64a9275b64676466bb76fa51e3f1ab276535d190.3 Ether
0xc77a25c97d9a2e947b0f577c60822a40977fb5c9eb2d9e6b7c13838f904f2c0350013648 days 19 hrs ago0xae1882ce69825fb92364ec034665cad027e6a89a0xcab74e724b0bc1e7eb05449073b87f6ce7fa89190.8 Ether
0xcd678b5d93a10ccf98227f1e4e175af6a2f858d209a5efeeeb527d3d9839c10f50012458 days 20 hrs ago0xae1882ce69825fb92364ec034665cad027e6a89a0x2a83f2d2e4472beec3d259489a94f0f23c1faecd0.95 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: Repartelo
Compiler Version: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.0;

contract Repartelo {
    
    address[] public nOmina;
    address public Jefe;
    uint public TotalFacturado;
    bool public Bandera;
    bool public Penalty;
    uint public Referencia;
    event Depositaron (bool);
    
    constructor () payable {
        nOmina = [0xA64A9275b64676466bb76fa51E3f1ab276535D19, 0x2E9dD190177FE18Fc0195449e956C7C720C90B1f, 0x64424D2a8CE4fe420EebAD8CaB039E3568aC15AF, 0x0A9a5355EC8d316616b167E132419e9811beA5D1];
        Jefe = msg.sender;
        TotalFacturado = 0;
        Bandera = false;
        Penalty = false;
        Referencia = now;
        TotalFacturado += msg.value;
        
    }
    
    function () payable public {
        TotalFacturado += msg.value;
    }
    
    function Pertenece(address _x) internal returns (bool) {
        bool esEmpleado = false;
        for(uint i = 0; i < nOmina.length; i++) {
            if (nOmina[i] == _x) {
                esEmpleado = true;
            }
        }
        return esEmpleado;
    }
    
    function PagarNomina() public returns (uint) {
 
        uint A = ((now - Referencia)/420) % 7;
        require (A < 2);
        uint B;

        if (Penalty) {
            B = 35;
        } else {
            B = 40;
        }
        
        if (!Bandera && A == 0 &&
        (msg.sender == Jefe)) {
            uint k = B*TotalFacturado/100;
            Jefe.transfer(k);
            TotalFacturado -= k;
            k = TotalFacturado/nOmina.length;
            for (uint i=0; i < nOmina.length; i++) {
                nOmina[i].transfer(k);
                TotalFacturado -= k;
            }
            Bandera = true;
            Penalty = false;
            
        } else if (!Bandera && A == 1 &&
        (Pertenece(msg.sender))) {
            k = (B-5)*TotalFacturado/100;
            Jefe.transfer(k);
            uint h = 2*TotalFacturado/100;
            msg.sender.transfer(h);
            TotalFacturado -= (k+h);
            k = TotalFacturado/nOmina.length;
            for (uint j=0; j < nOmina.length; j++) {
                nOmina[j].transfer(k);
                TotalFacturado -= k;
            }
            Bandera = true;
            Penalty = false;
        }
        emit Depositaron (Bandera);
    }
    

    function BanderaAbajo() public {

        uint A = ((now - Referencia)/420) % 7;
        require (A >= 2 && A <= 6);
        if (Bandera && A > 1 && A <= 5 &&
        (msg.sender == Jefe)) {
            Bandera = false;
            Penalty =  false;
        } else if (Bandera && A == 6 &&
        (Pertenece(msg.sender))) {
            uint k = 2*TotalFacturado/100;
            msg.sender.transfer(k);
            Bandera = false;
            Penalty = true;
        }
    }
    
    function Despido(address Botado) public returns (address[]) {
        uint A = ((now - Referencia)/420) % 7;
        require(msg.sender == Jefe && Pertenece(Botado), "si no es empleado no lo puedes botar");
        for (uint i = 0; i < nOmina.length; i++) {
            if (nOmina[i] == Botado && i < nOmina.length-1) {
                for (uint j = i; j < nOmina.length-1; j++) {
                    nOmina[j] = nOmina[j+1];

                } 
                delete nOmina[nOmina.length-1];
                nOmina.length--;

            } else if (nOmina[i] == Botado && i == nOmina.length-1) {
                delete nOmina[nOmina.length-1];
                nOmina.length--;

                } 
        } return nOmina; 
    }
    
    function Hire(address Nuevo) public returns (address[]) {
        uint A = ((now - Referencia)/420) % 7;
        if(msg.sender == Jefe) {
            nOmina.push(Nuevo);
        }
       return nOmina; 
    }
    

    function PagosGastos(address pRoveedor, uint mOnto) public {
        require(mOnto < TotalFacturado);
        if (msg.sender == Jefe) {
        pRoveedor.transfer(mOnto);
        TotalFacturado -= mOnto;
        }
    }
    
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"PagarNomina","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Jefe","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"Botado","type":"address"}],"name":"Despido","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"pRoveedor","type":"address"},{"name":"mOnto","type":"uint256"}],"name":"PagosGastos","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Referencia","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"BanderaAbajo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"Penalty","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"Bandera","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"Nuevo","type":"address"}],"name":"Hire","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"nOmina","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TotalFacturado","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"","type":"bool"}],"name":"Depositaron","type":"event"}]

  Contract Creation Code Switch To Opcodes View
61010060405273a64a9275b64676466bb76fa51e3f1ab276535d196080908152732e9dd190177fe18fc0195449e956c7c720c90b1f60a0527364424d2a8ce4fe420eebad8cab039e3568ac15af60c052730a9a5355ec8d316616b167e132419e9811bea5d160e0526100759060009060046100a0565b5060018054600160a060020a031916331790556003805461ffff19169055426004553460025561012c565b8280548282559060005260206000209081019282156100f5579160200282015b828111156100f55782518254600160a060020a031916600160a060020a039091161782556020909201916001909101906100c0565b50610101929150610105565b5090565b61012991905b80821115610101578054600160a060020a031916815560010161010b565b90565b610bdc8061013b6000396000f3006080604052600436106100ae5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632df7eb5b81146100b85780635000d92d146100df578063689fcc2a14610110578063700d665514610181578063776a1f46146101a7578063888db035146101bc578063ab621ac8146101d1578063bf76408d146101fa578063d70f61441461020f578063da584d6914610230578063ece9913414610248575b6002805434019055005b3480156100c457600080fd5b506100cd61025d565b60408051918252519081900360200190f35b3480156100eb57600080fd5b506100f4610560565b60408051600160a060020a039092168252519081900360200190f35b34801561011c57600080fd5b50610131600160a060020a036004351661056f565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561016d578181015183820152602001610155565b505050509050019250505060405180910390f35b34801561018d57600080fd5b506101a5600160a060020a036004351660243561086d565b005b3480156101b357600080fd5b506100cd6108d3565b3480156101c857600080fd5b506101a56108d9565b3480156101dd57600080fd5b506101e66109d8565b604080519115158252519081900360200190f35b34801561020657600080fd5b506101e66109e6565b34801561021b57600080fd5b50610131600160a060020a03600435166109ef565b34801561023c57600080fd5b506100f4600435610ae1565b34801561025457600080fd5b506100cd610b09565b600080600080600080600060076101a4600454420381151561027b57fe5b0481151561028557fe5b0695506002861061029557600080fd5b600354610100900460ff16156102ae57602394506102b3565b602894505b60035460ff161580156102c4575085155b80156102da5750600154600160a060020a031633145b156103cd576002546064908602600154604051929091049550600160a060020a03169085156108fc029086906000818181858888f19350505050158015610325573d6000803e3d6000fd5b5060028054859003908190556000549081151561033e57fe5b049350600092505b6000548310156103b457600080548490811061035e57fe5b6000918252602082200154604051600160a060020a039091169186156108fc02918791818181858888f1935050505015801561039e573d6000803e3d6000fd5b5060028054859003905560019290920191610346565b6003805461ff001960ff1990911660011716905561051c565b60035460ff161580156103e05750856001145b80156103f057506103f033610b0f565b1561051c57600254606490600419870102600154604051929091049550600160a060020a03169085156108fc029086906000818181858888f1935050505015801561043f573d6000803e3d6000fd5b5060028054606491026040519190049250339083156108fc029084906000818181858888f1935050505015801561047a573d6000803e3d6000fd5b50600280548584019003908190556000549081151561049557fe5b049350600090505b6000548110156105075760008054829081106104b557fe5b6000918252602082200154604051600160a060020a039091169186156108fc02918791818181858888f193505050501580156104f5573d6000803e3d6000fd5b5060028054859003905560010161049d565b6003805461ff001960ff199091166001171690555b6003546040805160ff90921615158252517f8b0b8a37bfed6c461efcfafc257cb64271a13c49a6e037c60b37c108ecb7ef409181900360200190a150505050505090565b600154600160a060020a031681565b6060600080600060076101a4600454420381151561058957fe5b0481151561059357fe5b6001549190069350600160a060020a0316331480156105b657506105b685610b0f565b151561064857604080517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f7369206e6f20657320656d706c6561646f206e6f206c6f20707565646573206260448201527f6f74617200000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b600091505b6000548210156108085784600160a060020a031660008381548110151561067057fe5b600091825260209091200154600160a060020a031614801561069757506000546000190182105b1561076e5750805b600054600019018110156107205760008054600183019081106106be57fe5b60009182526020822001548154600160a060020a039091169190839081106106e257fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039290921691909117905560010161069f565b60008054600019810190811061073257fe5b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19169055805490610768906000198301610b66565b506107fd565b84600160a060020a031660008381548110151561078757fe5b600091825260209091200154600160a060020a03161480156107ae57506000546000190182145b156107fd576000805460001981019081106107c557fe5b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff191690558054906107fb906000198301610b66565b505b60019091019061064d565b600080548060200260200160405190810160405280929190818152602001828054801561085e57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610840575b50505050509350505050919050565b600254811061087b57600080fd5b600154600160a060020a03163314156108cf57604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156108c4573d6000803e3d6000fd5b506002805482900390555b5050565b60045481565b60008060076101a460045442038115156108ef57fe5b048115156108f957fe5b0691506002821015801561090e575060068211155b151561091957600080fd5b60035460ff16801561092b5750600182115b8015610938575060058211155b801561094e5750600154600160a060020a031633145b15610963576003805461ffff191690556108cf565b60035460ff1680156109755750816006145b8015610985575061098533610b0f565b156108cf5760028054606491026040519190049150339082156108fc029083906000818181858888f193505050501580156109c4573d6000803e3d6000fd5b506003805461ffff19166101001790555050565b600354610100900460ff1681565b60035460ff1681565b6060600060076101a46004544203811515610a0657fe5b04811515610a1057fe5b6001549190069150600160a060020a0316331415610a7e57600080546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0385161790555b6000805480602002602001604051908101604052809291908181526020018280548015610ad457602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610ab6575b5050505050915050919050565b6000805482908110610aef57fe5b600091825260209091200154600160a060020a0316905081565b60025481565b600080805b600054811015610b5f5783600160a060020a0316600082815481101515610b3757fe5b600091825260209091200154600160a060020a03161415610b5757600191505b600101610b14565b5092915050565b815481835581811115610b8a57600083815260209020610b8a918101908301610b8f565b505050565b610bad91905b80821115610ba95760008155600101610b95565b5090565b905600a165627a7a723058203abff75d36f44546f63299b87d744c763291200215b2aec043609fa3f935255d0029

   Swarm Source:
bzzr://3abff75d36f44546f63299b87d744c763291200215b2aec043609fa3f935255d

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward