Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 4,554 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer | 22872533 | 157 days ago | IN | 0 ETH | 0.00001375 | ||||
| Transfer | 21321072 | 374 days ago | IN | 0 ETH | 0.00093985 | ||||
| Claim Reward | 19225062 | 667 days ago | IN | 0 ETH | 0.0009147 | ||||
| Claim Reward | 19183671 | 673 days ago | IN | 0 ETH | 0.00419281 | ||||
| Claim Reward | 19144792 | 678 days ago | IN | 0 ETH | 0.00195554 | ||||
| Claim Reward | 19067976 | 689 days ago | IN | 0 ETH | 0.00085096 | ||||
| Claim Reward | 19063467 | 690 days ago | IN | 0 ETH | 0.0009578 | ||||
| Claim Reward | 19063467 | 690 days ago | IN | 0 ETH | 0.00116157 | ||||
| Claim Reward | 19063466 | 690 days ago | IN | 0 ETH | 0.00097537 | ||||
| Claim Reward | 19063466 | 690 days ago | IN | 0 ETH | 0.00118287 | ||||
| Claim Reward | 19063465 | 690 days ago | IN | 0 ETH | 0.00119796 | ||||
| Claim Reward | 19063464 | 690 days ago | IN | 0 ETH | 0.00096766 | ||||
| Claim Reward | 19063464 | 690 days ago | IN | 0 ETH | 0.00159261 | ||||
| Claim Reward | 19027316 | 695 days ago | IN | 0 ETH | 0.0017914 | ||||
| Claim Reward | 18969859 | 703 days ago | IN | 0 ETH | 0.00102258 | ||||
| Claim Reward | 18939955 | 707 days ago | IN | 0 ETH | 0.00076609 | ||||
| Claim Reward | 18838879 | 721 days ago | IN | 0 ETH | 0.00146008 | ||||
| Claim Reward | 18816381 | 724 days ago | IN | 0 ETH | 0.00282632 | ||||
| Claim Reward | 18808665 | 726 days ago | IN | 0 ETH | 0.00170287 | ||||
| Claim Reward | 18732695 | 736 days ago | IN | 0 ETH | 0.00178649 | ||||
| Claim Reward | 18732692 | 736 days ago | IN | 0 ETH | 0.00177917 | ||||
| Claim Reward | 18715397 | 739 days ago | IN | 0 ETH | 0.00293808 | ||||
| Claim Reward | 18715396 | 739 days ago | IN | 0 ETH | 0.00296175 | ||||
| Claim Reward | 18686140 | 743 days ago | IN | 0 ETH | 0.0038512 | ||||
| Claim Reward | 18686139 | 743 days ago | IN | 0 ETH | 0.00452084 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
RewardToken
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
// ,--------.,------.,------. ,------.,--. ,--.
// '--. .--'| .---'| .-. \ | .-. \\ `.' /
// | | | `--, | | \ :| | \ :'. /
// | | | `---.| '--' /| '--' / | |
// `--' `------'`-------' `-------' `--'
// ,-----. ,------. ,---. ,------.
// | |) /_ | .---' / O \ | .--. '
// | .-. \| `--, | .-. || '--'.'
// | '--' /| `---.| | | || |\ \
// `------' `------'`--' `--'`--' '--'
// ,---. ,-----. ,--. ,--. ,---. ,------.
// ' .-' ' .-. ' | | | | / O \ | .-. \
// `. `-. | | | | | | | || .-. || | \ :
// .-' |' '-' '-.' '-' '| | | || '--' /
// `-----' `-----'--' `-----' `--' `--'`-------'
//
// _ _______ ______ _______
// | |__ __/ __ \ \ / / ____|
// / __) | | | | | \ \_/ / (___
// \__ \ | | | | | |\ / \___ \
// ( / | | | |__| | | | ____) |
// |_| |_| \____/ |_| |_____/
// @nftchef
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
interface iCoreContract {
function balanceOf(address owner) external view returns (uint256);
}
contract RewardToken is ERC20, ERC20Pausable, ERC20Burnable, Ownable {
// @dev: deployed erc721 contract of NFT's earning rewards
iCoreContract public CoreToken;
uint256 public constant REWARD_RATE = 10 ether;
// 10 year supply
uint256 private immutable _cap = 365336530 ether;
mapping(address => uint256) public rewards;
mapping(address => uint256) public lastClaimed;
mapping(address => uint256) public balances;
mapping(address => bool) public accessAddresses;
event RewardClaimed(address indexed user, uint256 reward);
constructor(address _coreContractAddress)
ERC20("Teddy Bear Squad Toys", "TOYS")
{
/// @dev: Initialize the erc721 contract
CoreToken = iCoreContract(_coreContractAddress);
}
// Only callable by the erc721 contract on mint/transferFrom/safeTransferFrom.
// Updates reward amount and last claimed timestamp
function updateReward(
address from,
address to,
uint256 qty
) external {
require(msg.sender == address(CoreToken));
if (from != address(0)) {
rewards[from] += getPendingReward(from);
lastClaimed[from] = block.timestamp;
balances[from] -= qty;
}
if (to != address(0)) {
balances[to] += qty;
rewards[to] += getPendingReward(to);
lastClaimed[to] = block.timestamp;
}
}
function claimReward() external whenNotPaused {
uint256 claimable = rewards[msg.sender] + getPendingReward(msg.sender);
require(
ERC20.totalSupply() + claimable <= cap(),
"ERC20Capped: cap exceeded"
);
_mint(msg.sender, claimable);
emit RewardClaimed(msg.sender, claimable);
/// @dev: reset the state of a users claimed state and last claimed
rewards[msg.sender] = 0;
lastClaimed[msg.sender] = block.timestamp;
}
function getTotalClaimable(address user) external view returns (uint256) {
return rewards[user] + getPendingReward(user);
}
function blocktime() public returns (uint256) {
return block.timestamp;
}
function getPendingReward(address _user) internal view returns (uint256) {
return
(balances[_user] *
REWARD_RATE *
(block.timestamp -
(
lastClaimed[_user] > 0
? lastClaimed[_user]
: block.timestamp
))) / 1 days;
}
// @dev: Allow the main contract to burn tokens when 'spending'
function spend(address user, uint256 amount) external {
require(
accessAddresses[msg.sender] || msg.sender == address(CoreToken),
"Address does not have permission to burn"
);
_burn(user, amount);
}
/**
* @dev Required override
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal override(ERC20, ERC20Pausable) whenNotPaused {
super._beforeTokenTransfer(from, to, amount);
}
/**
* @dev Returns the cap on the token's total supply.
*/
function cap() public view virtual returns (uint256) {
return _cap;
}
// 。☆✼★━━━━━━━━ ( ˘▽˘)っ♨ only owner ━━━━━━━━━━━━━★✼☆。
function setAccessAddresses(address _address, bool _access)
external
onlyOwner
{
accessAddresses[_address] = _access;
}
function setCoreAddress(address _address) external onlyOwner {
CoreToken = iCoreContract(_address);
}
function togglePaused() external onlyOwner {
paused() ? _unpause() : _pause();
}
}// 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 (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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol)
pragma solidity ^0.8.0;
import "../ERC20.sol";
import "../../../security/Pausable.sol";
/**
* @dev ERC20 token with pausable token transfers, minting and burning.
*
* Useful for scenarios such as preventing trades until the end of an evaluation
* period, or having an emergency switch for freezing all token transfers in the
* event of a large bug.
*/
abstract contract ERC20Pausable is ERC20, Pausable {
/**
* @dev See {ERC20-_beforeTokenTransfer}.
*
* Requirements:
*
* - the contract must not be paused.
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual override {
super._beforeTokenTransfer(from, to, amount);
require(!paused(), "ERC20Pausable: token transfer while paused");
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 {
uint256 currentAllowance = allowance(account, _msgSender());
require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
unchecked {
_approve(account, _msgSender(), currentAllowance - amount);
}
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^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: MIT
// OpenZeppelin Contracts v4.4.1 (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:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, 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}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), 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}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - 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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), 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:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, 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 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 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// 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);
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 2200
},
"evmVersion": "london",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_coreContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardClaimed","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CoreToken","outputs":[{"internalType":"contract iCoreContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accessAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocktime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","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":"address","name":"user","type":"address"}],"name":"getTotalClaimable","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":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_access","type":"bool"}],"name":"setAccessAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setCoreAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"spend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"updateReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040526b012e3304f9c882734c0800006080523480156200002157600080fd5b5060405162001c6738038062001c678339810160408190526200004491620001f9565b604080518082018252601581527f5465646479204265617220537175616420546f79730000000000000000000000602080830191825283518085019094526004845263544f595360e01b908401528151919291620000a59160039162000153565b508051620000bb90600490602084019062000153565b50506005805460ff1916905550620000d333620000f9565b600680546001600160a01b0319166001600160a01b039290921691909117905562000268565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000161906200022b565b90600052602060002090601f016020900481019282620001855760008555620001d0565b82601f10620001a057805160ff1916838001178555620001d0565b82800160010185558215620001d0579182015b82811115620001d0578251825591602001919060010190620001b3565b50620001de929150620001e2565b5090565b5b80821115620001de5760008155600101620001e3565b6000602082840312156200020c57600080fd5b81516001600160a01b03811681146200022457600080fd5b9392505050565b600181811c908216806200024057607f821691505b602082108114156200026257634e487b7160e01b600052602260045260246000fd5b50919050565b6080516119dc6200028b6000396000818161031f0152610c7301526119dc6000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80635997bb371161010f5780639dcf9673116100a2578063af7d6ca311610071578063af7d6ca314610462578063b88a802f14610475578063dd62ed3e1461047d578063f2fde38b146104b657600080fd5b80639dcf967314610413578063a457c2d714610436578063a9059cbb14610449578063a9b12c4c1461045c57600080fd5b806379cc6790116100de57806379cc6790146103cf5780638da5cb5b146103e257806391aad239146103f857806395d89b411461040b57600080fd5b80635997bb37146103845780635c975abb1461039357806370a082311461039e578063715018a6146103c757600080fd5b806327e235e31161018757806336566f061161015657806336566f0614610343578063395093511461034b57806342966c681461035e5780634f92301b1461037157600080fd5b806327e235e3146102d95780632c8e8dfa146102f9578063313ce5671461030e578063355274ea1461031d57600080fd5b806310711244116101c3578063107112441461028057806318160ddd146102ab57806323b872dd146102b3578063267e8ab6146102c657600080fd5b8063013eba92146101f557806306fdde03146102285780630700037d1461023d578063095ea7b31461025d575b600080fd5b610215610203366004611744565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b6102306104c9565b60405161021f9190611854565b61021561024b366004611744565b60076020526000908152604090205481565b61027061026b366004611811565b61055b565b604051901515815260200161021f565b600654610293906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b600254610215565b6102706102c1366004611799565b610571565b6102156102d4366004611744565b610635565b6102156102e7366004611744565b60096020526000908152604090205481565b61030c610307366004611799565b610669565b005b6040516012815260200161021f565b7f0000000000000000000000000000000000000000000000000000000000000000610215565b61030c610794565b610270610359366004611811565b610810565b61030c61036c36600461183b565b61084c565b61030c61037f3660046117d5565b610859565b610215678ac7230489e8000081565b60055460ff16610270565b6102156103ac366004611744565b6001600160a01b031660009081526020819052604090205490565b61030c6108e4565b61030c6103dd366004611811565b61094e565b60055461010090046001600160a01b0316610293565b61030c610406366004611744565b6109e8565b610230610a82565b610270610421366004611744565b600a6020526000908152604090205460ff1681565b610270610444366004611811565b610a91565b610270610457366004611811565b610b42565b42610215565b61030c610470366004611811565b610b4f565b61030c610bf7565b61021561048b366004611766565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61030c6104c4366004611744565b610d55565b6060600380546104d890611955565b80601f016020809104026020016040519081016040528092919081815260200182805461050490611955565b80156105515780601f1061052657610100808354040283529160200191610551565b820191906000526020600020905b81548152906001019060200180831161053457829003601f168201915b5050505050905090565b6000610568338484610e3a565b50600192915050565b600061057e848484610f92565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561061d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61062a8533858403610e3a565b506001949350505050565b6000610640826111b5565b6001600160a01b03831660009081526007602052604090205461066391906118c7565b92915050565b6006546001600160a01b0316331461068057600080fd5b6001600160a01b0383161561070057610698836111b5565b6001600160a01b038416600090815260076020526040812080549091906106c09084906118c7565b90915550506001600160a01b03831660009081526008602090815260408083204290556009909152812080548392906106fa90849061193e565b90915550505b6001600160a01b0382161561078f576001600160a01b038216600090815260096020526040812080548392906107379084906118c7565b909155506107469050826111b5565b6001600160a01b0383166000908152600760205260408120805490919061076e9084906118c7565b90915550506001600160a01b03821660009081526008602052604090204290555b505050565b6005546001600160a01b036101009091041633146107f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b60055460ff1661080857610806611241565b565b6108066112e6565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105689185906108479086906118c7565b610e3a565b6108563382611369565b50565b6005546001600160a01b036101009091041633146108b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b6005546001600160a01b036101009091041633146109445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b61080660006114fa565b600061095a833361048b565b9050818110156109d15760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610614565b6109de8333848403610e3a565b61078f8383611369565b6005546001600160a01b03610100909104163314610a485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060600480546104d890611955565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b2b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610614565b610b383385858403610e3a565b5060019392505050565b6000610568338484610f92565b336000908152600a602052604090205460ff1680610b7757506006546001600160a01b031633145b610be95760405162461bcd60e51b815260206004820152602860248201527f4164647265737320646f6573206e6f742068617665207065726d697373696f6e60448201527f20746f206275726e0000000000000000000000000000000000000000000000006064820152608401610614565b610bf38282611369565b5050565b60055460ff1615610c4a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b6000610c55336111b5565b33600090815260076020526040902054610c6f91906118c7565b90507f000000000000000000000000000000000000000000000000000000000000000081610c9c60025490565b610ca691906118c7565b1115610cf45760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401610614565b610cfe338261156b565b60405181815233907f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f72419060200160405180910390a25033600090815260076020908152604080832083905560089091529020429055565b6005546001600160a01b03610100909104163314610db55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b038116610e315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610614565b610856816114fa565b6001600160a01b038316610eb55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b038216610f315760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661100e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b03821661108a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610614565b611095838383611656565b6001600160a01b038316600090815260208190526040902054818110156111245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061115b9084906118c7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111a791815260200190565b60405180910390a350505050565b6001600160a01b03811660009081526008602052604081205462015180906111dd57426111f7565b6001600160a01b0383166000908152600860205260409020545b611201904261193e565b6001600160a01b03841660009081526009602052604090205461122d90678ac7230489e8000090611901565b6112379190611901565b61066391906118df565b60055460ff16156112945760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112c93390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff166113385760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610614565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336112c9565b6001600160a01b0382166113e55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610614565b6113f182600083611656565b6001600160a01b038216600090815260208190526040902054818110156114805760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b03831660009081526020819052604081208383039055600280548492906114af90849061193e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166115c15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610614565b6115cd60008383611656565b80600260008282546115df91906118c7565b90915550506001600160a01b0382166000908152602081905260408120805483929061160c9084906118c7565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055460ff16156116a95760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b61078f83838360055460ff161561078f5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c6520706175736564000000000000000000000000000000000000000000006064820152608401610614565b80356001600160a01b038116811461173f57600080fd5b919050565b60006020828403121561175657600080fd5b61175f82611728565b9392505050565b6000806040838503121561177957600080fd5b61178283611728565b915061179060208401611728565b90509250929050565b6000806000606084860312156117ae57600080fd5b6117b784611728565b92506117c560208501611728565b9150604084013590509250925092565b600080604083850312156117e857600080fd5b6117f183611728565b91506020830135801515811461180657600080fd5b809150509250929050565b6000806040838503121561182457600080fd5b61182d83611728565b946020939093013593505050565b60006020828403121561184d57600080fd5b5035919050565b600060208083528351808285015260005b8181101561188157858101830151858201604001528201611865565b81811115611893576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600082198211156118da576118da611990565b500190565b6000826118fc57634e487b7160e01b600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561193957611939611990565b500290565b60008282101561195057611950611990565b500390565b600181811c9082168061196957607f821691505b6020821081141561198a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220bbea37bd47d91c4dade6799104acb7b83aee3cdab4e8b850d02ea4563f87776264736f6c63430008070033000000000000000000000000750a24d8a496d98f2a8cabc68e7a4b08fa59beb8
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80635997bb371161010f5780639dcf9673116100a2578063af7d6ca311610071578063af7d6ca314610462578063b88a802f14610475578063dd62ed3e1461047d578063f2fde38b146104b657600080fd5b80639dcf967314610413578063a457c2d714610436578063a9059cbb14610449578063a9b12c4c1461045c57600080fd5b806379cc6790116100de57806379cc6790146103cf5780638da5cb5b146103e257806391aad239146103f857806395d89b411461040b57600080fd5b80635997bb37146103845780635c975abb1461039357806370a082311461039e578063715018a6146103c757600080fd5b806327e235e31161018757806336566f061161015657806336566f0614610343578063395093511461034b57806342966c681461035e5780634f92301b1461037157600080fd5b806327e235e3146102d95780632c8e8dfa146102f9578063313ce5671461030e578063355274ea1461031d57600080fd5b806310711244116101c3578063107112441461028057806318160ddd146102ab57806323b872dd146102b3578063267e8ab6146102c657600080fd5b8063013eba92146101f557806306fdde03146102285780630700037d1461023d578063095ea7b31461025d575b600080fd5b610215610203366004611744565b60086020526000908152604090205481565b6040519081526020015b60405180910390f35b6102306104c9565b60405161021f9190611854565b61021561024b366004611744565b60076020526000908152604090205481565b61027061026b366004611811565b61055b565b604051901515815260200161021f565b600654610293906001600160a01b031681565b6040516001600160a01b03909116815260200161021f565b600254610215565b6102706102c1366004611799565b610571565b6102156102d4366004611744565b610635565b6102156102e7366004611744565b60096020526000908152604090205481565b61030c610307366004611799565b610669565b005b6040516012815260200161021f565b7f0000000000000000000000000000000000000000012e3304f9c882734c080000610215565b61030c610794565b610270610359366004611811565b610810565b61030c61036c36600461183b565b61084c565b61030c61037f3660046117d5565b610859565b610215678ac7230489e8000081565b60055460ff16610270565b6102156103ac366004611744565b6001600160a01b031660009081526020819052604090205490565b61030c6108e4565b61030c6103dd366004611811565b61094e565b60055461010090046001600160a01b0316610293565b61030c610406366004611744565b6109e8565b610230610a82565b610270610421366004611744565b600a6020526000908152604090205460ff1681565b610270610444366004611811565b610a91565b610270610457366004611811565b610b42565b42610215565b61030c610470366004611811565b610b4f565b61030c610bf7565b61021561048b366004611766565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61030c6104c4366004611744565b610d55565b6060600380546104d890611955565b80601f016020809104026020016040519081016040528092919081815260200182805461050490611955565b80156105515780601f1061052657610100808354040283529160200191610551565b820191906000526020600020905b81548152906001019060200180831161053457829003601f168201915b5050505050905090565b6000610568338484610e3a565b50600192915050565b600061057e848484610f92565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561061d5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61062a8533858403610e3a565b506001949350505050565b6000610640826111b5565b6001600160a01b03831660009081526007602052604090205461066391906118c7565b92915050565b6006546001600160a01b0316331461068057600080fd5b6001600160a01b0383161561070057610698836111b5565b6001600160a01b038416600090815260076020526040812080549091906106c09084906118c7565b90915550506001600160a01b03831660009081526008602090815260408083204290556009909152812080548392906106fa90849061193e565b90915550505b6001600160a01b0382161561078f576001600160a01b038216600090815260096020526040812080548392906107379084906118c7565b909155506107469050826111b5565b6001600160a01b0383166000908152600760205260408120805490919061076e9084906118c7565b90915550506001600160a01b03821660009081526008602052604090204290555b505050565b6005546001600160a01b036101009091041633146107f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b60055460ff1661080857610806611241565b565b6108066112e6565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105689185906108479086906118c7565b610e3a565b6108563382611369565b50565b6005546001600160a01b036101009091041633146108b95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b6005546001600160a01b036101009091041633146109445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b61080660006114fa565b600061095a833361048b565b9050818110156109d15760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610614565b6109de8333848403610e3a565b61078f8383611369565b6005546001600160a01b03610100909104163314610a485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060600480546104d890611955565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b2b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610614565b610b383385858403610e3a565b5060019392505050565b6000610568338484610f92565b336000908152600a602052604090205460ff1680610b7757506006546001600160a01b031633145b610be95760405162461bcd60e51b815260206004820152602860248201527f4164647265737320646f6573206e6f742068617665207065726d697373696f6e60448201527f20746f206275726e0000000000000000000000000000000000000000000000006064820152608401610614565b610bf38282611369565b5050565b60055460ff1615610c4a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b6000610c55336111b5565b33600090815260076020526040902054610c6f91906118c7565b90507f0000000000000000000000000000000000000000012e3304f9c882734c08000081610c9c60025490565b610ca691906118c7565b1115610cf45760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a20636170206578636565646564000000000000006044820152606401610614565b610cfe338261156b565b60405181815233907f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f72419060200160405180910390a25033600090815260076020908152604080832083905560089091529020429055565b6005546001600160a01b03610100909104163314610db55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610614565b6001600160a01b038116610e315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610614565b610856816114fa565b6001600160a01b038316610eb55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b038216610f315760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661100e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b03821661108a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610614565b611095838383611656565b6001600160a01b038316600090815260208190526040902054818110156111245760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061115b9084906118c7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111a791815260200190565b60405180910390a350505050565b6001600160a01b03811660009081526008602052604081205462015180906111dd57426111f7565b6001600160a01b0383166000908152600860205260409020545b611201904261193e565b6001600160a01b03841660009081526009602052604090205461122d90678ac7230489e8000090611901565b6112379190611901565b61066391906118df565b60055460ff16156112945760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112c93390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff166113385760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610614565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336112c9565b6001600160a01b0382166113e55760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610614565b6113f182600083611656565b6001600160a01b038216600090815260208190526040902054818110156114805760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610614565b6001600160a01b03831660009081526020819052604081208383039055600280548492906114af90849061193e565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600580546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166115c15760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610614565b6115cd60008383611656565b80600260008282546115df91906118c7565b90915550506001600160a01b0382166000908152602081905260408120805483929061160c9084906118c7565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60055460ff16156116a95760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b61078f83838360055460ff161561078f5760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c6520706175736564000000000000000000000000000000000000000000006064820152608401610614565b80356001600160a01b038116811461173f57600080fd5b919050565b60006020828403121561175657600080fd5b61175f82611728565b9392505050565b6000806040838503121561177957600080fd5b61178283611728565b915061179060208401611728565b90509250929050565b6000806000606084860312156117ae57600080fd5b6117b784611728565b92506117c560208501611728565b9150604084013590509250925092565b600080604083850312156117e857600080fd5b6117f183611728565b91506020830135801515811461180657600080fd5b809150509250929050565b6000806040838503121561182457600080fd5b61182d83611728565b946020939093013593505050565b60006020828403121561184d57600080fd5b5035919050565b600060208083528351808285015260005b8181101561188157858101830151858201604001528201611865565b81811115611893576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b600082198211156118da576118da611990565b500190565b6000826118fc57634e487b7160e01b600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561193957611939611990565b500290565b60008282101561195057611950611990565b500390565b600181811c9082168061196957607f821691505b6020821081141561198a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220bbea37bd47d91c4dade6799104acb7b83aee3cdab4e8b850d02ea4563f87776264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000750a24d8a496d98f2a8cabc68e7a4b08fa59beb8
-----Decoded View---------------
Arg [0] : _coreContractAddress (address): 0x750A24D8A496d98f2a8cAbc68E7A4b08Fa59bEB8
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000750a24d8a496d98f2a8cabc68e7a4b08fa59beb8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.