Source Code
Latest 25 from a total of 292 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Exit | 12672964 | 1719 days ago | IN | 0 ETH | 0.00065904 | ||||
| Exit | 12644750 | 1723 days ago | IN | 0 ETH | 0.00103497 | ||||
| Get Reward | 12644750 | 1723 days ago | IN | 0 ETH | 0.00116243 | ||||
| Exit | 12204328 | 1792 days ago | IN | 0 ETH | 0.0177307 | ||||
| Exit | 11721050 | 1866 days ago | IN | 0 ETH | 0.0035772 | ||||
| Exit | 11721050 | 1866 days ago | IN | 0 ETH | 0.0081834 | ||||
| Exit | 11674283 | 1873 days ago | IN | 0 ETH | 0.00477365 | ||||
| Exit | 11564374 | 1890 days ago | IN | 0 ETH | 0.00696394 | ||||
| Exit | 11559434 | 1891 days ago | IN | 0 ETH | 0.01159315 | ||||
| Exit | 11551608 | 1892 days ago | IN | 0 ETH | 0.00709228 | ||||
| Exit | 11534164 | 1895 days ago | IN | 0 ETH | 0.00585113 | ||||
| Exit | 11532446 | 1895 days ago | IN | 0 ETH | 0.00526601 | ||||
| Exit | 11531290 | 1895 days ago | IN | 0 ETH | 0.00520238 | ||||
| Get Reward | 11531286 | 1895 days ago | IN | 0 ETH | 0.00432132 | ||||
| Exit | 11529465 | 1895 days ago | IN | 0 ETH | 0.0075695 | ||||
| Exit | 11529095 | 1895 days ago | IN | 0 ETH | 0.0051958 | ||||
| Exit | 11525440 | 1896 days ago | IN | 0 ETH | 0.0054556 | ||||
| Exit | 11524640 | 1896 days ago | IN | 0 ETH | 0.00274252 | ||||
| Exit | 11524640 | 1896 days ago | IN | 0 ETH | 0.00381892 | ||||
| Exit | 11522095 | 1896 days ago | IN | 0 ETH | 0.00641033 | ||||
| Exit | 11518200 | 1897 days ago | IN | 0 ETH | 0.00395531 | ||||
| Exit | 11517986 | 1897 days ago | IN | 0 ETH | 0.0040917 | ||||
| Exit | 11515847 | 1897 days ago | IN | 0 ETH | 0.00787228 | ||||
| Withdraw | 11511656 | 1898 days ago | IN | 0 ETH | 0.00499698 | ||||
| Exit | 11511523 | 1898 days ago | IN | 0 ETH | 0.00477365 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
NAPMigrationPool
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.6.2;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash
= 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly {
codehash := extcodehash(account)
}
return (codehash != accountHash && codehash != 0x0);
}
/**
* @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"
);
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{value: amount}("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/**
* @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 ERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using SafeMath for uint256;
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)
);
}
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'
// solhint-disable-next-line max-line-length
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).add(
value
);
_callOptionalReturn(
token,
abi.encodeWithSelector(
token.approve.selector,
spender,
newAllowance
)
);
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(
value,
"SafeERC20: decreased allowance below zero"
);
_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.
// A Solidity high level call has three parts:
// 1. The target address is checked to verify it contains contract code
// 2. The call itself is made, and success asserted
// 3. The return value is decoded, which in turn checks the size of the returned data.
// solhint-disable-next-line max-line-length
require(address(token).isContract(), "SafeERC20: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = address(token).call(data);
require(success, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
// solhint-disable-next-line max-line-length
require(
abi.decode(returndata, (bool)),
"SafeERC20: ERC20 operation did not succeed"
);
}
}
}
/**
* @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
);
}
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
}
}
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor() internal {}
function _msgSender() internal virtual view returns (address payable) {
return msg.sender;
}
function _msgData() internal virtual view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract LPTokenWrapper {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 public stakingToken;
address public devFund = 0x3249f8c62640DC8ae2F4Ed14CD03bCA9C6Af98B2;
uint256 public _totalSupply;
uint256 public _totalSupplyAccounting;
uint256 public startTime;
mapping(address => uint256) public _balances;
mapping(address => uint256) public _balancesAccounting;
// Returns the total staked tokens within the contract
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
// Returns staking balance of the account
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
// Set the staking token for the contract
function setStakingToken(address stakingTokenAddress) internal {
stakingToken = IERC20(stakingTokenAddress);
}
// Stake funds into the pool
function stake(uint256 amount) public virtual {
// Increment sender's balances and total supply
_balances[msg.sender] = _balances[msg.sender].add(amount);
_totalSupply = _totalSupply.add(amount);
// Transfer funds
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
}
// Align balances for the user
function withdraw(uint256 amount) public virtual {
_totalSupply = _totalSupply.sub(amount);
_balances[msg.sender] = _balances[msg.sender].sub(amount);
}
}
interface NAPv2Interface {
function migrationPoolSwapV1toV2(uint256 swapAmount) external;
}
contract NAPMigrationPool is LPTokenWrapper, Ownable {
using SafeERC20 for IERC20;
IERC20 public rewardToken;
IERC20 public napV2token;
NAPv2Interface public napV2 = NAPv2Interface(address(0));
uint256 public DURATION = 2 weeks;
uint256 public periodFinish;
uint256 public rewardRate;
uint256 public lastUpdateTime;
uint256 public rewardPerTokenStored;
uint256 public deployedTime;
uint256 public migrationStatus = 0; // 0 = Pool Open, 1 = Pool Closed (Migration Started), 2 = Migration Complete
mapping(address => uint256) public userRewardPerTokenPaid;
mapping(address => uint256) public rewards;
mapping(address => uint256) public spentMultiplierTokens;
mapping(address => uint256) public NAPboostLevel;
event RewardAdded(uint256 reward);
event Staked(address indexed user, uint256 amount);
event Withdrawn(address indexed user, uint256 amount);
event RewardPaid(address indexed user, uint256 reward);
constructor(address _napV1) public {
setStakingToken(_napV1);
deployedTime = block.timestamp;
}
function setOwner(address _newOwner) external onlyOwner {
super.transferOwnership(_newOwner);
}
function lastTimeRewardApplicable() public view returns (uint256) {
return Math.min(block.timestamp, periodFinish);
}
// Returns the current rate of rewards per token (doh)
function rewardPerToken() public view returns (uint256) {
// Do not distribute rewards before games begin
if (block.timestamp < startTime) {
return 0;
}
if (_totalSupply == 0) {
return rewardPerTokenStored;
}
// Effective total supply takes into account all the multipliers bought.
uint256 effectiveTotalSupply = _totalSupply.add(_totalSupplyAccounting);
return
rewardPerTokenStored.add(
lastTimeRewardApplicable()
.sub(lastUpdateTime)
.mul(rewardRate)
.mul(1e18)
.div(effectiveTotalSupply)
);
}
// Returns the current reward tokens that the user can claim.
function earned(address account) public view returns (uint256) {
// Each user has it's own effective balance which is just the staked balance multiplied by boost level NAP multiplier.
uint256 effectiveBalance = _balances[account].add(
_balancesAccounting[account]
);
return
effectiveBalance
.mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
.div(1e18)
.add(rewards[account]);
}
// Staking function which updates the user balances in the parent contract
function stake(uint256 amount) public override {
updateReward(msg.sender);
require(amount > 0, "Cannot stake 0");
require(
migrationStatus == 0,
"Cannot stake tokens anymore, Migration is being processed and Pool has closed"
);
super.stake(amount);
emit Staked(msg.sender, amount);
}
// Withdraw function to remove stake, with output being in v2 of Token
function withdraw(uint256 amount) public override {
require(amount > 0, "Cannot withdraw 0");
require(
migrationStatus == 2,
"Cannot withdraw tokens before migration has finished"
);
updateReward(msg.sender);
napV2token.safeTransfer(msg.sender, amount);
super.withdraw(amount);
emit Withdrawn(msg.sender, amount);
}
// Get the earned rewards and withdraw staked tokens
function exit() external {
require(
migrationStatus == 2,
"Cannot withdraw tokens before migration has finished"
);
getReward();
withdraw(balanceOf(msg.sender));
}
// Sends out the reward tokens to the user.
function getReward() public {
updateReward(msg.sender);
require(
migrationStatus == 2,
"Cannot withdraw tokens before migration has finished"
);
uint256 reward = earned(msg.sender);
if (reward > 0) {
rewardToken.safeTransfer(msg.sender, reward);
rewards[msg.sender] = 0;
emit RewardPaid(msg.sender, reward);
}
}
// Called to start the pool with the reward amount it should distribute
// The reward period will be the duration of the pool.
function notifyRewardAmount(uint256 reward) external onlyOwner {
startTime = now;
updateRewardPerTokenStored();
if (block.timestamp >= periodFinish) {
rewardRate = reward.div(DURATION);
} else {
uint256 remaining = periodFinish.sub(block.timestamp);
uint256 leftover = remaining.mul(rewardRate);
rewardRate = reward.add(leftover).div(DURATION);
}
lastUpdateTime = block.timestamp;
periodFinish = block.timestamp.add(DURATION);
emit RewardAdded(reward);
}
// Notify the reward amount without updating time;
function notifyRewardAmountWithoutUpdateTime(uint256 reward)
external
onlyOwner
{
updateRewardPerTokenStored();
if (block.timestamp >= periodFinish) {
rewardRate = reward.div(DURATION);
} else {
uint256 remaining = periodFinish.sub(block.timestamp);
uint256 leftover = remaining.mul(rewardRate);
rewardRate = reward.add(leftover).div(DURATION);
}
emit RewardAdded(reward);
}
// Ejects any remaining tokens from the pool.
// Callable only after the pool has started and the pools reward distribution period has finished.
function eject() external onlyOwner {
require(
startTime < block.timestamp && block.timestamp >= periodFinish,
"Cannot eject before period finishes or pool has started"
);
uint256 currBalance = rewardToken.balanceOf(address(this));
rewardToken.safeTransfer(msg.sender, currBalance);
}
// Forcefully retire a pool
// Only sets the period finish to 0
// This will prevent more rewards from being disbursed
function kill() external onlyOwner {
periodFinish = block.timestamp;
}
function updateRewardPerTokenStored() internal {
rewardPerTokenStored = rewardPerToken();
lastUpdateTime = lastTimeRewardApplicable();
}
function updateReward(address account) internal {
updateRewardPerTokenStored();
rewards[account] = earned(account);
userRewardPerTokenPaid[account] = rewardPerTokenStored;
}
function migrationBegin() public onlyOwner {
// Transfers all the LP tokens to the Dev address for Migration process
stakingToken.safeTransfer(
msg.sender,
stakingToken.balanceOf(address(this))
);
// Locks the Staking function, closing the Pool.
migrationStatus++;
}
/*
- NAP upgraded to ZZZV2
- Transfer the ZZZV2 tokens to the contract
*/
function migrationFinish(address _napv2address) public onlyOwner {
rewardToken = IERC20(_napv2address);
napV2 = NAPv2Interface(_napv2address);
napV2token = IERC20(_napv2address);
// Unlocks Withdraw, Exit and getReward functions
migrationStatus++;
}
// Emergency Function to change Migration Status in case of unforseen error
function emergencyMigrationStatusChange(uint256 _newMigrationStatus)
public
onlyOwner
{
migrationStatus = _newMigrationStatus;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_napV1","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"NAPboostLevel","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":[{"internalType":"address","name":"","type":"address"}],"name":"_balancesAccounting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupplyAccounting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"eject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMigrationStatus","type":"uint256"}],"name":"emergencyMigrationStatusChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","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":"migrationBegin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_napv2address","type":"address"}],"name":"migrationFinish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrationStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"napV2","outputs":[{"internalType":"contract NAPv2Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"napV2token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmountWithoutUpdateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":"contract IERC20","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":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spentMultiplierTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052600180546001600160a01b0319908116733249f8c62640dc8ae2f4ed14cd03bca9c6af98b217909155600a8054909116905562127500600b55600060115534801561004e57600080fd5b50604051611aa2380380611aa28339818101604052602081101561007157600080fd5b5051600061007d6100de565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506100d4816100e2565b5042601055610104565b3390565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b61198f806101136000396000f3fe608060405234801561001057600080fd5b50600436106102525760003560e01c806365d0d874116101465780638b876347116100c3578063df136d6511610087578063df136d6514610534578063e0bf71471461053c578063e9fad8ee14610544578063ebe2b12b1461054c578063f2fde38b14610554578063f7c618c11461057a57610252565b80638b876347146104d95780638da5cb5b146104ff578063a694fc3a14610507578063c8f33c9114610524578063cd3daf9d1461052c57610252565b806372f702f31161010a57806372f702f3146104b157806378e97925146104b95780637b0a47ee146104c157806380faa57d146104c957806382e94ac5146104d157610252565b806365d0d8741461042f5780636d8ce7d6146104375780636ebcf6071461045d57806370a0823114610483578063715018a6146104a957610252565b80632d633024116101d457806341c0e1b51161019857806341c0e1b5146103e95780634390d2a8146103f1578063461ac019146103f957806349cb99e614610401578063510be0141461040957610252565b80632d633024146103795780632e1a7d4d1461039f5780633c6b16ab146103bc5780633d18b912146103d95780633eaaf86b146103e157610252565b806318160ddd1161021b57806318160ddd146103025780631a54b8051461030a5780631a7002681461032e5780631be052891461034b57806322643a461461035357610252565b80628cc2621461025757806306731d331461028f5780630700037d146102975780630e8fc4f3146102bd57806313af4035146102dc575b600080fd5b61027d6004803603602081101561026d57600080fd5b50356001600160a01b0316610582565b60408051918252519081900360200190f35b61027d61061c565b61027d600480360360208110156102ad57600080fd5b50356001600160a01b0316610622565b6102da600480360360208110156102d357600080fd5b5035610634565b005b6102da600480360360208110156102f257600080fd5b50356001600160a01b0316610691565b61027d6106f5565b6103126106fc565b604080516001600160a01b039092168252519081900360200190f35b6102da6004803603602081101561034457600080fd5b503561070b565b61027d610803565b61027d6004803603602081101561036957600080fd5b50356001600160a01b0316610809565b6102da6004803603602081101561038f57600080fd5b50356001600160a01b031661081b565b6102da600480360360208110156103b557600080fd5b50356108b2565b6102da600480360360208110156103d257600080fd5b503561099e565b6102da610ab0565b61027d610b6e565b6102da610b74565b610312610bd2565b61027d610be1565b6102da610be7565b61027d6004803603602081101561041f57600080fd5b50356001600160a01b0316610cda565b61027d610cec565b61027d6004803603602081101561044d57600080fd5b50356001600160a01b0316610cf2565b61027d6004803603602081101561047357600080fd5b50356001600160a01b0316610d04565b61027d6004803603602081101561049957600080fd5b50356001600160a01b0316610d16565b6102da610d31565b610312610dd3565b61027d610de2565b61027d610de8565b61027d610dee565b6102da610e01565b61027d600480360360208110156104ef57600080fd5b50356001600160a01b0316610f38565b610312610f4a565b6102da6004803603602081101561051d57600080fd5b5035610f59565b61027d611029565b61027d61102f565b61027d6110aa565b6103126110b0565b6102da6110bf565b61027d61111b565b6102da6004803603602081101561056a57600080fd5b50356001600160a01b0316611121565b61031261121a565b6001600160a01b038116600090815260066020908152604080832054600590925282205482916105b29190611229565b6001600160a01b0384166000908152601360209081526040808320546012909252909120549192506106159161060f90670de0b6b3a76400009061060990610602906105fc61102f565b9061128c565b86906112ce565b90611327565b90611229565b9392505050565b60115481565b60136020526000908152604090205481565b61063c611369565b6007546001600160a01b0390811691161461068c576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b601155565b610699611369565b6007546001600160a01b039081169116146106e9576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b6106f281611121565b50565b6002545b90565b6009546001600160a01b031681565b610713611369565b6007546001600160a01b03908116911614610763576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b61076b61136d565b600c54421061078a57600b54610782908290611327565b600d556107cd565b600c5460009061079a904261128c565b905060006107b3600d54836112ce90919063ffffffff16565b600b549091506107c7906106098584611229565b600d5550505b6040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b600b5481565b60146020526000908152604090205481565b610823611369565b6007546001600160a01b03908116911614610873576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b600880546001600160a01b039092166001600160a01b03199283168117909155600a805483168217905560098054909216179055601180546001019055565b600081116108fb576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b60115460021461093c5760405162461bcd60e51b81526004018080602001828103825260348152602001806118376034913960400191505060405180910390fd5b61094533611385565b60095461095c906001600160a01b031633836113c4565b6109658161141b565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b6109a6611369565b6007546001600160a01b039081169116146109f6576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b42600455610a0261136d565b600c544210610a2157600b54610a19908290611327565b600d55610a64565b600c54600090610a31904261128c565b90506000610a4a600d54836112ce90919063ffffffff16565b600b54909150610a5e906106098584611229565b600d5550505b42600e819055600b54610a779190611229565b600c556040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b610ab933611385565b601154600214610afa5760405162461bcd60e51b81526004018080602001828103825260348152602001806118376034913960400191505060405180910390fd5b6000610b0533610582565b905080156106f257600854610b24906001600160a01b031633836113c4565b33600081815260136020908152604080832092909255815184815291517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869281900390910190a250565b60025481565b610b7c611369565b6007546001600160a01b03908116911614610bcc576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b42600c55565b6001546001600160a01b031681565b60105481565b610bef611369565b6007546001600160a01b03908116911614610c3f576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b600054604080516370a0823160e01b81523060048201529051610ccf9233926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610c9057600080fd5b505afa158015610ca4573d6000803e3d6000fd5b505050506040513d6020811015610cba57600080fd5b50516000546001600160a01b031691906113c4565b601180546001019055565b60066020526000908152604090205481565b60035481565b60156020526000908152604090205481565b60056020526000908152604090205481565b6001600160a01b031660009081526005602052604090205490565b610d39611369565b6007546001600160a01b03908116911614610d89576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6000546001600160a01b031681565b60045481565b600d5481565b6000610dfc42600c54611458565b905090565b610e09611369565b6007546001600160a01b03908116911614610e59576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b42600454108015610e6c5750600c544210155b610ea75760405162461bcd60e51b81526004018080602001828103825260378152602001806119236037913960400191505060405180910390fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ef257600080fd5b505afa158015610f06573d6000803e3d6000fd5b505050506040513d6020811015610f1c57600080fd5b50516008549091506106f2906001600160a01b031633836113c4565b60126020526000908152604090205481565b6007546001600160a01b031690565b610f6233611385565b60008111610fa8576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b60115415610fe75760405162461bcd60e51b815260040180806020018281038252604d81526020018061186b604d913960600191505060405180910390fd5b610ff08161146e565b60408051828152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250565b600e5481565b6000600454421015611043575060006106f9565b6002546110535750600f546106f9565b600061106c60035460025461122990919063ffffffff16565b90506110a461109b82610609670de0b6b3a7640000611095600d54611095600e546105fc610dee565b906112ce565b600f5490611229565b91505090565b600f5481565b600a546001600160a01b031681565b6011546002146111005760405162461bcd60e51b81526004018080602001828103825260348152602001806118376034913960400191505060405180910390fd5b611108610ab0565b61111961111433610d16565b6108b2565b565b600c5481565b611129611369565b6007546001600160a01b03908116911614611179576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b6001600160a01b0381166111be5760405162461bcd60e51b81526004018080602001828103825260268152602001806118116026913960400191505060405180910390fd5b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031681565b600082820183811015611283576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061128383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114c0565b6000826112dd57506000611286565b828202828482816112ea57fe5b04146112835760405162461bcd60e51b81526004018080602001828103825260218152602001806118b86021913960400191505060405180910390fd5b600061128383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611557565b3390565b61137561102f565b600f55611380610dee565b600e55565b61138d61136d565b61139681610582565b6001600160a01b03909116600090815260136020908152604080832093909355600f54601290915291902055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114169084906115bc565b505050565b600254611428908261128c565b60025533600090815260056020526040902054611445908261128c565b3360009081526005602052604090205550565b60008183106114675781611283565b5090919050565b336000908152600560205260409020546114889082611229565b336000908152600560205260409020556002546114a59082611229565b6002556000546106f2906001600160a01b031633308461177a565b6000818484111561154f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115145781810151838201526020016114fc565b50505050905090810190601f1680156115415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836115a65760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115145781810151838201526020016114fc565b5060008385816115b257fe5b0495945050505050565b6115ce826001600160a01b03166117d4565b61161f576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061165d5780518252601f19909201916020918201910161163e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146116bf576040519150601f19603f3d011682016040523d82523d6000602084013e6116c4565b606091505b50915091508161171b576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156117745780806020019051602081101561173757600080fd5b50516117745760405162461bcd60e51b815260040180806020018281038252602a8152602001806118f9602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526117749085906115bc565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061180857508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343616e6e6f7420776974686472617720746f6b656e73206265666f7265206d6967726174696f6e206861732066696e697368656443616e6e6f74207374616b6520746f6b656e7320616e796d6f72652c204d6967726174696f6e206973206265696e672070726f63657373656420616e6420506f6f6c2068617320636c6f736564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c206861732073746172746564a2646970667358221220ebe38daf87966552cf0a3f25d7dce3dc5a1b53e190706e9ab8f8e0c489ebc96364736f6c634300060c003300000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102525760003560e01c806365d0d874116101465780638b876347116100c3578063df136d6511610087578063df136d6514610534578063e0bf71471461053c578063e9fad8ee14610544578063ebe2b12b1461054c578063f2fde38b14610554578063f7c618c11461057a57610252565b80638b876347146104d95780638da5cb5b146104ff578063a694fc3a14610507578063c8f33c9114610524578063cd3daf9d1461052c57610252565b806372f702f31161010a57806372f702f3146104b157806378e97925146104b95780637b0a47ee146104c157806380faa57d146104c957806382e94ac5146104d157610252565b806365d0d8741461042f5780636d8ce7d6146104375780636ebcf6071461045d57806370a0823114610483578063715018a6146104a957610252565b80632d633024116101d457806341c0e1b51161019857806341c0e1b5146103e95780634390d2a8146103f1578063461ac019146103f957806349cb99e614610401578063510be0141461040957610252565b80632d633024146103795780632e1a7d4d1461039f5780633c6b16ab146103bc5780633d18b912146103d95780633eaaf86b146103e157610252565b806318160ddd1161021b57806318160ddd146103025780631a54b8051461030a5780631a7002681461032e5780631be052891461034b57806322643a461461035357610252565b80628cc2621461025757806306731d331461028f5780630700037d146102975780630e8fc4f3146102bd57806313af4035146102dc575b600080fd5b61027d6004803603602081101561026d57600080fd5b50356001600160a01b0316610582565b60408051918252519081900360200190f35b61027d61061c565b61027d600480360360208110156102ad57600080fd5b50356001600160a01b0316610622565b6102da600480360360208110156102d357600080fd5b5035610634565b005b6102da600480360360208110156102f257600080fd5b50356001600160a01b0316610691565b61027d6106f5565b6103126106fc565b604080516001600160a01b039092168252519081900360200190f35b6102da6004803603602081101561034457600080fd5b503561070b565b61027d610803565b61027d6004803603602081101561036957600080fd5b50356001600160a01b0316610809565b6102da6004803603602081101561038f57600080fd5b50356001600160a01b031661081b565b6102da600480360360208110156103b557600080fd5b50356108b2565b6102da600480360360208110156103d257600080fd5b503561099e565b6102da610ab0565b61027d610b6e565b6102da610b74565b610312610bd2565b61027d610be1565b6102da610be7565b61027d6004803603602081101561041f57600080fd5b50356001600160a01b0316610cda565b61027d610cec565b61027d6004803603602081101561044d57600080fd5b50356001600160a01b0316610cf2565b61027d6004803603602081101561047357600080fd5b50356001600160a01b0316610d04565b61027d6004803603602081101561049957600080fd5b50356001600160a01b0316610d16565b6102da610d31565b610312610dd3565b61027d610de2565b61027d610de8565b61027d610dee565b6102da610e01565b61027d600480360360208110156104ef57600080fd5b50356001600160a01b0316610f38565b610312610f4a565b6102da6004803603602081101561051d57600080fd5b5035610f59565b61027d611029565b61027d61102f565b61027d6110aa565b6103126110b0565b6102da6110bf565b61027d61111b565b6102da6004803603602081101561056a57600080fd5b50356001600160a01b0316611121565b61031261121a565b6001600160a01b038116600090815260066020908152604080832054600590925282205482916105b29190611229565b6001600160a01b0384166000908152601360209081526040808320546012909252909120549192506106159161060f90670de0b6b3a76400009061060990610602906105fc61102f565b9061128c565b86906112ce565b90611327565b90611229565b9392505050565b60115481565b60136020526000908152604090205481565b61063c611369565b6007546001600160a01b0390811691161461068c576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b601155565b610699611369565b6007546001600160a01b039081169116146106e9576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b6106f281611121565b50565b6002545b90565b6009546001600160a01b031681565b610713611369565b6007546001600160a01b03908116911614610763576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b61076b61136d565b600c54421061078a57600b54610782908290611327565b600d556107cd565b600c5460009061079a904261128c565b905060006107b3600d54836112ce90919063ffffffff16565b600b549091506107c7906106098584611229565b600d5550505b6040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b600b5481565b60146020526000908152604090205481565b610823611369565b6007546001600160a01b03908116911614610873576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b600880546001600160a01b039092166001600160a01b03199283168117909155600a805483168217905560098054909216179055601180546001019055565b600081116108fb576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b60115460021461093c5760405162461bcd60e51b81526004018080602001828103825260348152602001806118376034913960400191505060405180910390fd5b61094533611385565b60095461095c906001600160a01b031633836113c4565b6109658161141b565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b6109a6611369565b6007546001600160a01b039081169116146109f6576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b42600455610a0261136d565b600c544210610a2157600b54610a19908290611327565b600d55610a64565b600c54600090610a31904261128c565b90506000610a4a600d54836112ce90919063ffffffff16565b600b54909150610a5e906106098584611229565b600d5550505b42600e819055600b54610a779190611229565b600c556040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b610ab933611385565b601154600214610afa5760405162461bcd60e51b81526004018080602001828103825260348152602001806118376034913960400191505060405180910390fd5b6000610b0533610582565b905080156106f257600854610b24906001600160a01b031633836113c4565b33600081815260136020908152604080832092909255815184815291517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869281900390910190a250565b60025481565b610b7c611369565b6007546001600160a01b03908116911614610bcc576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b42600c55565b6001546001600160a01b031681565b60105481565b610bef611369565b6007546001600160a01b03908116911614610c3f576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b600054604080516370a0823160e01b81523060048201529051610ccf9233926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610c9057600080fd5b505afa158015610ca4573d6000803e3d6000fd5b505050506040513d6020811015610cba57600080fd5b50516000546001600160a01b031691906113c4565b601180546001019055565b60066020526000908152604090205481565b60035481565b60156020526000908152604090205481565b60056020526000908152604090205481565b6001600160a01b031660009081526005602052604090205490565b610d39611369565b6007546001600160a01b03908116911614610d89576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6000546001600160a01b031681565b60045481565b600d5481565b6000610dfc42600c54611458565b905090565b610e09611369565b6007546001600160a01b03908116911614610e59576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b42600454108015610e6c5750600c544210155b610ea75760405162461bcd60e51b81526004018080602001828103825260378152602001806119236037913960400191505060405180910390fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ef257600080fd5b505afa158015610f06573d6000803e3d6000fd5b505050506040513d6020811015610f1c57600080fd5b50516008549091506106f2906001600160a01b031633836113c4565b60126020526000908152604090205481565b6007546001600160a01b031690565b610f6233611385565b60008111610fa8576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b60115415610fe75760405162461bcd60e51b815260040180806020018281038252604d81526020018061186b604d913960600191505060405180910390fd5b610ff08161146e565b60408051828152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250565b600e5481565b6000600454421015611043575060006106f9565b6002546110535750600f546106f9565b600061106c60035460025461122990919063ffffffff16565b90506110a461109b82610609670de0b6b3a7640000611095600d54611095600e546105fc610dee565b906112ce565b600f5490611229565b91505090565b600f5481565b600a546001600160a01b031681565b6011546002146111005760405162461bcd60e51b81526004018080602001828103825260348152602001806118376034913960400191505060405180910390fd5b611108610ab0565b61111961111433610d16565b6108b2565b565b600c5481565b611129611369565b6007546001600160a01b03908116911614611179576040805162461bcd60e51b815260206004820181905260248201526000805160206118d9833981519152604482015290519081900360640190fd5b6001600160a01b0381166111be5760405162461bcd60e51b81526004018080602001828103825260268152602001806118116026913960400191505060405180910390fd5b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031681565b600082820183811015611283576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061128383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506114c0565b6000826112dd57506000611286565b828202828482816112ea57fe5b04146112835760405162461bcd60e51b81526004018080602001828103825260218152602001806118b86021913960400191505060405180910390fd5b600061128383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611557565b3390565b61137561102f565b600f55611380610dee565b600e55565b61138d61136d565b61139681610582565b6001600160a01b03909116600090815260136020908152604080832093909355600f54601290915291902055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114169084906115bc565b505050565b600254611428908261128c565b60025533600090815260056020526040902054611445908261128c565b3360009081526005602052604090205550565b60008183106114675781611283565b5090919050565b336000908152600560205260409020546114889082611229565b336000908152600560205260409020556002546114a59082611229565b6002556000546106f2906001600160a01b031633308461177a565b6000818484111561154f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115145781810151838201526020016114fc565b50505050905090810190601f1680156115415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836115a65760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115145781810151838201526020016114fc565b5060008385816115b257fe5b0495945050505050565b6115ce826001600160a01b03166117d4565b61161f576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061165d5780518252601f19909201916020918201910161163e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146116bf576040519150601f19603f3d011682016040523d82523d6000602084013e6116c4565b606091505b50915091508161171b576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156117745780806020019051602081101561173757600080fd5b50516117745760405162461bcd60e51b815260040180806020018281038252602a8152602001806118f9602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526117749085906115bc565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061180857508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343616e6e6f7420776974686472617720746f6b656e73206265666f7265206d6967726174696f6e206861732066696e697368656443616e6e6f74207374616b6520746f6b656e7320616e796d6f72652c204d6967726174696f6e206973206265696e672070726f63657373656420616e6420506f6f6c2068617320636c6f736564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c206861732073746172746564a2646970667358221220ebe38daf87966552cf0a3f25d7dce3dc5a1b53e190706e9ab8f8e0c489ebc96364736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c
-----Decoded View---------------
Arg [0] : _napV1 (address): 0x66B3037aa8Dd64c3eF1AEE13a4D1F2509F672D1C
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 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.