More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 12,582 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Reward | 21591473 | 46 hrs ago | IN | 0 ETH | 0.00022882 | ||||
Get Reward | 21562665 | 5 days ago | IN | 0 ETH | 0.00061796 | ||||
Get Reward | 21557649 | 6 days ago | IN | 0 ETH | 0.00038367 | ||||
Get Reward | 21527866 | 10 days ago | IN | 0 ETH | 0.00021609 | ||||
Get Reward | 21526648 | 10 days ago | IN | 0 ETH | 0.00023327 | ||||
Get Reward | 21518414 | 12 days ago | IN | 0 ETH | 0.0003893 | ||||
Get Reward | 21508073 | 13 days ago | IN | 0 ETH | 0.00014424 | ||||
Get Reward | 21508063 | 13 days ago | IN | 0 ETH | 0.00019755 | ||||
Get Reward | 21506966 | 13 days ago | IN | 0 ETH | 0.00023886 | ||||
Get Reward | 21485393 | 16 days ago | IN | 0 ETH | 0.00080644 | ||||
Get Reward | 21447428 | 22 days ago | IN | 0 ETH | 0.00048057 | ||||
Get Reward | 21412480 | 26 days ago | IN | 0 ETH | 0.00063177 | ||||
Get Reward | 21396838 | 29 days ago | IN | 0 ETH | 0.00086912 | ||||
Get Reward | 21396460 | 29 days ago | IN | 0 ETH | 0.0009763 | ||||
Get Reward | 21391314 | 29 days ago | IN | 0 ETH | 0.00067815 | ||||
Get Reward | 21376141 | 31 days ago | IN | 0 ETH | 0.00112461 | ||||
Get Reward | 21363991 | 33 days ago | IN | 0 ETH | 0.00075347 | ||||
Get Reward | 21361009 | 34 days ago | IN | 0 ETH | 0.00106142 | ||||
Get Reward | 21357328 | 34 days ago | IN | 0 ETH | 0.00045308 | ||||
Get Reward | 21353717 | 35 days ago | IN | 0 ETH | 0.0006216 | ||||
Get Reward | 21331806 | 38 days ago | IN | 0 ETH | 0.00218479 | ||||
Get Reward | 21309529 | 41 days ago | IN | 0 ETH | 0.00110437 | ||||
Get Reward | 21297838 | 42 days ago | IN | 0 ETH | 0.00059376 | ||||
Get Reward | 21271232 | 46 days ago | IN | 0 ETH | 0.00049132 | ||||
Get Reward | 21270454 | 46 days ago | IN | 0 ETH | 0.00071026 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
GovernanceRewards
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 10000 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"; import "./BaseGovernanceModule.sol"; import "../utils/BaseRewards.sol"; contract GovernanceRewards is BaseGovernanceModule, BaseRewards { using SafeMath for uint256; // solhint-disable-next-line no-empty-blocks constructor(IERC20 _gift, address _mothership) public BaseGovernanceModule(_mothership) BaseRewards(_gift) {} function _notifyStakeChanged(address account, uint256 newBalance) internal override updateReward(account) { _set(account, newBalance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../interfaces/IGovernanceModule.sol"; abstract contract BaseGovernanceModule is IGovernanceModule { address public immutable mothership; modifier onlyMothership { require(msg.sender == mothership, "Access restricted to mothership"); _; } constructor(address _mothership) public { mothership = _mothership; } function notifyStakesChanged(address[] calldata accounts, uint256[] calldata newBalances) external override onlyMothership { require(accounts.length == newBalances.length, "Arrays length should be equal"); for(uint256 i = 0; i < accounts.length; ++i) { _notifyStakeChanged(accounts[i], newBalances[i]); } } function notifyStakeChanged(address account, uint256 newBalance) external override onlyMothership { _notifyStakeChanged(account, newBalance); } function _notifyStakeChanged(address account, uint256 newBalance) internal virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; interface IGovernanceModule { function notifyStakeChanged(address account, uint256 newBalance) external; function notifyStakesChanged(address[] calldata accounts, uint256[] calldata newBalances) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "@openzeppelin/contracts/math/SafeMath.sol"; contract BalanceAccounting { using SafeMath for uint256; uint256 private _totalSupply; mapping(address => uint256) private _balances; function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function _mint(address account, uint256 amount) internal virtual { _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); } function _burn(address account, uint256 amount) internal virtual { _balances[account] = _balances[account].sub(amount, "Burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); } function _set(address account, uint256 amount) internal virtual returns(uint256 oldAmount) { oldAmount = _balances[account]; if (oldAmount != amount) { _balances[account] = amount; _totalSupply = _totalSupply.add(amount).sub(oldAmount); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./BalanceAccounting.sol"; contract BaseRewards is Ownable, BalanceAccounting { event RewardAdded(uint256 reward); event RewardPaid(address indexed user, uint256 reward); uint256 public constant DURATION = 7 days; address public rewardDistribution; IERC20 public immutable gift; uint256 public periodFinish; uint256 public rewardRate; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } modifier onlyRewardDistribution() { require(_msgSender() == rewardDistribution, "Access denied"); _; } constructor(IERC20 _gift) public { gift = _gift; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalSupply() == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(rewardRate) .mul(1e18) .div(totalSupply()) ); } function earned(address account) public view returns (uint256) { return balanceOf(account) .mul(rewardPerToken().sub(userRewardPerTokenPaid[account])) .div(1e18) .add(rewards[account]); } function getReward() public updateReward(msg.sender) { uint256 reward = earned(msg.sender); if (reward > 0) { rewards[msg.sender] = 0; gift.transfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); } } function notifyRewardAmount(uint256 reward) external onlyRewardDistribution updateReward(address(0)) { if (block.timestamp >= periodFinish) { rewardRate = reward.div(DURATION); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(DURATION); } lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(DURATION); emit RewardAdded(reward); } function setRewardDistribution(address _rewardDistribution) external onlyOwner { rewardDistribution = _rewardDistribution; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../GSN/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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, 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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 10000 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_gift","type":"address"},{"internalType":"address","name":"_mothership","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gift","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mothership","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"notifyStakeChanged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"newBalances","type":"uint256[]"}],"name":"notifyStakesChanged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516113223803806113228339818101604052604081101561003357600080fd5b5080516020909101516001600160601b0319606082901b166080528160006100596100bb565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060601b6001600160601b03191660a052506100bf9050565b3390565b60805160601c60a05160601c61122b6100f7600039806105ff528061093952508061063952806109fb5280610b8a525061122b6000f3fe608060405234801561001057600080fd5b506004361061018c5760003560e01c806370a08231116100e3578063ad3333481161008c578063df136d6511610066578063df136d6514610445578063ebe2b12b1461044d578063f2fde38b146104555761018c565b8063ad33334814610373578063c8f33c9114610435578063cd3daf9d1461043d5761018c565b806380faa57d116100bd57806380faa57d146103305780638b876347146103385780638da5cb5b1461036b5761018c565b806370a08231146102ed578063715018a6146103205780637b0a47ee146103285761018c565b80631be05289116101455780633c6b16ab1161011f5780633c6b16ab146102c05780633d18b912146102dd5780634187b7d6146102e55761018c565b80631be052891461027757806324b049051461027f57806327a27433146102875761018c565b80630d68b761116101765780630d68b76114610209578063101114cf1461023e57806318160ddd1461026f5761018c565b80628cc262146101915780630700037d146101d6575b600080fd5b6101c4600480360360208110156101a757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610488565b60408051918252519081900360200190f35b6101c4600480360360208110156101ec57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610503565b61023c6004803603602081101561021f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610515565b005b6102466105d3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101c46105ef565b6101c46105f6565b6102466105fd565b61023c6004803603604081101561029d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610621565b61023c600480360360208110156102d657600080fd5b50356106b9565b61023c610865565b6102466109f9565b6101c46004803603602081101561030357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a1d565b61023c610a45565b6101c4610b2b565b6101c4610b31565b6101c46004803603602081101561034e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b44565b610246610b56565b61023c6004803603604081101561038957600080fd5b8101906020810181356401000000008111156103a457600080fd5b8201836020820111156103b657600080fd5b803590602001918460208302840111640100000000831117156103d857600080fd5b9193909290916020810190356401000000008111156103f657600080fd5b82018360208201111561040857600080fd5b8035906020019184602083028401116401000000008311171561042a57600080fd5b509092509050610b72565b6101c4610cae565b6101c4610cb4565b6101c4610d02565b6101c4610d08565b61023c6004803603602081101561046b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d0e565b73ffffffffffffffffffffffffffffffffffffffff811660009081526009602090815260408083205460089092528220546104fd91906104f790670de0b6b3a7640000906104f1906104e2906104dc610cb4565b90610e64565b6104eb88610a1d565b90610ead565b90610f06565b90610f48565b92915050565b60096020526000908152604090205481565b61051d610fa2565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461058c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b6001545b90565b62093a8081565b7f000000000000000000000000000000000000000000000000000000000000000081565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146106ab576040805162461bcd60e51b815260206004820152601f60248201527f416363657373207265737472696374656420746f206d6f746865727368697000604482015290519081900360640190fd5b6106b58282610fa6565b5050565b60035473ffffffffffffffffffffffffffffffffffffffff166106da610fa2565b73ffffffffffffffffffffffffffffffffffffffff1614610742576040805162461bcd60e51b815260206004820152600d60248201527f4163636573732064656e69656400000000000000000000000000000000000000604482015290519081900360640190fd5b600061074c610cb4565b600755610757610b31565b60065573ffffffffffffffffffffffffffffffffffffffff8116156107b85761077f81610488565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960209081526040808320939093556007546008909152919020555b60045442106107d6576107ce8262093a80610f06565b600555610818565b6004546000906107e69042610e64565b905060006107ff60055483610ead90919063ffffffff16565b905061081262093a806104f18684610f48565b60055550505b42600681905561082b9062093a80610f48565b6004556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b3361086e610cb4565b600755610879610b31565b60065573ffffffffffffffffffffffffffffffffffffffff8116156108da576108a181610488565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960209081526040808320939093556007546008909152919020555b60006108e533610488565b905080156106b55733600081815260096020908152604080832083905580517fa9059cbb000000000000000000000000000000000000000000000000000000008152600481019490945260248401859052517f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169363a9059cbb9360448083019493928390030190829087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b505050506040513d60208110156109bd57600080fd5b505060408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25050565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b610a4d610fa2565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610abc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60055481565b6000610b3f4260045461102b565b905090565b60086020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610bfc576040805162461bcd60e51b815260206004820152601f60248201527f416363657373207265737472696374656420746f206d6f746865727368697000604482015290519081900360640190fd5b828114610c50576040805162461bcd60e51b815260206004820152601d60248201527f417272617973206c656e6774682073686f756c6420626520657175616c000000604482015290519081900360640190fd5b60005b83811015610ca757610c9f858583818110610c6a57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff16848484818110610c9357fe5b90506020020135610fa6565b600101610c53565b5050505050565b60065481565b6000610cbe6105ef565b610ccb57506007546105f3565b610b3f610cf9610cd96105ef565b6104f1670de0b6b3a76400006104eb6005546104eb6006546104dc610b31565b60075490610f48565b60075481565b60045481565b610d16610fa2565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610d85576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610dd75760405162461bcd60e51b81526004018080602001828103825260268152602001806111af6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000610ea683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611041565b9392505050565b600082610ebc575060006104fd565b82820282848281610ec957fe5b0414610ea65760405162461bcd60e51b81526004018080602001828103825260218152602001806111d56021913960400191505060405180910390fd5b6000610ea683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506110d8565b600082820183811015610ea6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b81610faf610cb4565b600755610fba610b31565b60065573ffffffffffffffffffffffffffffffffffffffff81161561101b57610fe281610488565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960209081526040808320939093556007546008909152919020555b611025838361113d565b50505050565b600081831061103a5781610ea6565b5090919050565b600081848411156110d05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561109557818101518382015260200161107d565b50505050905090810190601f1680156110c25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111275760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561109557818101518382015260200161107d565b50600083858161113357fe5b0495945050505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600260205260409020548181146104fd5773ffffffffffffffffffffffffffffffffffffffff831660009081526002602052604090208290556001546111a59082906104dc9085610f48565b6001559291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220f7b5b14e58a6bf273f2bab91ed0277207d90758d544ea892eb7a2876a8aaf5df64736f6c634300060c0033000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000a0446d8804611944f1b527ecd37d7dcbe442caba
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018c5760003560e01c806370a08231116100e3578063ad3333481161008c578063df136d6511610066578063df136d6514610445578063ebe2b12b1461044d578063f2fde38b146104555761018c565b8063ad33334814610373578063c8f33c9114610435578063cd3daf9d1461043d5761018c565b806380faa57d116100bd57806380faa57d146103305780638b876347146103385780638da5cb5b1461036b5761018c565b806370a08231146102ed578063715018a6146103205780637b0a47ee146103285761018c565b80631be05289116101455780633c6b16ab1161011f5780633c6b16ab146102c05780633d18b912146102dd5780634187b7d6146102e55761018c565b80631be052891461027757806324b049051461027f57806327a27433146102875761018c565b80630d68b761116101765780630d68b76114610209578063101114cf1461023e57806318160ddd1461026f5761018c565b80628cc262146101915780630700037d146101d6575b600080fd5b6101c4600480360360208110156101a757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610488565b60408051918252519081900360200190f35b6101c4600480360360208110156101ec57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610503565b61023c6004803603602081101561021f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610515565b005b6102466105d3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101c46105ef565b6101c46105f6565b6102466105fd565b61023c6004803603604081101561029d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610621565b61023c600480360360208110156102d657600080fd5b50356106b9565b61023c610865565b6102466109f9565b6101c46004803603602081101561030357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a1d565b61023c610a45565b6101c4610b2b565b6101c4610b31565b6101c46004803603602081101561034e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b44565b610246610b56565b61023c6004803603604081101561038957600080fd5b8101906020810181356401000000008111156103a457600080fd5b8201836020820111156103b657600080fd5b803590602001918460208302840111640100000000831117156103d857600080fd5b9193909290916020810190356401000000008111156103f657600080fd5b82018360208201111561040857600080fd5b8035906020019184602083028401116401000000008311171561042a57600080fd5b509092509050610b72565b6101c4610cae565b6101c4610cb4565b6101c4610d02565b6101c4610d08565b61023c6004803603602081101561046b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d0e565b73ffffffffffffffffffffffffffffffffffffffff811660009081526009602090815260408083205460089092528220546104fd91906104f790670de0b6b3a7640000906104f1906104e2906104dc610cb4565b90610e64565b6104eb88610a1d565b90610ead565b90610f06565b90610f48565b92915050565b60096020526000908152604090205481565b61051d610fa2565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461058c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b6001545b90565b62093a8081565b7f000000000000000000000000111111111117dc0aa78b770fa6a738034120c30281565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000a0446d8804611944f1b527ecd37d7dcbe442caba16146106ab576040805162461bcd60e51b815260206004820152601f60248201527f416363657373207265737472696374656420746f206d6f746865727368697000604482015290519081900360640190fd5b6106b58282610fa6565b5050565b60035473ffffffffffffffffffffffffffffffffffffffff166106da610fa2565b73ffffffffffffffffffffffffffffffffffffffff1614610742576040805162461bcd60e51b815260206004820152600d60248201527f4163636573732064656e69656400000000000000000000000000000000000000604482015290519081900360640190fd5b600061074c610cb4565b600755610757610b31565b60065573ffffffffffffffffffffffffffffffffffffffff8116156107b85761077f81610488565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960209081526040808320939093556007546008909152919020555b60045442106107d6576107ce8262093a80610f06565b600555610818565b6004546000906107e69042610e64565b905060006107ff60055483610ead90919063ffffffff16565b905061081262093a806104f18684610f48565b60055550505b42600681905561082b9062093a80610f48565b6004556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b3361086e610cb4565b600755610879610b31565b60065573ffffffffffffffffffffffffffffffffffffffff8116156108da576108a181610488565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960209081526040808320939093556007546008909152919020555b60006108e533610488565b905080156106b55733600081815260096020908152604080832083905580517fa9059cbb000000000000000000000000000000000000000000000000000000008152600481019490945260248401859052517f000000000000000000000000111111111117dc0aa78b770fa6a738034120c30273ffffffffffffffffffffffffffffffffffffffff169363a9059cbb9360448083019493928390030190829087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b505050506040513d60208110156109bd57600080fd5b505060408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25050565b7f000000000000000000000000a0446d8804611944f1b527ecd37d7dcbe442caba81565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b610a4d610fa2565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610abc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60055481565b6000610b3f4260045461102b565b905090565b60086020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000a0446d8804611944f1b527ecd37d7dcbe442caba1614610bfc576040805162461bcd60e51b815260206004820152601f60248201527f416363657373207265737472696374656420746f206d6f746865727368697000604482015290519081900360640190fd5b828114610c50576040805162461bcd60e51b815260206004820152601d60248201527f417272617973206c656e6774682073686f756c6420626520657175616c000000604482015290519081900360640190fd5b60005b83811015610ca757610c9f858583818110610c6a57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff16848484818110610c9357fe5b90506020020135610fa6565b600101610c53565b5050505050565b60065481565b6000610cbe6105ef565b610ccb57506007546105f3565b610b3f610cf9610cd96105ef565b6104f1670de0b6b3a76400006104eb6005546104eb6006546104dc610b31565b60075490610f48565b60075481565b60045481565b610d16610fa2565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610d85576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610dd75760405162461bcd60e51b81526004018080602001828103825260268152602001806111af6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000610ea683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611041565b9392505050565b600082610ebc575060006104fd565b82820282848281610ec957fe5b0414610ea65760405162461bcd60e51b81526004018080602001828103825260218152602001806111d56021913960400191505060405180910390fd5b6000610ea683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506110d8565b600082820183811015610ea6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b81610faf610cb4565b600755610fba610b31565b60065573ffffffffffffffffffffffffffffffffffffffff81161561101b57610fe281610488565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600960209081526040808320939093556007546008909152919020555b611025838361113d565b50505050565b600081831061103a5781610ea6565b5090919050565b600081848411156110d05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561109557818101518382015260200161107d565b50505050905090810190601f1680156110c25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111275760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561109557818101518382015260200161107d565b50600083858161113357fe5b0495945050505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600260205260409020548181146104fd5773ffffffffffffffffffffffffffffffffffffffff831660009081526002602052604090208290556001546111a59082906104dc9085610f48565b6001559291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220f7b5b14e58a6bf273f2bab91ed0277207d90758d544ea892eb7a2876a8aaf5df64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000111111111117dc0aa78b770fa6a738034120c302000000000000000000000000a0446d8804611944f1b527ecd37d7dcbe442caba
-----Decoded View---------------
Arg [0] : _gift (address): 0x111111111117dC0aa78b770fA6A738034120C302
Arg [1] : _mothership (address): 0xA0446D8804611944F1B527eCD37d7dcbE442caba
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000111111111117dc0aa78b770fa6a738034120c302
Arg [1] : 000000000000000000000000a0446d8804611944f1b527ecd37d7dcbe442caba
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 98.42% | $0.386963 | 188,814.2356 | $73,064.12 | |
GNO | 0.48% | $1 | 358.2783 | $358.32 | |
GNO | 0.28% | $248.26 | 0.8489 | $210.74 | |
GNO | 0.25% | $3,277.35 | 0.0559 | $183.3 | |
GNO | 0.16% | $49.84 | 2.3697 | $118.11 | |
GNO | 0.15% | $696.25 | 0.1567 | $109.11 | |
GNO | 0.09% | $0.085204 | 754.6796 | $64.3 | |
GNO | 0.06% | $1 | 43.699 | $43.7 | |
GNO | 0.05% | $0.83626 | 40.8977 | $34.2 | |
GNO | 0.04% | $1 | 28.2173 | $28.22 | |
GNO | 0.02% | $74.07 | 0.1737 | $12.87 | |
GNO | <0.01% | $0.999509 | 2.381 | $2.38 | |
GNO | <0.01% | $20.09 | 0.1141 | $2.29 | |
GNO | <0.01% | $0.116334 | 12.3246 | $1.43 | |
GNO | <0.01% | $94,212 | 0.00001521 | $1.43 | |
GNO | <0.01% | $0.719853 | 1.1904 | $0.8569 | |
GNO | <0.01% | $0.003197 | 189.2005 | $0.6048 | |
GNO | <0.01% | $3.84 | 0.1486 | $0.5706 | |
GNO | <0.01% | $0.006163 | 30.8633 | $0.1902 | |
GNO | <0.01% | $0.164093 | 0.7024 | $0.1152 | |
BSC | <0.01% | $0.562683 | 1 | $0.5626 |
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.