Contract 0xdaafbE65784f93ea0747173a77abB4206f98443C 1

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x5a76fac24c48dfa200d5376a59e1f37eba87e7323447d7db18a098626bf0f5110x60806040235284542022-01-09 19:03:28444 days 19 hrs ago0x236eccab8cdcfedb099de85c4060024ba3ce4d46 IN  Create: ScoreByFiveWaySplit0 MATIC0.00625971535
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ScoreByFiveWaySplit

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : IScoringStrategy.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.0;


interface IScoringStrategy {
  function getTokenScores(address[] calldata tokens) external view returns (uint256[] memory scores);
}

File 2 of 2 : ScoreByFiveWaySplit.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.0;

import "../interfaces/IScoringStrategy.sol";

contract ScoreByFiveWaySplit is IScoringStrategy {
  uint256 internal constant ONE = 1e18;

  function getTokenScores(address[] calldata tokens)
    external
    view
    override
    returns (uint256[] memory scores)
  {
    require(tokens.length == 5, "Must provide 5 tokens");
    scores = new uint256[](5);
    scores[0] = ONE;
    scores[1] = ONE;
    scores[2] = ONE;
    scores[3] = ONE;
    scores[4] = ONE;
  }
}

Settings
{
  "metadata": {
    "useLiteralContent": false
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getTokenScores","outputs":[{"internalType":"uint256[]","name":"scores","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610246806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80631a86165314610030575b600080fd5b6100a06004803603602081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b5090925090506100f0565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156100dc5781810151838201526020016100c4565b505050509050019250505060405180910390f35b60606005821461013f576040805162461bcd60e51b81526020600482015260156024820152744d7573742070726f76696465203520746f6b656e7360581b604482015290519081900360640190fd5b60408051600580825260c08201909252906020820160a080368337019050509050670de0b6b3a76400008160008151811061017657fe5b602002602001018181525050670de0b6b3a76400008160018151811061019857fe5b602002602001018181525050670de0b6b3a7640000816002815181106101ba57fe5b602002602001018181525050670de0b6b3a7640000816003815181106101dc57fe5b602002602001018181525050670de0b6b3a7640000816004815181106101fe57fe5b6020026020010181815250509291505056fea2646970667358221220307fa182c64f1f34857a8e07ed2c6ba05e43b5988618b8766f63bda8cc41593764736f6c634300060c0033

Deployed ByteCode Sourcemap

107:421:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;201:325;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;201:325:1;;-1:-1:-1;201:325:1;-1:-1:-1;201:325:1;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;300:23;358:1;341:18;;333:52;;;;;-1:-1:-1;;;333:52:1;;;;;;;;;;;;-1:-1:-1;;;333:52:1;;;;;;;;;;;;;;;400:16;;;414:1;400:16;;;;;;;;;;;;;;;;;;;;-1:-1:-1;400:16:1;391:25;;192:4;422:6;429:1;422:9;;;;;;;;;;;;;:15;;;;;192:4;443:6;450:1;443:9;;;;;;;;;;;;;:15;;;;;192:4;464:6;471:1;464:9;;;;;;;;;;;;;:15;;;;;192:4;485:6;492:1;485:9;;;;;;;;;;;;;:15;;;;;192:4;506:6;513:1;506:9;;;;;;;;;;;;;:15;;;;;201:325;;;;:::o

Swarm Source

ipfs://307fa182c64f1f34857a8e07ed2c6ba05e43b5988618b8766f63bda8cc415937
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.