More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,433 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 21481766 | 16 days ago | IN | 0 ETH | 0.00045433 | ||||
Claim | 21357290 | 34 days ago | IN | 0 ETH | 0.00103888 | ||||
Claim | 21301757 | 42 days ago | IN | 0 ETH | 0.00164631 | ||||
Claim | 21126033 | 66 days ago | IN | 0 ETH | 0.00446018 | ||||
Claim | 21056557 | 76 days ago | IN | 0 ETH | 0.00101922 | ||||
Claim | 21012916 | 82 days ago | IN | 0 ETH | 0.00065874 | ||||
Claim | 20997085 | 84 days ago | IN | 0 ETH | 0.00107666 | ||||
Claim | 20996998 | 84 days ago | IN | 0 ETH | 0.00098461 | ||||
Claim | 20927102 | 94 days ago | IN | 0 ETH | 0.00135862 | ||||
Claim | 20897613 | 98 days ago | IN | 0 ETH | 0.00054571 | ||||
Claim | 20639700 | 134 days ago | IN | 0 ETH | 0.00009474 | ||||
Claim | 20597749 | 140 days ago | IN | 0 ETH | 0.00011082 | ||||
Claim | 20593372 | 140 days ago | IN | 0 ETH | 0.00030178 | ||||
Claim | 20589819 | 141 days ago | IN | 0 ETH | 0.00007854 | ||||
Claim | 20587865 | 141 days ago | IN | 0 ETH | 0.00010458 | ||||
Claim | 20552214 | 146 days ago | IN | 0 ETH | 0.0000785 | ||||
Claim | 20519487 | 151 days ago | IN | 0 ETH | 0.00012969 | ||||
Claim | 20491513 | 155 days ago | IN | 0 ETH | 0.00082767 | ||||
Claim | 20471079 | 157 days ago | IN | 0 ETH | 0.00076357 | ||||
Claim | 20368185 | 172 days ago | IN | 0 ETH | 0.00041482 | ||||
Claim | 20354687 | 174 days ago | IN | 0 ETH | 0.00022604 | ||||
Claim | 20346855 | 175 days ago | IN | 0 ETH | 0.00024447 | ||||
Claim | 20341828 | 176 days ago | IN | 0 ETH | 0.00125976 | ||||
Claim | 20304924 | 181 days ago | IN | 0 ETH | 0.00018839 | ||||
Claim | 20284669 | 183 days ago | IN | 0 ETH | 0.00076427 |
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 0xF6b67E11...DCD074802 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Rewards
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/IDAOStaking.sol"; contract Rewards is Ownable { using SafeMath for uint256; uint256 constant decimals = 10 ** 18; struct Pull { address source; uint256 startTs; uint256 endTs; uint256 totalDuration; uint256 totalAmount; } Pull public pullFeature; bool public disabled; uint256 public lastPullTs; uint256 public balanceBefore; uint256 public currentMultiplier; mapping(address => uint256) public userMultiplier; mapping(address => uint256) public owed; IDAOStaking public daoStaking; IERC20 public rewardToken; event Claim(address indexed user, uint256 amount); constructor(address _owner, address _token, address _daoStaking) { require(_token != address(0), "reward token must not be 0x0"); require(_daoStaking != address(0), "daoStaking address must not be 0x0"); transferOwnership(_owner); rewardToken = IERC20(_token); daoStaking = IDAOStaking(_daoStaking); } // registerUserAction is called by the DAOStaking every time the user does a deposit or withdrawal in order to // account for the changes in reward that the user should get // it updates the amount owed to the user without transferring the funds function registerUserAction(address user) public { require(msg.sender == address(daoStaking), 'only callable by daoStaking'); _calculateOwed(user); } // claim calculates the currently owed reward and transfers the funds to the user function claim() public returns (uint256){ _calculateOwed(msg.sender); uint256 amount = owed[msg.sender]; require(amount > 0, "nothing to claim"); owed[msg.sender] = 0; rewardToken.transfer(msg.sender, amount); // acknowledge the amount that was transferred to the user ackFunds(); emit Claim(msg.sender, amount); return amount; } // ackFunds checks the difference between the last known balance of `token` and the current one // if it goes up, the multiplier is re-calculated // if it goes down, it only updates the known balance function ackFunds() public { uint256 balanceNow = rewardToken.balanceOf(address(this)); if (balanceNow == 0 || balanceNow <= balanceBefore) { balanceBefore = balanceNow; return; } uint256 totalStakedStakeborgToken = daoStaking.stakeborgTokenStaked(); // if there's no STANDARD staked, it doesn't make sense to ackFunds because there's nobody to distribute them to // and the calculation would fail anyways due to division by 0 if (totalStakedStakeborgToken == 0) { return; } uint256 diff = balanceNow.sub(balanceBefore); uint256 multiplier = currentMultiplier.add(diff.mul(decimals).div(totalStakedStakeborgToken)); balanceBefore = balanceNow; currentMultiplier = multiplier; } // setupPullToken is used to setup the rewards system; only callable by contract owner // set source to address(0) to disable the functionality function setupPullToken(address source, uint256 startTs, uint256 endTs, uint256 amount) public { require(msg.sender == owner(), "!owner"); require(!disabled, "contract is disabled"); if (pullFeature.source != address(0)) { require(source == address(0), "contract is already set up, source must be 0x0"); disabled = true; } else { require(source != address(0), "contract is not setup, source must be != 0x0"); } if (source == address(0)) { require(startTs == 0, "disable contract: startTs must be 0"); require(endTs == 0, "disable contract: endTs must be 0"); require(amount == 0, "disable contract: amount must be 0"); } else { require(endTs > startTs, "setup contract: endTs must be greater than startTs"); require(amount > 0, "setup contract: amount must be greater than 0"); } pullFeature.source = source; pullFeature.startTs = startTs; pullFeature.endTs = endTs; pullFeature.totalDuration = endTs.sub(startTs); pullFeature.totalAmount = amount; if (lastPullTs < startTs) { lastPullTs = startTs; } } // setDaoStaking sets the address of the Stakeborg DAOStaking into the state variable function setDaoStaking(address _daoStaking) public { require(_daoStaking != address(0), 'daoStaking address must not be 0x0'); require(msg.sender == owner(), '!owner'); daoStaking = IDAOStaking(_daoStaking); } // _pullToken calculates the amount based on the time passed since the last pull relative // to the total amount of time that the pull functionality is active and executes a transferFrom from the // address supplied as `pullTokenFrom`, if enabled function _pullToken() internal { if ( pullFeature.source == address(0) || block.timestamp < pullFeature.startTs ) { return; } uint256 timestampCap = pullFeature.endTs; if (block.timestamp < pullFeature.endTs) { timestampCap = block.timestamp; } if (lastPullTs >= timestampCap) { return; } uint256 timeSinceLastPull = timestampCap.sub(lastPullTs); uint256 shareToPull = timeSinceLastPull.mul(decimals).div(pullFeature.totalDuration); uint256 amountToPull = pullFeature.totalAmount.mul(shareToPull).div(decimals); lastPullTs = block.timestamp; rewardToken.transferFrom(pullFeature.source, address(this), amountToPull); } // _calculateOwed calculates and updates the total amount that is owed to an user and updates the user's multiplier // to the current value // it automatically attempts to pull the token from the source and acknowledge the funds function _calculateOwed(address user) internal { _pullToken(); ackFunds(); uint256 reward = _userPendingReward(user); owed[user] = owed[user].add(reward); userMultiplier[user] = currentMultiplier; } // _userPendingReward calculates the reward that should be based on the current multiplier / anything that's not included in the `owed[user]` value // it does not represent the entire reward that's due to the user unless added on top of `owed[user]` function _userPendingReward(address user) internal view returns (uint256) { uint256 multiplier = currentMultiplier.sub(userMultiplier[user]); return daoStaking.balanceOf(user).mul(multiplier).div(decimals); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/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. */ abstract 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 virtual 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 <0.8.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: MIT pragma solidity >=0.6.0 <0.8.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: Apache-2.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "../libraries/LibStakingStorage.sol"; interface IDAOStaking { // deposit allows a user to add more stakeborg token to his staked balance function deposit(uint256 amount) external; // withdraw allows a user to withdraw funds if the balance is not locked function withdraw(uint256 amount) external; // lock a user's currently staked balance until timestamp & add the bonus to his voting power function lock(uint256 timestamp) external; // delegate allows a user to delegate his voting power to another user function delegate(address to) external; // stopDelegate allows a user to take back the delegated voting power function stopDelegate() external; // lock the balance of a proposal creator until the voting ends; only callable by DAO function lockCreatorBalance(address user, uint256 timestamp) external; // balanceOf returns the current stakeborg token balance of a user (bonus not included) function balanceOf(address user) external view returns (uint256); // balanceAtTs returns the amount of stakeborg token that the user currently staked (bonus NOT included) function balanceAtTs(address user, uint256 timestamp) external view returns (uint256); // stakeAtTs returns the Stake object of the user that was valid at `timestamp` function stakeAtTs(address user, uint256 timestamp) external view returns (LibStakingStorage.Stake memory); // votingPower returns the voting power (bonus included) + delegated voting power for a user at the current block function votingPower(address user) external view returns (uint256); // votingPowerAtTs returns the voting power (bonus included) + delegated voting power for a user at a point in time function votingPowerAtTs(address user, uint256 timestamp) external view returns (uint256); // stakeborgTokenStaked returns the total raw amount of stakeborg token staked at the current block function stakeborgTokenStaked() external view returns (uint256); // stakeborgTokenStakedAtTs returns the total raw amount of stakeborg token users have deposited into the contract // it does not include any bonus function stakeborgTokenStakedAtTs(uint256 timestamp) external view returns (uint256); // delegatedPower returns the total voting power that a user received from other users function delegatedPower(address user) external view returns (uint256); // delegatedPowerAtTs returns the total voting power that a user received from other users at a point in time function delegatedPowerAtTs(address user, uint256 timestamp) external view returns (uint256); // multiplierAtTs calculates the multiplier at a given timestamp based on the user's stake a the given timestamp // it includes the decay mechanism function multiplierAtTs(address user, uint256 timestamp) external view returns (uint256); // userLockedUntil returns the timestamp until the user's balance is locked function userLockedUntil(address user) external view returns (uint256); // userDidDelegate returns the address to which a user delegated their voting power; address(0) if not delegated function userDelegatedTo(address user) external view returns (address); // stakeborgTokenCirculatingSupply returns the current circulating supply of stakeborg token function stakeborgTokenCirculatingSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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: Apache-2.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../interfaces/IRewards.sol"; library LibStakingStorage { bytes32 constant STORAGE_POSITION = keccak256("com.stakeborg.standard.storage"); struct Checkpoint { uint256 timestamp; uint256 amount; } struct Stake { uint256 timestamp; uint256 amount; uint256 expiryTimestamp; address delegatedTo; } struct Storage { bool initialized; // mapping of user address to history of Stake objects // every user action creates a new object in the history mapping(address => Stake[]) userStakeHistory; // array of stakeborgToken staked Checkpoint // deposits/withdrawals create a new object in the history (max one per block) Checkpoint[] stakeborgTokenStakedHistory; // mapping of user address to history of delegated power // every delegate/stopDelegate call create a new checkpoint (max one per block) mapping(address => Checkpoint[]) delegatedPowerHistory; IERC20 stakeborgToken; IRewards rewards; } function daoStakingStorage() internal pure returns (Storage storage ds) { bytes32 position = STORAGE_POSITION; assembly { ds.slot := position } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.7.6; pragma experimental ABIEncoderV2; interface IRewards { function registerUserAction(address user) external; }
{ "optimizer": { "enabled": true, "runs": 9999 }, "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":"_owner","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_daoStaking","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ackFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoStaking","outputs":[{"internalType":"contract IDAOStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPullTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"owed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pullFeature","outputs":[{"internalType":"address","name":"source","type":"address"},{"internalType":"uint256","name":"startTs","type":"uint256"},{"internalType":"uint256","name":"endTs","type":"uint256"},{"internalType":"uint256","name":"totalDuration","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"registerUserAction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_daoStaking","type":"address"}],"name":"setDaoStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"source","type":"address"},{"internalType":"uint256","name":"startTs","type":"uint256"},{"internalType":"uint256","name":"endTs","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setupPullToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061011a5760003560e01c80638da5cb5b116100b2578063d6f5ae3511610081578063ee07080511610066578063ee070805146101fc578063f2fde38b14610211578063f7c618c1146102245761011a565b8063d6f5ae35146101d6578063df18e047146101e95761011a565b80638da5cb5b146101ab57806394b5798a146101b3578063acfd9325146101bb578063b1a03b6b146101c35761011a565b806366a7d821116100ee57806366a7d821146101735780636fbaaa1e14610188578063715018a61461019057806377b28482146101985761011a565b80620f9f4c1461011f578063100223bb1461013d5780634831976c146101525780634e71d92d1461016b575b600080fd5b61012761022c565b6040516101349190611102565b60405180910390f35b610145610248565b6040516101349190611584565b61015a61024e565b60405161013495949392919061117a565b610145610279565b610186610181366004611078565b6103d2565b005b610145610415565b61018661041b565b6101866101a6366004611092565b610518565b61012761076d565b610145610789565b61018661078f565b6101456101d1366004611078565b610957565b6101866101e4366004611078565b610969565b6101456101f7366004611078565b610a35565b610204610a47565b60405161013491906111b5565b61018661021f366004611078565b610a50565b610127610bbd565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60015460025460035460045460055473ffffffffffffffffffffffffffffffffffffffff9094169385565b600061028433610bd9565b336000908152600b6020526040902054806102ba5760405162461bcd60e51b81526004016102b1906112d7565b60405180910390fd5b336000818152600b602052604080822091909155600d5490517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169163a9059cbb9161032491908590600401611123565b602060405180830381600087803b15801561033e57600080fd5b505af1158015610352573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037691906110ca565b5061037f61078f565b3373ffffffffffffffffffffffffffffffffffffffff167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4826040516103c59190611584565b60405180910390a2905090565b600c5473ffffffffffffffffffffffffffffffffffffffff1633146104095760405162461bcd60e51b81526004016102b1906113ff565b61041281610bd9565b50565b60095481565b610423610c66565b73ffffffffffffffffffffffffffffffffffffffff1661044161076d565b73ffffffffffffffffffffffffffffffffffffffff16146104a9576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b61052061076d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461056a5760405162461bcd60e51b81526004016102b19061154d565b60065460ff161561058d5760405162461bcd60e51b81526004016102b19061136b565b60015473ffffffffffffffffffffffffffffffffffffffff161561060f5773ffffffffffffffffffffffffffffffffffffffff8416156105df5760405162461bcd60e51b81526004016102b19061121d565b600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610642565b73ffffffffffffffffffffffffffffffffffffffff84166106425760405162461bcd60e51b81526004016102b19061127a565b73ffffffffffffffffffffffffffffffffffffffff84166106bc57821561067b5760405162461bcd60e51b81526004016102b190611493565b81156106995760405162461bcd60e51b81526004016102b1906114f0565b80156106b75760405162461bcd60e51b81526004016102b1906113a2565b6106fb565b8282116106db5760405162461bcd60e51b81526004016102b190611436565b600081116106fb5760405162461bcd60e51b81526004016102b1906111c0565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86161790556002839055600382905561074f8284610c6a565b60045560058190556007548311156107675760078390555b50505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60085481565b600d546040517f70a0823100000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff16906370a08231906107e6903090600401611102565b60206040518083038186803b1580156107fe57600080fd5b505afa158015610812573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083691906110ea565b905080158061084757506008548111155b1561085457600855610955565b600c54604080517f06eed558000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff16916306eed558916004808301926020929190829003018186803b1580156108bf57600080fd5b505afa1580156108d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f791906110ea565b905080610905575050610955565b600061091c60085484610c6a90919063ffffffff16565b9050600061094861093f8461093985670de0b6b3a7640000610ccc565b90610d2c565b60095490610d93565b6008949094555050506009555b565b600a6020526000908152604090205481565b73ffffffffffffffffffffffffffffffffffffffff811661099c5760405162461bcd60e51b81526004016102b19061130e565b6109a461076d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109ee5760405162461bcd60e51b81526004016102b19061154d565b600c80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600b6020526000908152604090205481565b60065460ff1681565b610a58610c66565b73ffffffffffffffffffffffffffffffffffffffff16610a7661076d565b73ffffffffffffffffffffffffffffffffffffffff1614610ade576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610b305760405162461bcd60e51b815260040180806020018281038252602681526020018061158e6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b610be1610ded565b610be961078f565b6000610bf482610f55565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020526040902054909150610c279082610d93565b73ffffffffffffffffffffffffffffffffffffffff9092166000908152600b6020908152604080832094909455600954600a9091529290209190915550565b3390565b600082821115610cc1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b600082610cdb57506000610cc6565b82820282848281610ce857fe5b0414610d255760405162461bcd60e51b81526004018080602001828103825260218152602001806115b46021913960400191505060405180910390fd5b9392505050565b6000808211610d82576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610d8b57fe5b049392505050565b600082820183811015610d25576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60015473ffffffffffffffffffffffffffffffffffffffff161580610e13575060025442105b15610e1d57610955565b60035442811115610e2b5750425b8060075410610e3a5750610955565b6000610e5160075483610c6a90919063ffffffff16565b600454909150600090610e709061093984670de0b6b3a7640000610ccc565b90506000610e98670de0b6b3a764000061093984600160040154610ccc90919063ffffffff16565b42600755600d546001546040517f23b872dd00000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff918216926323b872dd92610efc92169030908690600401611149565b602060405180830381600087803b158015610f1657600080fd5b505af1158015610f2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4e91906110ca565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260408120546009548291610f8a9190610c6a565b600c546040517f70a0823100000000000000000000000000000000000000000000000000000000815291925061104b91670de0b6b3a76400009161093991859173ffffffffffffffffffffffffffffffffffffffff16906370a0823190610ff5908a90600401611102565b60206040518083038186803b15801561100d57600080fd5b505afa158015611021573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104591906110ea565b90610ccc565b9150505b919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461104f57600080fd5b600060208284031215611089578081fd5b610d2582611054565b600080600080608085870312156110a7578283fd5b6110b085611054565b966020860135965060408601359560600135945092505050565b6000602082840312156110db578081fd5b81518015158114610d25578182fd5b6000602082840312156110fb578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff959095168552602085019390935260408401919091526060830152608082015260a00190565b901515815260200190565b6020808252602d908201527f736574757020636f6e74726163743a20616d6f756e74206d757374206265206760408201527f726561746572207468616e203000000000000000000000000000000000000000606082015260800190565b6020808252602e908201527f636f6e747261637420697320616c7265616479207365742075702c20736f757260408201527f6365206d75737420626520307830000000000000000000000000000000000000606082015260800190565b6020808252602c908201527f636f6e7472616374206973206e6f742073657475702c20736f75726365206d7560408201527f737420626520213d203078300000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f6e6f7468696e6720746f20636c61696d00000000000000000000000000000000604082015260600190565b60208082526022908201527f64616f5374616b696e672061646472657373206d757374206e6f74206265203060408201527f7830000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f636f6e74726163742069732064697361626c6564000000000000000000000000604082015260600190565b60208082526022908201527f64697361626c6520636f6e74726163743a20616d6f756e74206d75737420626560408201527f2030000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f6f6e6c792063616c6c61626c652062792064616f5374616b696e670000000000604082015260600190565b60208082526032908201527f736574757020636f6e74726163743a20656e645473206d75737420626520677260408201527f6561746572207468616e20737461727454730000000000000000000000000000606082015260800190565b60208082526023908201527f64697361626c6520636f6e74726163743a2073746172745473206d757374206260408201527f6520300000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f64697361626c6520636f6e74726163743a20656e645473206d7573742062652060408201527f3000000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526006908201527f216f776e65720000000000000000000000000000000000000000000000000000604082015260600190565b9081526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212206e332336f9e6d2893f12e0a5a6f629b1bf1932dc1a6aa953ed88a0ee4b45d1d564736f6c63430007060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.003319 | 932,198.841 | $3,094.21 |
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.