Source Code
Latest 25 from a total of 1,120 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Get Reward | 128997322 | 422 days ago | IN | 0 ETH | 0.000000699292 | ||||
| Get Reward | 128865795 | 426 days ago | IN | 0 ETH | 0.000000575416 | ||||
| Get Reward | 127809672 | 450 days ago | IN | 0 ETH | 0.000000104387 | ||||
| Get Reward | 127003186 | 469 days ago | IN | 0 ETH | 0.000000802455 | ||||
| Get Reward | 126977183 | 469 days ago | IN | 0 ETH | 0.000000137015 | ||||
| Get Reward | 125895807 | 494 days ago | IN | 0 ETH | 0.000000637708 | ||||
| Get Reward | 125841876 | 496 days ago | IN | 0 ETH | 0.000000802844 | ||||
| Get Reward | 121956457 | 585 days ago | IN | 0 ETH | 0.00000019047 | ||||
| Get Reward | 120220644 | 626 days ago | IN | 0 ETH | 0.000000485381 | ||||
| Get Reward | 119826465 | 635 days ago | IN | 0 ETH | 0.000000439493 | ||||
| Get Reward | 119152196 | 650 days ago | IN | 0 ETH | 0.000005876924 | ||||
| Get Reward | 118919488 | 656 days ago | IN | 0 ETH | 0.000005742352 | ||||
| Get Reward | 118543734 | 664 days ago | IN | 0 ETH | 0.000004101609 | ||||
| Get Reward | 118364096 | 669 days ago | IN | 0 ETH | 0.000001552095 | ||||
| Get Reward | 118267679 | 671 days ago | IN | 0 ETH | 0.000015692854 | ||||
| Get Reward | 118137848 | 674 days ago | IN | 0 ETH | 0.00000910689 | ||||
| Get Reward | 118015432 | 677 days ago | IN | 0 ETH | 0.000003637957 | ||||
| Get Reward | 117623757 | 686 days ago | IN | 0 ETH | 0.000000444357 | ||||
| Get Reward | 117623716 | 686 days ago | IN | 0 ETH | 0.000000694105 | ||||
| Get Reward | 117404852 | 691 days ago | IN | 0 ETH | 0.000000677536 | ||||
| Get Reward | 117383093 | 691 days ago | IN | 0 ETH | 0.000078452512 | ||||
| Get Reward | 117331575 | 693 days ago | IN | 0 ETH | 0.000094344235 | ||||
| Get Reward | 117022982 | 700 days ago | IN | 0 ETH | 0.000096093973 | ||||
| Get Reward | 117007601 | 700 days ago | IN | 0 ETH | 0.000148014289 | ||||
| Get Reward | 116954191 | 701 days ago | IN | 0 ETH | 0.00008180958 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PikaTokenReward
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../access/Governable.sol";
import "./IPikaStaking.sol";
/** @title PikaTokenReward
@notice Contract to distribute token rewards for PIKA holders.
*/
contract PikaTokenReward is Governable, ReentrancyGuard {
using SafeERC20 for IERC20;
address public immutable rewardToken;
address public pikaStaking;
uint256 public duration = 30 days;
uint256 public periodFinish = 0;
uint256 public rewardRate = 0;
uint256 public lastUpdateTime;
uint256 public rewardPerTokenStored;
uint256 public currentRewards = 0;
uint256 public historicalRewards = 0;
address public admin;
mapping(address => uint256) public userRewardPerTokenPaid;
mapping(address => uint256) public rewards;
event RewardDurationUpdated(uint256 newDuration);
event RewardAdded(uint256 reward);
event RewardPaid(address indexed user, uint256 reward);
event UpdatedAdmin(address admin);
event SetPikaStaking(address pikaStaking);
constructor(
address _pikaStaking,
address _rewardToken
) {
pikaStaking = _pikaStaking;
rewardToken = _rewardToken;
admin = msg.sender;
}
modifier _updateReward(address account) {
rewardPerTokenStored = rewardPerToken();
lastUpdateTime = lastTimeRewardApplicable();
if (account != address(0)) {
rewards[account] = _earnedReward(account);
userRewardPerTokenPaid[account] = rewardPerTokenStored;
}
_;
}
/**
* @return timestamp until rewards are distributed
*/
function lastTimeRewardApplicable() public view returns (uint256) {
return Math.min(block.timestamp, periodFinish);
}
/** @notice reward per token deposited
* @dev gives the total amount of rewards distributed since inception of the pool per vault token
* @return rewardPerToken
*/
function rewardPerToken() public view returns (uint256) {
uint256 supply = IPikaStaking(pikaStaking).totalSupply();
if (supply == 0) {
return rewardPerTokenStored;
}
return rewardPerTokenStored + (((lastTimeRewardApplicable() - lastUpdateTime) * rewardRate * 1e18) / supply);
}
function _earnedReward(address account) internal view returns (uint256) {
if (userRewardPerTokenPaid[account] == 0) {
return 0;
}
uint256 userBalance = IPikaStaking(pikaStaking).balanceOf(account);
return (userBalance * (rewardPerToken() - userRewardPerTokenPaid[account])) / 1e18 + rewards[account];
}
/** @notice earning for an account
* @return amount of tokens earned
*/
function earned(address account) external view returns (uint256) {
return _earnedReward(account);
}
/** @notice use to update rewards on PIKA staking balance changes.
@dev called by Pika Staking contract
* @return true
*/
function updateReward(address _account) external _updateReward(_account) returns (bool) {
return true;
}
/**
* @notice
* Get rewards
*/
function getReward() external nonReentrant {
_getReward(msg.sender);
}
function _getReward(address _account) internal _updateReward(_account) {
uint256 reward = rewards[_account];
if (reward == 0) return;
rewards[_account] = 0;
SafeERC20.safeTransfer(IERC20(rewardToken), _account, reward);
emit RewardPaid(_account, reward);
}
/**
* @notice
* Add new rewards to be distributed over the duration
* @dev Trigger rewardRate recalculation using _amount
* @param _amount token to add to rewards
* @return true
*/
function queueNewRewards(uint256 _amount) external returns (bool) {
require(msg.sender == admin, "!authorized");
require(_amount != 0, "==0");
IERC20(rewardToken).safeTransferFrom(
msg.sender,
address(this),
_amount
);
_notifyRewardAmount(_amount);
return true;
}
function _notifyRewardAmount(uint256 reward) internal _updateReward(address(0)) {
historicalRewards = historicalRewards + reward;
if (block.timestamp >= periodFinish) {
rewardRate = reward / duration;
} else {
uint256 remaining = periodFinish - block.timestamp;
uint256 leftover = remaining * rewardRate;
reward = reward + leftover;
rewardRate = reward / duration;
}
currentRewards = reward;
lastUpdateTime = block.timestamp;
periodFinish = block.timestamp + duration;
emit RewardAdded(reward);
}
function setDuration(uint256 _duration) external {
require(msg.sender == admin, "!authorized");
require(block.timestamp >= periodFinish, "Not finished yet");
duration = _duration;
emit RewardDurationUpdated(_duration);
}
function setPikaStaking(address _pikaStaking) external {
require(msg.sender == admin, "!authorized");
pikaStaking = _pikaStaking;
emit SetPikaStaking(_pikaStaking);
}
function setAdmin(address _admin) external onlyGov returns (bool) {
require(_admin != address(0), "0 address");
admin = _admin;
emit UpdatedAdmin(_admin);
return true;
}
function sweep(address _token) external returns (bool) {
require(msg.sender == admin, "!authorized");
require(_token != rewardToken, "rewardToken");
SafeERC20.safeTransfer(
IERC20(_token),
admin,
IERC20(_token).balanceOf(address(this))
);
return true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 `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);
/**
* @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/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a / b + (a % b == 0 ? 0 : 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Governable {
address public gov;
constructor() public {
gov = msg.sender;
}
modifier onlyGov() {
require(msg.sender == gov, "Governable: forbidden");
_;
}
function setGov(address _gov) external onlyGov {
gov = _gov;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IPikaStaking {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}{
"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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_pikaStaking","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pikaStaking","type":"address"}],"name":"SetPikaStaking","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"UpdatedAdmin","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"historicalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pikaStaking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"queueNewRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pikaStaking","type":"address"}],"name":"setPikaStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"updateReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a060405262278d00600355600060045560006005556000600855600060095534801561002b57600080fd5b5060405161129d38038061129d83398101604081905261004a916100bb565b60008054336001600160a01b03199182168117909255600180556002805482166001600160a01b03959095169490941790935560609190911b6001600160601b031916608052600a80549092161790556100ee565b80516001600160a01b03811681146100b657600080fd5b919050565b600080604083850312156100ce57600080fd5b6100d78361009f565b91506100e56020840161009f565b90509250929050565b60805160601c61117c610121600039600081816102f301528181610371015281816105c30152610b6e015261117c6000f3fe608060405234801561001057600080fd5b50600436106101575760003560e01c80637b0a47ee116100c3578063cfad57a21161007c578063cfad57a2146102b6578063df136d65146102c9578063ebe2b12b146102d2578063f6be71d1146102db578063f7c618c1146102ee578063f851a4401461031557600080fd5b80637b0a47ee1461026b57806380faa57d146102745780638b8763471461027c578063901a7d531461029c578063c8f33c91146102a5578063cd3daf9d146102ae57600080fd5b80631d53ad96116101155780631d53ad961461020e578063262d3d6d146102215780633d18b9121461022a578063590a41f514610232578063632447c914610245578063704b6c021461025857600080fd5b80628cc2621461015c57806301681a62146101825780630700037d146101a55780630fb5a6b4146101c557806312d43a51146101ce5780631bac1629146101f9575b600080fd5b61016f61016a366004610fa3565b610328565b6040519081526020015b60405180910390f35b610195610190366004610fa3565b610339565b6040519015158152602001610179565b61016f6101b3366004610fa3565b600c6020526000908152604090205481565b61016f60035481565b6000546101e1906001600160a01b031681565b6040516001600160a01b039091168152602001610179565b61020c610207366004610fa3565b610470565b005b6002546101e1906001600160a01b031681565b61016f60095481565b61020c6104ef565b610195610240366004610fee565b610556565b610195610253366004610fa3565b6105f4565b610195610266366004610fa3565b61065a565b61016f60055481565b61016f610748565b61016f61028a366004610fa3565b600b6020526000908152604090205481565b61016f60085481565b61016f60065481565b61016f61075b565b61020c6102c4366004610fa3565b610845565b61016f60075481565b61016f60045481565b61020c6102e9366004610fee565b6108b9565b6101e17f000000000000000000000000000000000000000000000000000000000000000081565b600a546101e1906001600160a01b031681565b60006103338261095d565b92915050565b600a546000906001600160a01b0316331461036f5760405162461bcd60e51b81526004016103669061106f565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614156103df5760405162461bcd60e51b815260206004820152600b60248201526a3932bbb0b9322a37b5b2b760a91b6044820152606401610366565b600a546040516370a0823160e01b81523060048201526104689184916001600160a01b03918216918316906370a082319060240160206040518083038186803b15801561042b57600080fd5b505afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190611007565b610a6a565b506001919050565b600a546001600160a01b0316331461049a5760405162461bcd60e51b81526004016103669061106f565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f4afcae026a9720259e93d6cd4e890de053b58459df4b94a373972fdce2ab4227906020015b60405180910390a150565b600260015414156105425760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610366565b600260015561055033610ad2565b60018055565b600a546000906001600160a01b031633146105835760405162461bcd60e51b81526004016103669061106f565b816105b65760405162461bcd60e51b815260206004820152600360248201526203d3d360ec1b6044820152606401610366565b6105eb6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085610bdc565b61046882610c1a565b6000816105ff61075b565b60075561060a610748565b6006556001600160a01b03811615610651576106258161095d565b6001600160a01b0382166000908152600c6020908152604080832093909355600754600b909152919020555b50600192915050565b600080546001600160a01b031633146106ad5760405162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b6044820152606401610366565b6001600160a01b0382166106ef5760405162461bcd60e51b815260206004820152600960248201526830206164647265737360b81b6044820152606401610366565b600a80546001600160a01b0319166001600160a01b0384169081179091556040519081527ffce52dd00c7849a7f2602c1f189745238d6a2db16fabf54376ce24cc2fa3d57f9060200160405180910390a1506001919050565b600061075642600454610d3a565b905090565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107ac57600080fd5b505afa1580156107c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e49190611007565b9050806107f357505060075490565b80600554600654610802610748565b61080c91906110ed565b61081691906110ce565b61082890670de0b6b3a76400006110ce565b61083291906110ac565b60075461083f9190611094565b91505090565b6000546001600160a01b031633146108975760405162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b6044820152606401610366565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146108e35760405162461bcd60e51b81526004016103669061106f565b6004544210156109285760405162461bcd60e51b815260206004820152601060248201526f139bdd08199a5b9a5cda1959081e595d60821b6044820152606401610366565b60038190556040518181527ffeece2f615b2fecca6c26deadea49416a6ba6b52b2cd2613065fd6a787cf1240906020016104e4565b6001600160a01b0381166000908152600b602052604081205461098257506000919050565b6002546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a082319060240160206040518083038186803b1580156109c857600080fd5b505afa1580156109dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a009190611007565b6001600160a01b0384166000908152600c6020908152604080832054600b9092529091205491925090670de0b6b3a764000090610a3b61075b565b610a4591906110ed565b610a4f90846110ce565b610a5991906110ac565b610a639190611094565b9392505050565b6040516001600160a01b038316602482015260448101829052610acd90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610d50565b505050565b80610adb61075b565b600755610ae6610748565b6006556001600160a01b03811615610b2d57610b018161095d565b6001600160a01b0382166000908152600c6020908152604080832093909355600754600b909152919020555b6001600160a01b0382166000908152600c602052604090205480610b5057505050565b6001600160a01b0383166000908152600c6020526040812055610b947f00000000000000000000000000000000000000000000000000000000000000008483610a6a565b826001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610bcf91815260200190565b60405180910390a2505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610c149085906323b872dd60e01b90608401610a96565b50505050565b6000610c2461075b565b600755610c2f610748565b6006556001600160a01b03811615610c7657610c4a8161095d565b6001600160a01b0382166000908152600c6020908152604080832093909355600754600b909152919020555b81600954610c849190611094565b6009556004544210610ca557600354610c9d90836110ac565b600555610ce9565b600042600454610cb591906110ed565b9050600060055482610cc791906110ce565b9050610cd38185611094565b935060035484610ce391906110ac565b60055550505b6008829055426006819055600354610d0091611094565b6004556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a15050565b6000818310610d495781610a63565b5090919050565b6000610da5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e229092919063ffffffff16565b805190915015610acd5780806020019051810190610dc39190610fcc565b610acd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610366565b6060610e318484600085610e39565b949350505050565b606082471015610e9a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610366565b6001600160a01b0385163b610ef15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610366565b600080866001600160a01b03168587604051610f0d9190611020565b60006040518083038185875af1925050503d8060008114610f4a576040519150601f19603f3d011682016040523d82523d6000602084013e610f4f565b606091505b5091509150610f5f828286610f6a565b979650505050505050565b60608315610f79575081610a63565b825115610f895782518084602001fd5b8160405162461bcd60e51b8152600401610366919061103c565b600060208284031215610fb557600080fd5b81356001600160a01b0381168114610a6357600080fd5b600060208284031215610fde57600080fd5b81518015158114610a6357600080fd5b60006020828403121561100057600080fd5b5035919050565b60006020828403121561101957600080fd5b5051919050565b60008251611032818460208701611104565b9190910192915050565b602081526000825180602084015261105b816040850160208701611104565b601f01601f19169190910160400192915050565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b600082198211156110a7576110a7611130565b500190565b6000826110c957634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156110e8576110e8611130565b500290565b6000828210156110ff576110ff611130565b500390565b60005b8381101561111f578181015183820152602001611107565b83811115610c145750506000910152565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220101976fe73a05de80382430cc7f4b7db4e0b1884989bec41d2af8ba9f970e9d264736f6c63430008070033000000000000000000000000323c8b8306d8d10d7fb78151b6d4be6f160f240a0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e78
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101575760003560e01c80637b0a47ee116100c3578063cfad57a21161007c578063cfad57a2146102b6578063df136d65146102c9578063ebe2b12b146102d2578063f6be71d1146102db578063f7c618c1146102ee578063f851a4401461031557600080fd5b80637b0a47ee1461026b57806380faa57d146102745780638b8763471461027c578063901a7d531461029c578063c8f33c91146102a5578063cd3daf9d146102ae57600080fd5b80631d53ad96116101155780631d53ad961461020e578063262d3d6d146102215780633d18b9121461022a578063590a41f514610232578063632447c914610245578063704b6c021461025857600080fd5b80628cc2621461015c57806301681a62146101825780630700037d146101a55780630fb5a6b4146101c557806312d43a51146101ce5780631bac1629146101f9575b600080fd5b61016f61016a366004610fa3565b610328565b6040519081526020015b60405180910390f35b610195610190366004610fa3565b610339565b6040519015158152602001610179565b61016f6101b3366004610fa3565b600c6020526000908152604090205481565b61016f60035481565b6000546101e1906001600160a01b031681565b6040516001600160a01b039091168152602001610179565b61020c610207366004610fa3565b610470565b005b6002546101e1906001600160a01b031681565b61016f60095481565b61020c6104ef565b610195610240366004610fee565b610556565b610195610253366004610fa3565b6105f4565b610195610266366004610fa3565b61065a565b61016f60055481565b61016f610748565b61016f61028a366004610fa3565b600b6020526000908152604090205481565b61016f60085481565b61016f60065481565b61016f61075b565b61020c6102c4366004610fa3565b610845565b61016f60075481565b61016f60045481565b61020c6102e9366004610fee565b6108b9565b6101e17f0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e7881565b600a546101e1906001600160a01b031681565b60006103338261095d565b92915050565b600a546000906001600160a01b0316331461036f5760405162461bcd60e51b81526004016103669061106f565b60405180910390fd5b7f0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e786001600160a01b0316826001600160a01b031614156103df5760405162461bcd60e51b815260206004820152600b60248201526a3932bbb0b9322a37b5b2b760a91b6044820152606401610366565b600a546040516370a0823160e01b81523060048201526104689184916001600160a01b03918216918316906370a082319060240160206040518083038186803b15801561042b57600080fd5b505afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190611007565b610a6a565b506001919050565b600a546001600160a01b0316331461049a5760405162461bcd60e51b81526004016103669061106f565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527f4afcae026a9720259e93d6cd4e890de053b58459df4b94a373972fdce2ab4227906020015b60405180910390a150565b600260015414156105425760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610366565b600260015561055033610ad2565b60018055565b600a546000906001600160a01b031633146105835760405162461bcd60e51b81526004016103669061106f565b816105b65760405162461bcd60e51b815260206004820152600360248201526203d3d360ec1b6044820152606401610366565b6105eb6001600160a01b037f0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e7816333085610bdc565b61046882610c1a565b6000816105ff61075b565b60075561060a610748565b6006556001600160a01b03811615610651576106258161095d565b6001600160a01b0382166000908152600c6020908152604080832093909355600754600b909152919020555b50600192915050565b600080546001600160a01b031633146106ad5760405162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b6044820152606401610366565b6001600160a01b0382166106ef5760405162461bcd60e51b815260206004820152600960248201526830206164647265737360b81b6044820152606401610366565b600a80546001600160a01b0319166001600160a01b0384169081179091556040519081527ffce52dd00c7849a7f2602c1f189745238d6a2db16fabf54376ce24cc2fa3d57f9060200160405180910390a1506001919050565b600061075642600454610d3a565b905090565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107ac57600080fd5b505afa1580156107c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e49190611007565b9050806107f357505060075490565b80600554600654610802610748565b61080c91906110ed565b61081691906110ce565b61082890670de0b6b3a76400006110ce565b61083291906110ac565b60075461083f9190611094565b91505090565b6000546001600160a01b031633146108975760405162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b6044820152606401610366565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146108e35760405162461bcd60e51b81526004016103669061106f565b6004544210156109285760405162461bcd60e51b815260206004820152601060248201526f139bdd08199a5b9a5cda1959081e595d60821b6044820152606401610366565b60038190556040518181527ffeece2f615b2fecca6c26deadea49416a6ba6b52b2cd2613065fd6a787cf1240906020016104e4565b6001600160a01b0381166000908152600b602052604081205461098257506000919050565b6002546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a082319060240160206040518083038186803b1580156109c857600080fd5b505afa1580156109dc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a009190611007565b6001600160a01b0384166000908152600c6020908152604080832054600b9092529091205491925090670de0b6b3a764000090610a3b61075b565b610a4591906110ed565b610a4f90846110ce565b610a5991906110ac565b610a639190611094565b9392505050565b6040516001600160a01b038316602482015260448101829052610acd90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610d50565b505050565b80610adb61075b565b600755610ae6610748565b6006556001600160a01b03811615610b2d57610b018161095d565b6001600160a01b0382166000908152600c6020908152604080832093909355600754600b909152919020555b6001600160a01b0382166000908152600c602052604090205480610b5057505050565b6001600160a01b0383166000908152600c6020526040812055610b947f0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e788483610a6a565b826001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048682604051610bcf91815260200190565b60405180910390a2505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610c149085906323b872dd60e01b90608401610a96565b50505050565b6000610c2461075b565b600755610c2f610748565b6006556001600160a01b03811615610c7657610c4a8161095d565b6001600160a01b0382166000908152600c6020908152604080832093909355600754600b909152919020555b81600954610c849190611094565b6009556004544210610ca557600354610c9d90836110ac565b600555610ce9565b600042600454610cb591906110ed565b9050600060055482610cc791906110ce565b9050610cd38185611094565b935060035484610ce391906110ac565b60055550505b6008829055426006819055600354610d0091611094565b6004556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a15050565b6000818310610d495781610a63565b5090919050565b6000610da5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e229092919063ffffffff16565b805190915015610acd5780806020019051810190610dc39190610fcc565b610acd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610366565b6060610e318484600085610e39565b949350505050565b606082471015610e9a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610366565b6001600160a01b0385163b610ef15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610366565b600080866001600160a01b03168587604051610f0d9190611020565b60006040518083038185875af1925050503d8060008114610f4a576040519150601f19603f3d011682016040523d82523d6000602084013e610f4f565b606091505b5091509150610f5f828286610f6a565b979650505050505050565b60608315610f79575081610a63565b825115610f895782518084602001fd5b8160405162461bcd60e51b8152600401610366919061103c565b600060208284031215610fb557600080fd5b81356001600160a01b0381168114610a6357600080fd5b600060208284031215610fde57600080fd5b81518015158114610a6357600080fd5b60006020828403121561100057600080fd5b5035919050565b60006020828403121561101957600080fd5b5051919050565b60008251611032818460208701611104565b9190910192915050565b602081526000825180602084015261105b816040850160208701611104565b601f01601f19169190910160400192915050565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b600082198211156110a7576110a7611130565b500190565b6000826110c957634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156110e8576110e8611130565b500290565b6000828210156110ff576110ff611130565b500390565b60005b8381101561111f578181015183820152602001611107565b83811115610c145750506000910152565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220101976fe73a05de80382430cc7f4b7db4e0b1884989bec41d2af8ba9f970e9d264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000323c8b8306d8d10d7fb78151b6d4be6f160f240a0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e78
-----Decoded View---------------
Arg [0] : _pikaStaking (address): 0x323c8B8306d8d10D7FB78151b6D4Be6F160f240a
Arg [1] : _rewardToken (address): 0x1508fbb7928aEdc86BEE68C91bC4aFcF493b0e78
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000323c8b8306d8d10d7fb78151b6d4be6f160f240a
Arg [1] : 0000000000000000000000001508fbb7928aedc86bee68c91bc4afcf493b0e78
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
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.