Skip to content
Verified contractPartialGPL-3.0-only

TrollboxProxy

Address0xf9d234773ae2ce14277a9026ff6da340669fde4e
Balance

0 ETH

 

Transactions

330

 

Compiler

solc 0.7.4

 

Same code

Only this contract

 

Details

Compiler
solc 0.7.4+commit.3f05b770
Language
solidity
Optimization
No
EVM version
istanbul
License
GPL-3.0-only
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
11,399,973
Creation transaction
0x1ec02b835d…0c6d943203

TrollboxProxy.sol

// SPDX-License-Identifier: GPL-3.0-only

pragma solidity 0.7.4;

interface ITrollbox {
    function withdrawWinnings(uint voterId) external;
    function updateAccount(uint voterId, uint tournamentId, uint roundId) external;
    function isSynced(uint voterId, uint tournamentId, uint roundId) external view returns (bool);
    function roundAlreadyResolved(uint tournamentId, uint roundId) external view returns (bool);
}

contract TrollboxProxy {

    ITrollbox public trollbox;

    constructor(address box){
        trollbox = ITrollbox(box);
    }

    function updateAndWithdraw(uint[] memory voterIds, uint[] memory tournamentIds, uint[] memory roundIds, uint[] memory uniqueVoterIds) public {
        for (uint i = 0; i < voterIds.length; i++) {
            trollbox.updateAccount(voterIds[i], tournamentIds[i], roundIds[i]);
        }
        for (uint j = 0; j < uniqueVoterIds.length; j++) {
            trollbox.withdrawWinnings(uniqueVoterIds[j]);
        }
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.