More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 79 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 16240628 | 778 days ago | IN | 0 ETH | 0.00099761 | ||||
Claim | 16070306 | 802 days ago | IN | 0 ETH | 0.00080495 | ||||
Claim | 16045504 | 806 days ago | IN | 0 ETH | 0.00090227 | ||||
Claim | 16041295 | 806 days ago | IN | 0 ETH | 0.00116255 | ||||
Claim | 16027285 | 808 days ago | IN | 0 ETH | 0.00214391 | ||||
Claim | 15874919 | 829 days ago | IN | 0 ETH | 0.00055396 | ||||
Claim | 15838933 | 834 days ago | IN | 0 ETH | 0.00104248 | ||||
Claim | 15816506 | 838 days ago | IN | 0 ETH | 0.00078677 | ||||
Claim | 15796725 | 840 days ago | IN | 0 ETH | 0.00185523 | ||||
Claim | 15675646 | 857 days ago | IN | 0 ETH | 0.00116423 | ||||
Claim | 15638081 | 863 days ago | IN | 0 ETH | 0.00048729 | ||||
Claim | 15631761 | 863 days ago | IN | 0 ETH | 0.00206713 | ||||
Claim | 15624915 | 864 days ago | IN | 0 ETH | 0.00247287 | ||||
Claim | 15609834 | 866 days ago | IN | 0 ETH | 0.00043063 | ||||
Claim | 15582116 | 870 days ago | IN | 0 ETH | 0.00056769 | ||||
Claim | 15428012 | 894 days ago | IN | 0 ETH | 0.00040934 | ||||
Claim | 15411163 | 897 days ago | IN | 0 ETH | 0.00101967 | ||||
Claim | 15407660 | 898 days ago | IN | 0 ETH | 0.00037155 | ||||
Claim | 15405087 | 898 days ago | IN | 0 ETH | 0.00117031 | ||||
Claim | 15392615 | 900 days ago | IN | 0 ETH | 0.00127271 | ||||
Claim | 15243054 | 924 days ago | IN | 0 ETH | 0.00042361 | ||||
Claim | 15238573 | 924 days ago | IN | 0 ETH | 0.00223712 | ||||
Claim | 15213116 | 928 days ago | IN | 0 ETH | 0.00202415 | ||||
Claim | 15198950 | 930 days ago | IN | 0 ETH | 0.00064742 | ||||
Claim | 15172974 | 934 days ago | IN | 0 ETH | 0.0024551 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x3246Ddc1...b17493D73 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
SportsIconPrivateVesting
Compiler Version
v0.7.5+commit.eb77ed08
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.5; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/ISportsIconPrivateVesting.sol"; contract SportsIconPrivateVesting is ISportsIconPrivateVesting { using SafeMath for uint256; mapping(address => uint256) public override vestedTokensOf; mapping(address => uint256) public vestedTokensOfPrivileged; mapping(address => uint256) public override claimedOf; IERC20 public override token; uint256 private startTime; uint256 public vestingPeriod; constructor( address _tokenAddress, address[] memory holders, uint256[] memory balances, address[] memory privilegedHolders, uint256[] memory privilegedBalances, uint256 _vestingPeriod ) { require( (holders.length == balances.length) && (privilegedHolders.length == privilegedBalances.length), "Constructor :: Holders and balances differ" ); require( _tokenAddress != address(0x0), "Constructor :: Invalid token address" ); require(_vestingPeriod > 0, "Constructor :: Invalid vesting period"); token = IERC20(_tokenAddress); for (uint256 i = 0; i < holders.length; i++) { if ((i <= privilegedHolders.length - 1) && (privilegedHolders.length > 0)) { vestedTokensOfPrivileged[privilegedHolders[i]] = privilegedBalances[i]; } vestedTokensOf[holders[i]] = balances[i]; } vestingPeriod = _vestingPeriod; startTime = block.timestamp; } function freeTokens(address user) public view override returns (uint256) { uint256 owed = calculateOwed(user); return owed.sub(claimedOf[user]); } function claim() external override returns (uint256) { uint256 tokens = freeTokens(msg.sender); claimedOf[msg.sender] = claimedOf[msg.sender].add(tokens); require(token.transfer(msg.sender, tokens), "Claim :: Transfer failed"); emit LogTokensClaimed(msg.sender, tokens); return tokens; } function calculateOwed(address user) internal view returns (uint256) { if (vestedTokensOfPrivileged[user] > 0) { return vestedTokensOfPrivileged[user]; } uint256 periodsPassed = ((block.timestamp.sub(startTime)).div(30 days)); if (periodsPassed > vestingPeriod) { periodsPassed = vestingPeriod; } uint256 vestedTokens = vestedTokensOf[user]; uint256 initialUnlock = vestedTokens.div(10); uint256 remainder = vestedTokens.sub(initialUnlock); uint256 monthlyUnlock = periodsPassed.mul(remainder).div(vestingPeriod); return initialUnlock.add(monthlyUnlock); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.5; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface ISportsIconPrivateVesting { event LogTokensClaimed(address claimer, uint256 tokensClaimed); function token() external view returns(IERC20); function vestedTokensOf(address) external view returns(uint256); function claimedOf(address) external view returns(uint256); function freeTokens(address) external view returns(uint256); function claim() external returns(uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address[]","name":"holders","type":"address[]"},{"internalType":"uint256[]","name":"balances","type":"uint256[]"},{"internalType":"address[]","name":"privilegedHolders","type":"address[]"},{"internalType":"uint256[]","name":"privilegedBalances","type":"uint256[]"},{"internalType":"uint256","name":"_vestingPeriod","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensClaimed","type":"uint256"}],"name":"LogTokensClaimed","type":"event"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"freeTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestedTokensOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestedTokensOfPrivileged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80637313ee5a1161005b5780637313ee5a146100e857806384ae4209146100f0578063baa3f7ee14610116578063fc0c546a1461013c5761007d565b80630b63b114146100825780634e71d92d146100ba578063505eeeb2146100c2575b600080fd5b6100a86004803603602081101561009857600080fd5b50356001600160a01b0316610160565b60408051918252519081900360200190f35b6100a861019c565b6100a8600480360360208110156100d857600080fd5b50356001600160a01b03166102e7565b6100a86102f9565b6100a86004803603602081101561010657600080fd5b50356001600160a01b03166102ff565b6100a86004803603602081101561012c57600080fd5b50356001600160a01b0316610311565b610144610323565b604080516001600160a01b039092168252519081900360200190f35b60008061016c83610332565b6001600160a01b03841660009081526002602052604090205490915061019390829061040b565b9150505b919050565b6000806101a833610160565b336000908152600260205260409020549091506101c5908261046d565b33600081815260026020908152604080832094909455600354845163a9059cbb60e01b815260048101949094526024840186905293516001600160a01b039094169363a9059cbb93604480820194918390030190829087803b15801561022a57600080fd5b505af115801561023e573d6000803e3d6000fd5b505050506040513d602081101561025457600080fd5b50516102a7576040805162461bcd60e51b815260206004820152601860248201527f436c61696d203a3a205472616e73666572206661696c65640000000000000000604482015290519081900360640190fd5b604080513381526020810183905281517fcb3b287df62322e81cc5b4c1ba9d9f5a449e34069d403b00eb061faed581737b929181900390910190a1905090565b60016020526000908152604090205481565b60055481565b60006020819052908152604090205481565b60026020526000908152604090205481565b6003546001600160a01b031681565b6001600160a01b0381166000908152600160205260408120541561036f57506001600160a01b038116600090815260016020526040902054610197565b600061039362278d0061038d6004544261040b90919063ffffffff16565b906104ce565b90506005548111156103a457506005545b6001600160a01b038316600090815260208190526040812054906103c982600a6104ce565b905060006103d7838361040b565b905060006103f460055461038d848861053590919063ffffffff16565b9050610400838261046d565b979650505050505050565b600082821115610462576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b6000828201838110156104c7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000808211610524576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161052d57fe5b049392505050565b60008261054457506000610467565b8282028284828161055157fe5b04146104c75760405162461bcd60e51b815260040180806020018281038252602181526020018061058f6021913960400191505060405180910390fdfe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220807268a261b7632ae5d7511282fcbbb232e4ceac9fe61a7e525a3460798217df64736f6c63430007050033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.008508 | 278,750.0002 | $2,371.47 |
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.