Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086653 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH | ||||
72086041 | 763 days ago | 0 ETH |
Loading...
Loading
Contract Name:
MathUtils
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 50000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; // import "@openzeppelin/contracts/math/SafeMath.sol"; /** * @title MathUtils library * @notice A library to be used in conjunction with SafeMath. Contains functions for calculating * differences between two uint256. */ library MathUtils { /** * @notice Compares a and b and returns true if the difference between a and b * is less than 1 or equal to each other. * @param a uint256 to compare with * @param b uint256 to compare with * @return True if the difference between a and b is less than 1 or equal, * otherwise return false */ function within1(uint256 a, uint256 b) external pure returns (bool) { return (_difference(a, b) <= 1); } /** * @notice Calculates absolute difference between a and b * @param a uint256 to compare with * @param b uint256 to compare with * @return Difference between a and b */ function difference(uint256 a, uint256 b) external pure returns (uint256) { return _difference(a, b); } /** * @notice Calculates absolute difference between a and b * @param a uint256 to compare with * @param b uint256 to compare with * @return Difference between a and b */ function _difference(uint256 a, uint256 b) internal pure returns (uint256) { if (a > b) { return a - b; } return b - a; } }
{ "optimizer": { "enabled": true, "runs": 50000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"difference","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"within1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
61011c610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610603d5760003560e01c806313a1ec75146042578063a95cb7f7146076575b600080fd5b606260048036036040811015605657600080fd5b508035906020013560a8565b604080519115158252519081900360200190f35b609660048036036040811015608a57600080fd5b508035906020013560bf565b60408051918252519081900360200190f35b6000600160b4848460d0565b111590505b92915050565b600060c9838360d0565b9392505050565b60008183111560e1575080820360b9565b50039056fea2646970667358221220554517a7a8434fce581139ced73be1bb15b464ea345dcd7951fe7ab5b7e5748864736f6c634300060c0033
Deployed Bytecode
0x73bd72882120508518fcba2ae58e134ecead18d9793014608060405260043610603d5760003560e01c806313a1ec75146042578063a95cb7f7146076575b600080fd5b606260048036036040811015605657600080fd5b508035906020013560a8565b604080519115158252519081900360200190f35b609660048036036040811015608a57600080fd5b508035906020013560bf565b60408051918252519081900360200190f35b6000600160b4848460d0565b111590505b92915050565b600060c9838360d0565b9392505050565b60008183111560e1575080820360b9565b50039056fea2646970667358221220554517a7a8434fce581139ced73be1bb15b464ea345dcd7951fe7ab5b7e5748864736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.