Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
30,907,346.978639133480321438 sPRBLY
Holders
208
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
66,865.109880362972529193 sPRBLYValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
StakedProbablyNothing
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // *****+=:. .=*****+-. -#@@#-. .+*****=:. .****+: :*****+=:. -***: -+**= =***. // ...:=*#%%#*=:.. .+%@*. @@@@%@@@@* .#@@@%%@@@*. +@@@@%@@@- :%@@@%%@@@- +@@@@@# -@@@@%@@@@+ +@@@- #@@@: %@@% // .:=%@@@@@@@@@@@@@@#-. .#@@@@%: @@@% .#@@%=.#@@* +@@@= -%@@#: #@@@: :%@@- .@@@@ .@@@#@@# -@@@* :%@@*: +@@@- =@@@+ =@@@. // .-%@@@@@@%%%%%%%%@@@@@@+=%@@@%*. @@@% :@@@*.#@@* =@@@= +@@@- *@@@- :%@@=..%@@@ .@@%.@@%: -@@@* .+@@#: +@@@- *@@@:%@@+ // -%@@@@%##=. :*##@@@@@@@%#. @@@@:-*@@%=.#@@#::*@@%- +@@@- +@@@= :%@@*+#@@@= +@@%.@@@# -@@@#+#@@@= +@@@- .#@@=@@% // .=@@@@#*: *@@@@@#- @@@@@@@@#+ .#@@@@@@@@= +@@@- +@@@+.:%@@%##@@#: @@@#.%@@# -@@@%#%@@#-. +@@@- +@@@@@: // :*@@@@+. .=%@@@#*. @@@@***+. .#@@%+*%@@#: +@@@- *@@@+ :%@@- %@@@. .@@@#=*@@%- -@@@* :*@@@= +@@@- #@@@# // .#@@@%= .-#@@@%#: : @@@% .#@@* =@@@= +@@@= *@@@- :%@@- +@@@= +@@@@@@@@@* -@@@* =@@@= +@@@- *@@@: // =@@@@= :*@@@@#-. .-%: @@@% .#@@* =@@@= -%@@*=-%@@#. :%@@*=-%@@@: @@@@++*@@@# -@@@#--*@@%- +@@@*----. *@@@: // .@@@@+ :=#@@@#+: -+@@*. @@@% .#@@* =@@@= -#@@@@@@#: :%@@@@@@@*+ .@@@# .*@@%--@@@@@@@@#- +@@@@@@@@: *@@@: // -@@@% .-#@@@%*: *@@@@. +++= .=++- :+++: :++++++. .++++++++. :+++: :+++-.+++++++=: -++++++++. -+++. // #@@@% :*@@@@#-. -%@@@. // %@@@% :+#@@@#=: :%@@@. . . // +@@@% .=#@@@@*: =@@@@. ++++= :++= :++***++: .=+++++++++. =++= .+++- +++= .+++=. :+++- :++***++: // :@@@%- :*@@@@#-. *@@@%. @@@@% =@@# :#@@@#%@@#:-%@@@@@@@@@: %@@%. :@@@* @@@% :@@@@+ -@@@+ :#@@%#@@@#: // @@@@# .*#@@@#=: =%@@@= @@@@@= =@@# .+@@@+:=%@@*:---#@@@+--. %@@%. :@@@* @@@% :@@@@#:-@@@+ :%@@*::*@@@- // -@@@@+ =#@@@@*: -%@@@#. @@@#@% =@@# :%@@*. .+@@%- *@@@- %@@%. :@@@* @@@% :@@@@@+-@@@+ =@@@= :---. // =@@@@#%@@@#-. =%@@@@- @@@=@@*=@@# -@@@* =@@@= *@@@- %@@@#*#@@@* @@@% :@@%+@%*@@@+ =@@@= -****: // =@@@@@@%=. :*@@@@%- @@@-%@%-@@# -@@@* =@@@= *@@@- %@@@@@@@@@* @@@% :@@#-@@%@@@+ =@@@= +@@@@- // =@@@@@*. -#%@@@@+: @@@=:@@%@@# -@@@* =@@@= *@@@- %@@%-:=@@@* @@@% :@@#.+@@@@@+ =@@@= .*@@@- // .%@@@@%:. :*+-:-=*#%%@@@@@%- @@@=.#@@@@# .*@@%- :#@@#: *@@@- %@@%. :@@@* @@@% :@@# -@@@@@+ =@@@= +@@@- // *%@@@@=. :#%@@@%@@@@@@@@@*:. @@@= :@@@@# -@@@%+#@@@+ *@@@- %@@%. :@@@* @@@% :@@# +@@@@+ .*@@@*+%@@@- -#%%: // :%@@@@#. .#@@@@@@@@@@@@*:. @@@= .#@@@# =@@@@@@@+ *@@@- %@@%. :@@@* @@@% :@@# -@@@@+ -%@@@@@@@@- :%@@: // .:-:. ....:::..... .. ... ..:::.. ... .. ... ... .. .... .::..... .. // /// @title Probably Nothing Staking Rewards /// @author 0xEwok and audie.eth /// @notice Auto-compounding staking rewards for PRBLY. pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract StakedProbablyNothing is Ownable, ERC20Burnable { event AddStake(address indexed _addr, uint _baseTokenValue, uint _stakedTokenValue); event RemoveStake(address indexed _addr, uint _baseTokenValue, uint _stakedTokenValue); event FundRewards(address indexed _addr, uint _numEpochs, uint _secondsPerEpoch, uint _rewardsPerEpoch); // token address to be staked address private tokenAddress; // amount of token staked uint256 private poolDeposits; // token rewards to be vested per epoch uint256 private rewardsPerEpoch; // tracker variable to track amount funded uint256 private cumulativeFundedRewards; // cumulative rewards withdrawn uint256 private poolWithdrawals; uint private rewardsPeriodStartTime; uint private rewardsPeriodEndTime; uint private rewardsFundedEpochs; // vesting interval length uint private rewardsEpochLength = 86400; constructor( string memory name_, string memory symbol_, address tokenAddress_ ) ERC20(name_, symbol_) { tokenAddress = tokenAddress_; } /** @notice Mints staked token. Also referred to as "staking token". */ function _mint(address account, uint256 amount) internal override (ERC20) { super._mint(account, amount); } /** @notice Setup and fund the staking rewards period * @param rewardsPerEpoch_ the base token rewards per epoch * @param numEpochs_ the number of epochs to fund * @param secondsPerEpoch_ the number of seconds per epoch */ function fundStakingRewards(uint numEpochs_, uint secondsPerEpoch_, uint256 rewardsPerEpoch_) public onlyOwner { // validate input parameters require(secondsPerEpoch_ > 0, "Sanity check: minimum epoch length is 1 second"); require(secondsPerEpoch_ < 86401, "Sanity check: can only set epoch length up to 1 day"); require(numEpochs_ * secondsPerEpoch_ < 15552000, "Sanity check: can only setup 180 days of rewards at a time"); // update tracking variables before transfer // must be done if at least one withdrawal or vested rewards > 0, so just do every time // ok to do if only deposits, or if nothing happened yet // check invariants: can only be called when another staking period is not active require(block.timestamp > rewardsPeriodEndTime, "Invariant check: Can only update rewards after prior rewards period ends"); require(block.timestamp > rewardsPeriodStartTime, "Re-entry check: Cannot update rewards before rewards period starts"); poolDeposits = getStakingPoolSize(); poolWithdrawals = 0; // transfer token in uint rewardsTotal = rewardsPerEpoch_ * numEpochs_; require( IERC20(tokenAddress).transferFrom(msg.sender, address(this), rewardsTotal), "Failed transferring tokens from sender" ); // set tracking variables for this vesting rewards period rewardsEpochLength = secondsPerEpoch_; rewardsPerEpoch = rewardsPerEpoch_; rewardsFundedEpochs = numEpochs_; rewardsPeriodStartTime = block.timestamp; rewardsPeriodEndTime = block.timestamp + numEpochs_ * rewardsEpochLength; require(vestedRewards() == 0, "Invariant failed: vested rewards should be 0. None should have vested yet."); // read-only variable to track cumulative rewards cumulativeFundedRewards = cumulativeFundedRewards + rewardsTotal; emit FundRewards(msg.sender, numEpochs_, secondsPerEpoch_, rewardsPerEpoch_); } /** @notice The length of a vesting period in seconds */ function getRewardsEpochLength() public view returns (uint256) { return rewardsEpochLength; } /** @notice The start time for this reward period */ function getRewardsPeriodStartTime() public view returns (uint256) { return rewardsPeriodStartTime; } /** @notice The end time for this reward period */ function getRewardsPeriodEndTime() public view returns (uint256) { return rewardsPeriodEndTime; } /** @notice Base token rewards per epoch, shared equally across staking token holders */ function getRewardsPerEpoch() public view returns (uint256) { return rewardsPerEpoch; } /** @notice The number of epochs with funded rewards */ function getRewardsFundedEpochs() public view returns (uint256) { return rewardsFundedEpochs; } /** @notice The total base tokens deposited for this reward period */ function getPoolDeposits() public view returns (uint256) { return poolDeposits; } /** @notice The total base tokens withdrawn for this reward period */ function getRewardsPeriodPoolWithdrawalsTotal() public view returns (uint256) { return poolWithdrawals; } /** @notice The total funded rewards for this reward period */ function totalRewards() public view returns (uint256) { return rewardsPerEpoch * rewardsFundedEpochs; } /** @notice The number of elapsed epochs that have vested for this reward period */ function getElapsedEpochs() public view returns (uint256) { if (rewardsPeriodStartTime == 0) { return 0; } if (block.timestamp >= rewardsPeriodEndTime) { return rewardsFundedEpochs; } return (block.timestamp - rewardsPeriodStartTime) / rewardsEpochLength; } /** @notice The remaining number of epochs that will vest for this reward period */ function getRemainingEpochs() public view returns (uint256) { return rewardsFundedEpochs - getElapsedEpochs(); } /** @notice The amount of rewards that have vested for this reward period */ function vestedRewards() public view returns (uint256) { if (rewardsPeriodStartTime == 0 || block.timestamp < rewardsPeriodStartTime) { return 0; } uint elapsedEpochs = (block.timestamp - rewardsPeriodStartTime) / rewardsEpochLength; if (elapsedEpochs >= rewardsFundedEpochs) { return totalRewards(); } return elapsedEpochs * rewardsPerEpoch; } /** @notice The next vest time */ function nextVestTime() public view returns (uint256) { if (rewardsPeriodStartTime == 0 || block.timestamp < rewardsPeriodStartTime) { return 0; } uint elapsedEpochs = (block.timestamp - rewardsPeriodStartTime) / rewardsEpochLength; if (elapsedEpochs >= rewardsFundedEpochs) { return rewardsPeriodStartTime + rewardsFundedEpochs * rewardsEpochLength; } return rewardsPeriodStartTime + (elapsedEpochs + 1) * rewardsEpochLength; } /** @notice The number of seconds until the next vest time */ function secondsUntilNextVest() public view returns (uint256) { return nextVestTime() - block.timestamp; } /** @notice Whether rewards are actively vesting */ function isVestingRewardsNow() public view returns (bool) { return block.timestamp >= rewardsPeriodStartTime && block.timestamp < rewardsPeriodEndTime; } /** @notice The size of the staking pool, including deposits and vested rewards */ function getStakingPoolSize() public view returns (uint256) { return poolDeposits + vestedRewards() - poolWithdrawals; } /** @notice Convert base token to staking token based on current conversion ratio * @param amount The amount of based token */ function toStakedToken(uint256 amount) public view returns (uint256) { uint256 totalStakedToken = totalSupply(); // first staker has claim to entire pool, even if some of it has vested already if (totalStakedToken == 0) { return amount; } uint256 totalBaseToken = getStakingPoolSize(); // ammount * staking/base return amount * totalStakedToken / totalBaseToken; } /** @notice Convert staking token to base token based on current conversion ratio * @param amount The amount of staking token */ function toBaseToken(uint256 amount) public view returns (uint256) { uint256 totalStakedToken = totalSupply(); if (totalStakedToken == 0) { return amount; } uint256 totalBaseToken = getStakingPoolSize(); // ammount * base/staking return amount * totalBaseToken / totalStakedToken; } /** @notice Stake base token and received staked token. */ function addStake(uint256 baseTokenAmount) external { // take base token token in require( IERC20(tokenAddress).transferFrom(msg.sender, address(this), baseTokenAmount), "Failed transferring token from sender" ); // conversion relies on supply of staked token and amount of base token staked, so must do math first uint256 stakedTokenAmount = toStakedToken(baseTokenAmount); // give back staked token _mint(msg.sender, stakedTokenAmount); poolDeposits += baseTokenAmount; emit AddStake(msg.sender, baseTokenAmount, stakedTokenAmount); } /** @notice Remove staking token and withdraw base token. */ function removeStake(uint256 stakedTokenAmount) external { // take staking token in require( stakedTokenAmount <= balanceOf(msg.sender), "Cannot remove stake for more tokens than owned" ); // give back their stake uint256 baseTokenAmount = toBaseToken(stakedTokenAmount); require(baseTokenAmount <= getStakingPoolSize(), "Converted token amount is greater than staked + rewards. Something went wrong."); require( IERC20(tokenAddress).transfer(msg.sender, baseTokenAmount), "Insufficient token reward in staking contract. Unexpected." ); // burn their staked token burn(stakedTokenAmount); poolWithdrawals += baseTokenAmount; emit RemoveStake(msg.sender, baseTokenAmount, stakedTokenAmount); } /** @notice The cumulative amount of rewards that have been funded. */ function getCumulativeFundedRewards() public view returns (uint256) { return cumulativeFundedRewards; } /** @notice The cumulative amount of rewards that have vested. */ function getCumulativeVestedRewards() public view returns (uint256) { return cumulativeFundedRewards + vestedRewards() - totalRewards(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^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() { _transferOwnership(_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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "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":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"tokenAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_baseTokenValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakedTokenValue","type":"uint256"}],"name":"AddStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_numEpochs","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_secondsPerEpoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardsPerEpoch","type":"uint256"}],"name":"FundRewards","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_baseTokenValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakedTokenValue","type":"uint256"}],"name":"RemoveStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"baseTokenAmount","type":"uint256"}],"name":"addStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numEpochs_","type":"uint256"},{"internalType":"uint256","name":"secondsPerEpoch_","type":"uint256"},{"internalType":"uint256","name":"rewardsPerEpoch_","type":"uint256"}],"name":"fundStakingRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCumulativeFundedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCumulativeVestedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getElapsedEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPoolDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsEpochLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsFundedEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsPerEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsPeriodEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsPeriodPoolWithdrawalsTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardsPeriodStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakingPoolSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isVestingRewardsNow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextVestTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakedTokenAmount","type":"uint256"}],"name":"removeStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondsUntilNextVest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"toBaseToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"toStakedToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405262015180600e553480156200001857600080fd5b5060405162001d7d38038062001d7d8339810160408190526200003b9162000263565b82826200004833620000a0565b81516200005d906004906020850190620000f0565b50805162000073906005906020840190620000f0565b5050600680546001600160a01b0319166001600160a01b039390931692909217909155506200032d915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000fe90620002f0565b90600052602060002090601f0160209004810192826200012257600085556200016d565b82601f106200013d57805160ff19168380011785556200016d565b828001600101855582156200016d579182015b828111156200016d57825182559160200191906001019062000150565b506200017b9291506200017f565b5090565b5b808211156200017b576000815560010162000180565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001be57600080fd5b81516001600160401b0380821115620001db57620001db62000196565b604051601f8301601f19908116603f0116810190828211818310171562000206576200020662000196565b816040528381526020925086838588010111156200022357600080fd5b600091505b8382101562000247578582018301518183018401529082019062000228565b83821115620002595760008385830101525b9695505050505050565b6000806000606084860312156200027957600080fd5b83516001600160401b03808211156200029157600080fd5b6200029f87838801620001ac565b94506020860151915080821115620002b657600080fd5b50620002c586828701620001ac565b604086015190935090506001600160a01b0381168114620002e557600080fd5b809150509250925092565b600181811c908216806200030557607f821691505b602082108114156200032757634e487b7160e01b600052602260045260246000fd5b50919050565b611a40806200033d6000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80638a52ccee11610130578063b4e9e1f5116100b8578063df45d0b31161007c578063df45d0b314610429578063ea55907e1461043c578063eb4f16b514610444578063f02a71e914610457578063f2fde38b1461045f57600080fd5b8063b4e9e1f5146103eb578063c1806a1d146103fe578063cad77c6714610406578063cb1531881461040e578063dd62ed3e1461041657600080fd5b8063939624ab116100ff578063939624ab146103a257806395d89b41146103b55780639d2bf2e7146103bd578063a457c2d7146103c5578063a9059cbb146103d857600080fd5b80638a52ccee1461036f5780638da5cb5b146103775780638fb0b517146103925780638fb5f0361461039a57600080fd5b8063313ce567116101be5780635c7dec28116101825780635c7dec281461031b578063701ec83e1461032357806370a082311461032b578063715018a61461035457806379cc67901461035c57600080fd5b8063313ce567146102d6578063353007d9146102e557806339509351146102ed57806342966c68146103005780634e087f011461031357600080fd5b806311aaaa781161020557806311aaaa781461029657806317babe151461029e57806318160ddd146102b357806323b872dd146102bb5780632bb2fb8a146102ce57600080fd5b806306fdde0314610237578063095ea7b3146102555780630e15561a14610278578063116b866f1461028e575b600080fd5b61023f610472565b60405161024c9190611781565b60405180910390f35b6102686102633660046117f2565b610504565b604051901515815260200161024c565b61028061051c565b60405190815260200161024c565b610280610533565b600b54610280565b6102b16102ac36600461181c565b6105b5565b005b600354610280565b6102686102c9366004611848565b610a5c565b600754610280565b6040516012815260200161024c565b600c54610280565b6102686102fb3660046117f2565b610a80565b6102b161030e366004611884565b610aa2565b610280610aaf565b600954610280565b610280610ac4565b61028061033936600461189d565b6001600160a01b031660009081526001602052604090205490565b6102b1610b01565b6102b161036a3660046117f2565b610b37565b610280610b50565b6000546040516001600160a01b03909116815260200161024c565b610268610b67565b600e54610280565b6102b16103b0366004611884565b610b7f565b61023f610dec565b610280610dfb565b6102686103d33660046117f2565b610e15565b6102686103e63660046117f2565b610e90565b6102806103f9366004611884565b610e9e565b610280610ee1565b600a54610280565b610280610f3d565b6102806104243660046118bf565b610f5c565b610280610437366004611884565b610f87565b600854610280565b6102b1610452366004611884565b610fb8565b600d54610280565b6102b161046d36600461189d565b611102565b606060048054610481906118f2565b80601f01602080910402602001604051908101604052809291908181526020018280546104ad906118f2565b80156104fa5780601f106104cf576101008083540402835291602001916104fa565b820191906000526020600020905b8154815290600101906020018083116104dd57829003601f168201915b5050505050905090565b60003361051281858561119a565b5060019392505050565b6000600d5460085461052e9190611943565b905090565b6000600b54600014806105475750600b5442105b156105525750600090565b6000600e54600b54426105659190611962565b61056f9190611979565b9050600d54811061059d57600e54600d5461058a9190611943565b600b54610597919061199b565b91505090565b600e546105ab82600161199b565b61058a9190611943565b6000546001600160a01b031633146105e85760405162461bcd60e51b81526004016105df906119b3565b60405180910390fd5b6000821161064f5760405162461bcd60e51b815260206004820152602e60248201527f53616e69747920636865636b3a206d696e696d756d2065706f6368206c656e6760448201526d1d1a081a5cc80c481cd958dbdb9960921b60648201526084016105df565b6201518182106106bd5760405162461bcd60e51b815260206004820152603360248201527f53616e69747920636865636b3a2063616e206f6e6c79207365742065706f6368604482015272206c656e67746820757020746f20312064617960681b60648201526084016105df565b62ed4e006106cb8385611943565b1061073e5760405162461bcd60e51b815260206004820152603a60248201527f53616e69747920636865636b3a2063616e206f6e6c792073657475702031383060448201527f2064617973206f66207265776172647320617420612074696d6500000000000060648201526084016105df565b600c5442116107c65760405162461bcd60e51b815260206004820152604860248201527f496e76617269616e7420636865636b3a2043616e206f6e6c792075706461746560448201527f2072657761726473206166746572207072696f72207265776172647320706572606482015267696f6420656e647360c01b608482015260a4016105df565b600b5442116108485760405162461bcd60e51b815260206004820152604260248201527f52652d656e74727920636865636b3a2043616e6e6f742075706461746520726560448201527f7761726473206265666f7265207265776172647320706572696f642073746172606482015261747360f01b608482015260a4016105df565b610850610dfb565b6007556000600a8190556108648483611943565b6006546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd90606401602060405180830381600087803b1580156108b757600080fd5b505af11580156108cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ef91906119e8565b61094a5760405162461bcd60e51b815260206004820152602660248201527f4661696c6564207472616e7366657272696e6720746f6b656e732066726f6d2060448201526539b2b73232b960d11b60648201526084016105df565b600e8390556008829055600d84905542600b556109678385611943565b610971904261199b565b600c5561097c610ee1565b15610a025760405162461bcd60e51b815260206004820152604a60248201527f496e76617269616e74206661696c65643a20766573746564207265776172647360448201527f2073686f756c6420626520302e204e6f6e652073686f756c642068617665207660648201526932b9ba32b2103cb2ba1760b11b608482015260a4016105df565b80600954610a10919061199b565b600955604080518581526020810185905290810183905233907fd210623dbc18c7bb0d7fb29fccba35b50d56d2bd1a72d6f454e819144c64fbb09060600160405180910390a250505050565b600033610a6a8582856112bf565b610a75858585611339565b506001949350505050565b600033610512818585610a938383610f5c565b610a9d919061199b565b61119a565b610aac3382611507565b50565b600042610aba610533565b61052e9190611962565b6000600b5460001415610ad75750600090565b600c544210610ae75750600d5490565b600e54600b54610af79042611962565b61052e9190611979565b6000546001600160a01b03163314610b2b5760405162461bcd60e51b81526004016105df906119b3565b610b35600061164d565b565b610b428233836112bf565b610b4c8282611507565b5050565b6000610b5a610ac4565b600d5461052e9190611962565b6000600b54421015801561052e575050600c54421090565b33600090815260016020526040902054811115610bf55760405162461bcd60e51b815260206004820152602e60248201527f43616e6e6f742072656d6f7665207374616b6520666f72206d6f726520746f6b60448201526d195b9cc81d1a185b881bdddb995960921b60648201526084016105df565b6000610c0082610e9e565b9050610c0a610dfb565b811115610c965760405162461bcd60e51b815260206004820152604e60248201527f436f6e76657274656420746f6b656e20616d6f756e742069732067726561746560448201527f72207468616e207374616b6564202b20726577617264732e20536f6d6574686960648201526d3733903bb2b73a103bb937b7339760911b608482015260a4016105df565b60065460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b158015610ce257600080fd5b505af1158015610cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1a91906119e8565b610d8c5760405162461bcd60e51b815260206004820152603a60248201527f496e73756666696369656e7420746f6b656e2072657761726420696e2073746160448201527f6b696e6720636f6e74726163742e20556e65787065637465642e00000000000060648201526084016105df565b610d9582610aa2565b80600a6000828254610da7919061199b565b9091555050604080518281526020810184905233917f1fe15ea5d7dbc5d90323d1effa01c82150326aa1ecc0397d0624498f1d7eb4c891015b60405180910390a25050565b606060058054610481906118f2565b6000600a54610e08610ee1565b600754610aba919061199b565b60003381610e238286610f5c565b905083811015610e835760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105df565b610a75828686840361119a565b600033610512818585611339565b600080610eaa60035490565b905080610eb8575090919050565b6000610ec2610dfb565b905081610ecf8286611943565b610ed99190611979565b949350505050565b6000600b5460001480610ef55750600b5442105b15610f005750600090565b6000600e54600b5442610f139190611962565b610f1d9190611979565b9050600d548110610f305761059761051c565b6008546105979082611943565b6000610f4761051c565b610f4f610ee1565b600954610aba919061199b565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b600080610f9360035490565b905080610fa1575090919050565b6000610fab610dfb565b905080610ecf8386611943565b6006546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561100a57600080fd5b505af115801561101e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104291906119e8565b61109c5760405162461bcd60e51b815260206004820152602560248201527f4661696c6564207472616e7366657272696e6720746f6b656e2066726f6d207360448201526432b73232b960d91b60648201526084016105df565b60006110a782610f87565b90506110b3338261169d565b81600760008282546110c5919061199b565b9091555050604080518381526020810183905233917f454558f821e516381f5735afdf706c1069e066bc2f6c62ac498eb191dc57b4289101610de0565b6000546001600160a01b0316331461112c5760405162461bcd60e51b81526004016105df906119b3565b6001600160a01b0381166111915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105df565b610aac8161164d565b6001600160a01b0383166111fc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105df565b6001600160a01b03821661125d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105df565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006112cb8484610f5c565b9050600019811461133357818110156113265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105df565b611333848484840361119a565b50505050565b6001600160a01b03831661139d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105df565b6001600160a01b0382166113ff5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105df565b6001600160a01b038316600090815260016020526040902054818110156114775760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105df565b6001600160a01b038085166000908152600160205260408082208585039055918516815290812080548492906114ae90849061199b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114fa91815260200190565b60405180910390a3611333565b6001600160a01b0382166115675760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105df565b6001600160a01b038216600090815260016020526040902054818110156115db5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105df565b6001600160a01b038316600090815260016020526040812083830390556003805484929061160a908490611962565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016112b2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b4c82826001600160a01b0382166116f85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105df565b806003600082825461170a919061199b565b90915550506001600160a01b0382166000908152600160205260408120805483929061173790849061199b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b818110156117ae57858101830151858201604001528201611792565b818111156117c0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146117ed57600080fd5b919050565b6000806040838503121561180557600080fd5b61180e836117d6565b946020939093013593505050565b60008060006060848603121561183157600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561185d57600080fd5b611866846117d6565b9250611874602085016117d6565b9150604084013590509250925092565b60006020828403121561189657600080fd5b5035919050565b6000602082840312156118af57600080fd5b6118b8826117d6565b9392505050565b600080604083850312156118d257600080fd5b6118db836117d6565b91506118e9602084016117d6565b90509250929050565b600181811c9082168061190657607f821691505b6020821081141561192757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561195d5761195d61192d565b500290565b6000828210156119745761197461192d565b500390565b60008261199657634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156119ae576119ae61192d565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156119fa57600080fd5b815180151581146118b857600080fdfea26469706673582212208c19acdf2139c0a469e8380da6ea392fef7b15bb8c02449f4849cc8bcd4c9c3764736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006361f338ab8def2af3f2a1be7bd8a7db3156f7e700000000000000000000000000000000000000000000000000000000000000175374616b65642050726f6261626c79204e6f7468696e670000000000000000000000000000000000000000000000000000000000000000000000000000000006735052424c590000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80638a52ccee11610130578063b4e9e1f5116100b8578063df45d0b31161007c578063df45d0b314610429578063ea55907e1461043c578063eb4f16b514610444578063f02a71e914610457578063f2fde38b1461045f57600080fd5b8063b4e9e1f5146103eb578063c1806a1d146103fe578063cad77c6714610406578063cb1531881461040e578063dd62ed3e1461041657600080fd5b8063939624ab116100ff578063939624ab146103a257806395d89b41146103b55780639d2bf2e7146103bd578063a457c2d7146103c5578063a9059cbb146103d857600080fd5b80638a52ccee1461036f5780638da5cb5b146103775780638fb0b517146103925780638fb5f0361461039a57600080fd5b8063313ce567116101be5780635c7dec28116101825780635c7dec281461031b578063701ec83e1461032357806370a082311461032b578063715018a61461035457806379cc67901461035c57600080fd5b8063313ce567146102d6578063353007d9146102e557806339509351146102ed57806342966c68146103005780634e087f011461031357600080fd5b806311aaaa781161020557806311aaaa781461029657806317babe151461029e57806318160ddd146102b357806323b872dd146102bb5780632bb2fb8a146102ce57600080fd5b806306fdde0314610237578063095ea7b3146102555780630e15561a14610278578063116b866f1461028e575b600080fd5b61023f610472565b60405161024c9190611781565b60405180910390f35b6102686102633660046117f2565b610504565b604051901515815260200161024c565b61028061051c565b60405190815260200161024c565b610280610533565b600b54610280565b6102b16102ac36600461181c565b6105b5565b005b600354610280565b6102686102c9366004611848565b610a5c565b600754610280565b6040516012815260200161024c565b600c54610280565b6102686102fb3660046117f2565b610a80565b6102b161030e366004611884565b610aa2565b610280610aaf565b600954610280565b610280610ac4565b61028061033936600461189d565b6001600160a01b031660009081526001602052604090205490565b6102b1610b01565b6102b161036a3660046117f2565b610b37565b610280610b50565b6000546040516001600160a01b03909116815260200161024c565b610268610b67565b600e54610280565b6102b16103b0366004611884565b610b7f565b61023f610dec565b610280610dfb565b6102686103d33660046117f2565b610e15565b6102686103e63660046117f2565b610e90565b6102806103f9366004611884565b610e9e565b610280610ee1565b600a54610280565b610280610f3d565b6102806104243660046118bf565b610f5c565b610280610437366004611884565b610f87565b600854610280565b6102b1610452366004611884565b610fb8565b600d54610280565b6102b161046d36600461189d565b611102565b606060048054610481906118f2565b80601f01602080910402602001604051908101604052809291908181526020018280546104ad906118f2565b80156104fa5780601f106104cf576101008083540402835291602001916104fa565b820191906000526020600020905b8154815290600101906020018083116104dd57829003601f168201915b5050505050905090565b60003361051281858561119a565b5060019392505050565b6000600d5460085461052e9190611943565b905090565b6000600b54600014806105475750600b5442105b156105525750600090565b6000600e54600b54426105659190611962565b61056f9190611979565b9050600d54811061059d57600e54600d5461058a9190611943565b600b54610597919061199b565b91505090565b600e546105ab82600161199b565b61058a9190611943565b6000546001600160a01b031633146105e85760405162461bcd60e51b81526004016105df906119b3565b60405180910390fd5b6000821161064f5760405162461bcd60e51b815260206004820152602e60248201527f53616e69747920636865636b3a206d696e696d756d2065706f6368206c656e6760448201526d1d1a081a5cc80c481cd958dbdb9960921b60648201526084016105df565b6201518182106106bd5760405162461bcd60e51b815260206004820152603360248201527f53616e69747920636865636b3a2063616e206f6e6c79207365742065706f6368604482015272206c656e67746820757020746f20312064617960681b60648201526084016105df565b62ed4e006106cb8385611943565b1061073e5760405162461bcd60e51b815260206004820152603a60248201527f53616e69747920636865636b3a2063616e206f6e6c792073657475702031383060448201527f2064617973206f66207265776172647320617420612074696d6500000000000060648201526084016105df565b600c5442116107c65760405162461bcd60e51b815260206004820152604860248201527f496e76617269616e7420636865636b3a2043616e206f6e6c792075706461746560448201527f2072657761726473206166746572207072696f72207265776172647320706572606482015267696f6420656e647360c01b608482015260a4016105df565b600b5442116108485760405162461bcd60e51b815260206004820152604260248201527f52652d656e74727920636865636b3a2043616e6e6f742075706461746520726560448201527f7761726473206265666f7265207265776172647320706572696f642073746172606482015261747360f01b608482015260a4016105df565b610850610dfb565b6007556000600a8190556108648483611943565b6006546040516323b872dd60e01b8152336004820152306024820152604481018390529192506001600160a01b0316906323b872dd90606401602060405180830381600087803b1580156108b757600080fd5b505af11580156108cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ef91906119e8565b61094a5760405162461bcd60e51b815260206004820152602660248201527f4661696c6564207472616e7366657272696e6720746f6b656e732066726f6d2060448201526539b2b73232b960d11b60648201526084016105df565b600e8390556008829055600d84905542600b556109678385611943565b610971904261199b565b600c5561097c610ee1565b15610a025760405162461bcd60e51b815260206004820152604a60248201527f496e76617269616e74206661696c65643a20766573746564207265776172647360448201527f2073686f756c6420626520302e204e6f6e652073686f756c642068617665207660648201526932b9ba32b2103cb2ba1760b11b608482015260a4016105df565b80600954610a10919061199b565b600955604080518581526020810185905290810183905233907fd210623dbc18c7bb0d7fb29fccba35b50d56d2bd1a72d6f454e819144c64fbb09060600160405180910390a250505050565b600033610a6a8582856112bf565b610a75858585611339565b506001949350505050565b600033610512818585610a938383610f5c565b610a9d919061199b565b61119a565b610aac3382611507565b50565b600042610aba610533565b61052e9190611962565b6000600b5460001415610ad75750600090565b600c544210610ae75750600d5490565b600e54600b54610af79042611962565b61052e9190611979565b6000546001600160a01b03163314610b2b5760405162461bcd60e51b81526004016105df906119b3565b610b35600061164d565b565b610b428233836112bf565b610b4c8282611507565b5050565b6000610b5a610ac4565b600d5461052e9190611962565b6000600b54421015801561052e575050600c54421090565b33600090815260016020526040902054811115610bf55760405162461bcd60e51b815260206004820152602e60248201527f43616e6e6f742072656d6f7665207374616b6520666f72206d6f726520746f6b60448201526d195b9cc81d1a185b881bdddb995960921b60648201526084016105df565b6000610c0082610e9e565b9050610c0a610dfb565b811115610c965760405162461bcd60e51b815260206004820152604e60248201527f436f6e76657274656420746f6b656e20616d6f756e742069732067726561746560448201527f72207468616e207374616b6564202b20726577617264732e20536f6d6574686960648201526d3733903bb2b73a103bb937b7339760911b608482015260a4016105df565b60065460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b158015610ce257600080fd5b505af1158015610cf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1a91906119e8565b610d8c5760405162461bcd60e51b815260206004820152603a60248201527f496e73756666696369656e7420746f6b656e2072657761726420696e2073746160448201527f6b696e6720636f6e74726163742e20556e65787065637465642e00000000000060648201526084016105df565b610d9582610aa2565b80600a6000828254610da7919061199b565b9091555050604080518281526020810184905233917f1fe15ea5d7dbc5d90323d1effa01c82150326aa1ecc0397d0624498f1d7eb4c891015b60405180910390a25050565b606060058054610481906118f2565b6000600a54610e08610ee1565b600754610aba919061199b565b60003381610e238286610f5c565b905083811015610e835760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105df565b610a75828686840361119a565b600033610512818585611339565b600080610eaa60035490565b905080610eb8575090919050565b6000610ec2610dfb565b905081610ecf8286611943565b610ed99190611979565b949350505050565b6000600b5460001480610ef55750600b5442105b15610f005750600090565b6000600e54600b5442610f139190611962565b610f1d9190611979565b9050600d548110610f305761059761051c565b6008546105979082611943565b6000610f4761051c565b610f4f610ee1565b600954610aba919061199b565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b600080610f9360035490565b905080610fa1575090919050565b6000610fab610dfb565b905080610ecf8386611943565b6006546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561100a57600080fd5b505af115801561101e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104291906119e8565b61109c5760405162461bcd60e51b815260206004820152602560248201527f4661696c6564207472616e7366657272696e6720746f6b656e2066726f6d207360448201526432b73232b960d91b60648201526084016105df565b60006110a782610f87565b90506110b3338261169d565b81600760008282546110c5919061199b565b9091555050604080518381526020810183905233917f454558f821e516381f5735afdf706c1069e066bc2f6c62ac498eb191dc57b4289101610de0565b6000546001600160a01b0316331461112c5760405162461bcd60e51b81526004016105df906119b3565b6001600160a01b0381166111915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105df565b610aac8161164d565b6001600160a01b0383166111fc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105df565b6001600160a01b03821661125d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105df565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006112cb8484610f5c565b9050600019811461133357818110156113265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105df565b611333848484840361119a565b50505050565b6001600160a01b03831661139d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105df565b6001600160a01b0382166113ff5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105df565b6001600160a01b038316600090815260016020526040902054818110156114775760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105df565b6001600160a01b038085166000908152600160205260408082208585039055918516815290812080548492906114ae90849061199b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114fa91815260200190565b60405180910390a3611333565b6001600160a01b0382166115675760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105df565b6001600160a01b038216600090815260016020526040902054818110156115db5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105df565b6001600160a01b038316600090815260016020526040812083830390556003805484929061160a908490611962565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016112b2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610b4c82826001600160a01b0382166116f85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105df565b806003600082825461170a919061199b565b90915550506001600160a01b0382166000908152600160205260408120805483929061173790849061199b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600060208083528351808285015260005b818110156117ae57858101830151858201604001528201611792565b818111156117c0576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146117ed57600080fd5b919050565b6000806040838503121561180557600080fd5b61180e836117d6565b946020939093013593505050565b60008060006060848603121561183157600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561185d57600080fd5b611866846117d6565b9250611874602085016117d6565b9150604084013590509250925092565b60006020828403121561189657600080fd5b5035919050565b6000602082840312156118af57600080fd5b6118b8826117d6565b9392505050565b600080604083850312156118d257600080fd5b6118db836117d6565b91506118e9602084016117d6565b90509250929050565b600181811c9082168061190657607f821691505b6020821081141561192757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561195d5761195d61192d565b500290565b6000828210156119745761197461192d565b500390565b60008261199657634e487b7160e01b600052601260045260246000fd5b500490565b600082198211156119ae576119ae61192d565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156119fa57600080fd5b815180151581146118b857600080fdfea26469706673582212208c19acdf2139c0a469e8380da6ea392fef7b15bb8c02449f4849cc8bcd4c9c3764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006361f338ab8def2af3f2a1be7bd8a7db3156f7e700000000000000000000000000000000000000000000000000000000000000175374616b65642050726f6261626c79204e6f7468696e670000000000000000000000000000000000000000000000000000000000000000000000000000000006735052424c590000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Staked Probably Nothing
Arg [1] : symbol_ (string): sPRBLY
Arg [2] : tokenAddress_ (address): 0x6361F338Ab8DEf2AF3f2A1Be7BD8A7dB3156F7E7
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000006361f338ab8def2af3f2a1be7bd8a7db3156f7e7
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [4] : 5374616b65642050726f6261626c79204e6f7468696e67000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 735052424c590000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.