| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 107557441 | 932 days ago | 0 ETH | ||||
| 107557441 | 932 days ago | 0 ETH | ||||
| 107557441 | 932 days ago | 0 ETH | ||||
| 107557441 | 932 days ago | 0 ETH | ||||
| 107557441 | 932 days ago | 0 ETH | ||||
| 107543442 | 933 days ago | 0 ETH | ||||
| 107543442 | 933 days ago | 0 ETH | ||||
| 107543442 | 933 days ago | 0 ETH | ||||
| 107543442 | 933 days ago | 0 ETH | ||||
| 107543442 | 933 days ago | 0 ETH | ||||
| 107540887 | 933 days ago | 0 ETH | ||||
| 107540887 | 933 days ago | 0 ETH | ||||
| 107540887 | 933 days ago | 0 ETH | ||||
| 107540887 | 933 days ago | 0 ETH | ||||
| 107540887 | 933 days ago | 0 ETH | ||||
| 107537678 | 933 days ago | 0 ETH | ||||
| 107537678 | 933 days ago | 0 ETH | ||||
| 107537678 | 933 days ago | 0 ETH | ||||
| 107537678 | 933 days ago | 0 ETH | ||||
| 107537678 | 933 days ago | 0 ETH | ||||
| 107537238 | 933 days ago | 0 ETH | ||||
| 107537238 | 933 days ago | 0 ETH | ||||
| 107537140 | 933 days ago | 0 ETH | ||||
| 107537140 | 933 days ago | 0 ETH | ||||
| 107537140 | 933 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
RewardDistributor
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: gpl-3.0
pragma solidity ^0.8.0;
import "./external/openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./external/openzeppelin/contracts/access/Ownable.sol";
import "./external/openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IveToken.sol";
/// @notice This contract is used to distribute rewards to veToken holders
/// @dev This contract Distributes rewards based on user's checkpointed veEXTRA balance.
contract RewardDistributor is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
// @todo Update the below addresses
address public immutable EMERGENCY_RETURN; // Emergency return address
address public immutable veToken; // veToken contract address
address public immutable rewardToken; // Reward Token
uint256 public constant WEEK = 7 days;
uint256 public constant REWARD_CHECKPOINT_DEADLINE = 1 days;
uint256 public startTime; // Start time for reward distribution
uint256 public lastRewardCheckpointTime; // Last time when reward was checkpointed
uint256 public lastRewardBalance = 0; // Last reward balance of the contract
uint256 public maxIterations = 50; // Max number of weeks a user can claim rewards in a transaction
mapping(uint256 => uint256) public rewardsPerWeek; // Reward distributed per week
mapping(address => uint256) public timeCursorOf; // Timestamp of last user checkpoint
mapping(uint256 => uint256) public veTokenSupply; // Store the veToken supply per week
bool public canCheckpointReward; // Checkpoint reward flag
bool public isKilled = false;
event Claimed(
address indexed _recipient,
bool _staked,
uint256 _amount,
uint256 _lastRewardClaimTime,
uint256 _rewardClaimedTill
);
event RewardsCheckpointed(uint256 _amount);
event CheckpointAllowed(bool _allowed);
event Killed();
event RecoveredERC20(address _token, uint256 _amount);
event MaxIterationsUpdated(uint256 _oldNo, uint256 _newNo);
constructor(
address emergencyReturnAddress,
address veTokenAddress,
address rewardTokenAddress,
uint256 _startTime
) {
EMERGENCY_RETURN = emergencyReturnAddress;
veToken = veTokenAddress;
rewardToken = rewardTokenAddress;
uint256 t = (_startTime / WEEK) * WEEK;
// All time initialization is rounded to the week
startTime = t; // Decides the start time for reward distibution
lastRewardCheckpointTime = t; //reward checkpoint timestamp
}
/// @notice Function to add rewards in the contract for distribution
/// @param value The amount of Token to add
/// @dev This function is only for sending in Token.
function addRewards(uint256 value) external nonReentrant {
require(!isKilled);
require(value > 0, "Reward amount must be > 0");
IERC20(rewardToken).safeTransferFrom(
_msgSender(),
address(this),
value
);
if (
canCheckpointReward &&
(block.timestamp >
lastRewardCheckpointTime + REWARD_CHECKPOINT_DEADLINE)
) {
_checkpointReward();
}
}
/// @notice Update the reward checkpoint
/// @dev Calculates the total number of tokens to be distributed in a given week.
/// During setup for the initial distribution this function is only callable
/// by the contract owner. Beyond initial distro, it can be enabled for anyone
/// to call.
function checkpointReward() external nonReentrant {
require(
_msgSender() == owner() ||
(canCheckpointReward &&
block.timestamp >
(lastRewardCheckpointTime + REWARD_CHECKPOINT_DEADLINE)),
"Checkpointing not allowed"
);
_checkpointReward();
}
function claim(bool restake) external returns (uint256) {
return claim(_msgSender(), restake);
}
/// @notice Function to enable / disable checkpointing of tokens
/// @dev To be called by the owner only
function toggleAllowCheckpointReward() external onlyOwner {
canCheckpointReward = !canCheckpointReward;
emit CheckpointAllowed(canCheckpointReward);
}
/*****************************
* Emergency Control
******************************/
/// @notice Function to update the maximum iterations for the claim function.
/// @param newIterationNum The new maximum iterations for the claim function.
/// @dev To be called by the owner only.
function updateMaxIterations(uint256 newIterationNum) external onlyOwner {
require(newIterationNum > 0, "Max iterations must be > 0");
uint256 oldIterationNum = maxIterations;
maxIterations = newIterationNum;
emit MaxIterationsUpdated(oldIterationNum, newIterationNum);
}
/// @notice Function to kill the contract.
/// @dev Killing transfers the entire Token balance to the emergency return address
/// and blocks the ability to claim or addRewards.
/// @dev The contract can't be unkilled.
function killMe() external onlyOwner {
require(!isKilled);
isKilled = true;
IERC20(rewardToken).safeTransfer(
EMERGENCY_RETURN,
IERC20(rewardToken).balanceOf(address(this))
);
emit Killed();
}
/// @notice Recover ERC20 tokens from this contract
/// @dev Tokens are sent to the emergency return address
/// @param _coin token address
function recoverERC20(address _coin) external onlyOwner {
// Only the owner address can ever receive the recovery withdrawal
require(_coin != rewardToken, "Can't recover Token tokens");
uint256 amount = IERC20(_coin).balanceOf(address(this));
IERC20(_coin).safeTransfer(EMERGENCY_RETURN, amount);
emit RecoveredERC20(_coin, amount);
}
/// @notice Function to get the user earnings at a given timestamp.
/// @param addr The address of the user
/// @dev This function gets only for 50 days worth of rewards.
/// @return total rewards earned by user, lastRewardCollectionTime, rewardsTill
/// @dev lastRewardCollectionTime, rewardsTill are in terms of WEEK Cursor.
function computeRewards(
address addr
)
external
view
returns (
uint256, // total rewards earned by user
uint256, // lastRewardCollectionTime
uint256 // rewardsTill
)
{
uint256 _lastRewardCheckpointTime = lastRewardCheckpointTime;
// Compute the rounded last token time
_lastRewardCheckpointTime = (_lastRewardCheckpointTime / WEEK) * WEEK;
(uint256 rewardsTill, uint256 totalRewards) = _computeRewards(
addr,
_lastRewardCheckpointTime
);
uint256 lastRewardCollectionTime = timeCursorOf[addr];
if (lastRewardCollectionTime == 0) {
lastRewardCollectionTime = startTime;
}
return (totalRewards, lastRewardCollectionTime, rewardsTill);
}
/// @notice Claim fees for the address
/// @param addr The address of the user
/// @return The amount of tokens claimed
function claim(
address addr,
bool restake
) public nonReentrant returns (uint256) {
require(!isKilled);
// Get the last token time
uint256 _lastRewardCheckpointTime = lastRewardCheckpointTime;
if (
canCheckpointReward &&
(block.timestamp >
_lastRewardCheckpointTime + REWARD_CHECKPOINT_DEADLINE)
) {
// Checkpoint the rewards till the current week
_checkpointReward();
_lastRewardCheckpointTime = block.timestamp;
}
// Compute the rounded last token time
_lastRewardCheckpointTime = (_lastRewardCheckpointTime / WEEK) * WEEK;
// Calculate the entitled reward amount for the user
(uint256 weekCursor, uint256 amount) = _computeRewards(
addr,
_lastRewardCheckpointTime
);
uint256 lastRewardCollectionTime = timeCursorOf[addr];
if (lastRewardCollectionTime == 0) {
lastRewardCollectionTime = startTime;
}
// update time cursor for the user
timeCursorOf[addr] = weekCursor;
if (amount > 0) {
lastRewardBalance -= amount;
if (restake) {
// If restake == True, add the rewards to user's deposit
IERC20(rewardToken).safeApprove(veToken, amount);
IveToken(veToken).depositFor(addr, uint128(amount));
} else {
IERC20(rewardToken).safeTransfer(addr, amount);
}
}
emit Claimed(
addr,
restake,
amount,
lastRewardCollectionTime,
weekCursor
);
return amount;
}
/// @notice Checkpoint reward
/// @dev Checkpoint rewards for at most 20 weeks at a time
function _checkpointReward() internal {
// Calculate the amount to distribute
uint256 tokenBalance = IERC20(rewardToken).balanceOf(address(this));
uint256 toDistribute = tokenBalance - lastRewardBalance;
lastRewardBalance = tokenBalance;
uint256 t = lastRewardCheckpointTime;
// Store the period of the last checkpoint
uint256 sinceLast = block.timestamp - t;
lastRewardCheckpointTime = block.timestamp;
uint256 thisWeek = (t / WEEK) * WEEK;
uint256 nextWeek = 0;
for (uint256 i = 0; i < 20; i++) {
nextWeek = thisWeek + WEEK;
veTokenSupply[thisWeek] = IveToken(veToken).totalSupply(thisWeek);
// Calculate share for the ongoing week
if (block.timestamp < nextWeek) {
if (sinceLast == 0) {
rewardsPerWeek[thisWeek] += toDistribute;
} else {
// In case of a gap in time of the distribution
// Reward is divided across the remainder of the week
rewardsPerWeek[thisWeek] +=
(toDistribute * (block.timestamp - t)) /
sinceLast;
}
break;
// Calculate share for all the past weeks
} else {
rewardsPerWeek[thisWeek] +=
(toDistribute * (nextWeek - t)) /
sinceLast;
}
t = nextWeek;
thisWeek = nextWeek;
}
emit RewardsCheckpointed(toDistribute);
}
/// @notice Get the nearest user epoch for a given timestamp
/// @param addr The address of the user
/// @param ts The timestamp
/// @param maxEpoch The maximum possible epoch for the user.
function _findUserTimestampEpoch(
address addr,
uint256 ts,
uint256 maxEpoch
) internal view returns (uint256) {
uint256 min = 0;
uint256 max = maxEpoch;
// Binary search
for (uint256 i = 0; i < 128; i++) {
if (min >= max) {
break;
}
uint256 mid = (min + max + 1) / 2;
if (IveToken(veToken).getUserPointHistoryTS(addr, mid) <= ts) {
min = mid;
} else {
max = mid - 1;
}
}
return min;
}
/// @notice Function to initialize user's reward weekCursor
/// @param addr The address of the user
/// @return weekCursor The weekCursor of the user
function _initializeUser(
address addr
) internal view returns (uint256 weekCursor) {
uint256 userEpoch = 0;
// Get the user's max epoch
uint256 maxUserEpoch = IveToken(veToken).userPointEpoch(addr);
require(maxUserEpoch > 0, "User has no deposit");
// Find the Timestamp curresponding to reward distribution start time
userEpoch = _findUserTimestampEpoch(addr, startTime, maxUserEpoch);
// In case the User deposits after the startTime
// binary search returns userEpoch as 0
if (userEpoch == 0) {
userEpoch = 1;
}
// Get the user deposit timestamp
uint256 userPointTs = IveToken(veToken).getUserPointHistoryTS(
addr,
userEpoch
);
// Compute the initial week cursor for the user for claiming the reward.
weekCursor = ((userPointTs + WEEK - 1) / WEEK) * WEEK;
// If the week cursor is less than the reward start time
// Update it to the reward start time.
if (weekCursor < startTime) {
weekCursor = startTime;
}
return weekCursor;
}
/// @notice Function to get the total rewards for the user.
/// @param addr The address of the user
/// @param _lastRewardCheckpointTime The last reward checkpoint
/// @return WeekCursor of User, TotalRewards
function _computeRewards(
address addr,
uint256 _lastRewardCheckpointTime
)
internal
view
returns (
uint256, // WeekCursor
uint256 // TotalRewards
)
{
uint256 toDistrbute = 0;
// Get the user's reward time cursor.
uint256 weekCursor = timeCursorOf[addr];
if (weekCursor == 0) {
weekCursor = _initializeUser(addr);
}
// Iterate over the weeks
for (uint256 i = 0; i < maxIterations; i++) {
// Users can't claim the reward for the ongoing week.
if (weekCursor >= _lastRewardCheckpointTime) {
break;
}
// Get the week's balance for the user
uint256 balance = IveToken(veToken).balanceOf(addr, weekCursor);
if (balance > 0 && veTokenSupply[weekCursor] > 0) {
// Compute the user's share for the week.
toDistrbute +=
(balance * rewardsPerWeek[weekCursor]) /
veTokenSupply[weekCursor];
}
weekCursor += WEEK;
}
return (weekCursor, toDistrbute);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// 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
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(
address owner,
address spender
) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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
)
);
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(
nonceAfter == nonceBefore + 1,
"SafeERC20: permit did not succeed"
);
}
/**
* @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.8.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
functionCallWithValue(
target,
data,
0,
"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"
);
(bool success, bytes memory returndata) = target.call{value: value}(
data
);
return
verifyCallResultFromTarget(
target,
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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return
verifyCallResultFromTarget(
target,
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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return
verifyCallResultFromTarget(
target,
success,
returndata,
errorMessage
);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(
bytes memory returndata,
string memory errorMessage
) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: gpl-3.0
pragma solidity ^0.8.0;
interface IveToken {
function checkpoint() external;
function depositFor(address addr, uint128 value) external;
function createLock(uint128 value, uint256 unlockTime) external;
function increaseAmount(uint128 value) external;
function increaseUnlockTime(uint256 unlockTime) external;
function withdraw() external;
function userPointEpoch(address addr) external view returns (uint256);
function lockedEnd(address addr) external view returns (uint256);
function getLastUserSlope(address addr) external view returns (int128);
function getUserPointHistoryTS(
address addr,
uint256 idx
) external view returns (uint256);
function balanceOf(
address addr,
uint256 ts
) external view returns (uint256);
function balanceOf(address addr) external view returns (uint256);
function balanceOfAt(
address,
uint256 blockNumber
) external view returns (uint256);
function totalSupply(uint256 ts) external view returns (uint256);
function totalSupply() external view returns (uint256);
function totalSupplyAt(uint256 blockNumber) external view returns (uint256);
}{
"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":"emergencyReturnAddress","type":"address"},{"internalType":"address","name":"veTokenAddress","type":"address"},{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_allowed","type":"bool"}],"name":"CheckpointAllowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"bool","name":"_staked","type":"bool"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_lastRewardClaimTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardClaimedTill","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[],"name":"Killed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_oldNo","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newNo","type":"uint256"}],"name":"MaxIterationsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RecoveredERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RewardsCheckpointed","type":"event"},{"inputs":[],"name":"EMERGENCY_RETURN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_CHECKPOINT_DEADLINE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WEEK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"addRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canCheckpointReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkpointReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"restake","type":"bool"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"restake","type":"bool"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"computeRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isKilled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"killMe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardCheckpointTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIterations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_coin","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardsPerWeek","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"timeCursorOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleAllowCheckpointReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newIterationNum","type":"uint256"}],"name":"updateMaxIterations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"veToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"veTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60e0604052600060045560326005556009805461ff00191690553480156200002657600080fd5b5060405162001cb938038062001cb9833981016040819052620000499162000110565b6200005433620000a3565b600180556001600160a01b0380851660805283811660a052821660c052600062093a8062000083818462000162565b6200008f919062000185565b600281905560035550620001b19350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200010b57600080fd5b919050565b600080600080608085870312156200012757600080fd5b6200013285620000f3565b93506200014260208601620000f3565b92506200015260408601620000f3565b6060959095015193969295505050565b6000826200018057634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417620001ab57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c051611a6862000251600039600081816103a20152818161053401528181610620015281816106b4015281816108f90152818161096e01528181610a320152610d5d0152600081816101e701528181610556015281816105b201528181610e4e0152818161104a015281816113250152818161141f015261160e015260008181610226015281816107b401526108cf0152611a686000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80639e8c708e116100de578063d155438311610097578063f2fde38b11610071578063f2fde38b14610380578063f4359ce514610393578063f7c618c11461039d578063fa4caa74146103c457600080fd5b8063d155438314610345578063da9c5cb514610365578063eb2d33431461036d57600080fd5b80639e8c708e146102bf578063a67cfcf1146102d2578063b48ea725146102dc578063b603cd801461030a578063beceed3914610312578063c7f1ec501461032557600080fd5b806350869e8d1161014b57806378e979251161012557806378e97925146102805780638da5cb5b146102895780638fe8a1011461029a57806392fd2daf146102ac57600080fd5b806350869e8d1461025157806366bb74bf1461025b578063715018a61461027857600080fd5b8063172427e5146101935780632d81a78e146101c6578063387f504a146101d95780633b92eb23146101e257806341a4651f146102215780634671338914610248575b600080fd5b6101b36101a1366004611842565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b6101b36101d4366004611869565b6103cd565b6101b360055481565b6102097f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101bd565b6102097f000000000000000000000000000000000000000000000000000000000000000081565b6101b360035481565b6102596103df565b005b6009546102689060ff1681565b60405190151581526020016101bd565b610259610434565b6101b360025481565b6000546001600160a01b0316610209565b60095461026890610100900460ff1681565b6101b36102ba3660046118a9565b610448565b6102596102cd3660046118e0565b6106aa565b6101b36201518081565b6102ef6102ea3660046118e0565b610820565b604080519384526020840192909252908201526060016101bd565b61025961088a565b610259610320366004611842565b6109c0565b6101b36103333660046118e0565b60076020526000908152604090205481565b6101b3610353366004611842565b60086020526000908152604090205481565b610259610a9c565b61025961037b366004611842565b610b36565b61025961038e3660046118e0565b610bcc565b6101b362093a8081565b6102097f000000000000000000000000000000000000000000000000000000000000000081565b6101b360045481565b60006103d93383610448565b92915050565b6103e7610c42565b6009805460ff8082161560ff1990921682179092556040519116151581527f9c7a57981f4afa45b46f857e5731c0a7702ce03d88a918144ad4446d064bca8a9060200160405180910390a1565b61043c610c42565b6104466000610c9c565b565b6000610452610cec565b600954610100900460ff161561046757600080fd5b60035460095460ff16801561048757506104846201518082611911565b42115b1561049757610494610d45565b50425b62093a806104a58183611924565b6104af9190611946565b90506000806104be8684610fdd565b6001600160a01b0388166000908152600760205260408120549294509092508190036104e957506002545b6001600160a01b0387166000908152600760205260409020839055811561064757816004600082825461051c919061195d565b909155505085156106135761057b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000084611144565b604051639a3f14f760e01b81526001600160a01b0388811660048301526fffffffffffffffffffffffffffffffff841660248301527f00000000000000000000000000000000000000000000000000000000000000001690639a3f14f790604401600060405180830381600087803b1580156105f657600080fd5b505af115801561060a573d6000803e3d6000fd5b50505050610647565b6106476001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168884611291565b60408051871515815260208101849052908101829052606081018490526001600160a01b038816907fd6cd0af7b93015e7049c48eb4510c3ad263c3336a6bf332886e9e7f152d49a2d9060800160405180910390a250925050506103d960018055565b6106b2610c42565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316036107385760405162461bcd60e51b815260206004820152601a60248201527f43616e2774207265636f76657220546f6b656e20746f6b656e7300000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190611970565b90506107d96001600160a01b0383167f000000000000000000000000000000000000000000000000000000000000000083611291565b604080516001600160a01b0384168152602081018390527f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b191015b60405180910390a15050565b6003546000908190819062093a806108388183611924565b6108429190611946565b90506000806108518784610fdd565b6001600160a01b03891660009081526007602052604081205492945090925081900361087c57506002545b909790965090945092505050565b610892610c42565b600954610100900460ff16156108a757600080fd5b6009805461ff0019166101001790556040516370a0823160e01b8152306004820152610995907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610940573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109649190611970565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611291565b6040517f0f8eeedbc400fd6686703559f58d1e6143fdaed533f19a86c93d67a2fe4fb33190600090a1565b6109c8610cec565b600954610100900460ff16156109dd57600080fd5b60008111610a2d5760405162461bcd60e51b815260206004820152601960248201527f52657761726420616d6f756e74206d757374206265203e203000000000000000604482015260640161072f565b610a627f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163330846112c1565b60095460ff168015610a83575062015180600354610a809190611911565b42115b15610a9057610a90610d45565b610a9960018055565b50565b610aa4610cec565b6000546001600160a01b0316331480610ad9575060095460ff168015610ad9575062015180600354610ad69190611911565b42115b610b255760405162461bcd60e51b815260206004820152601960248201527f436865636b706f696e74696e67206e6f7420616c6c6f77656400000000000000604482015260640161072f565b610b2d610d45565b61044660018055565b610b3e610c42565b60008111610b8e5760405162461bcd60e51b815260206004820152601a60248201527f4d617820697465726174696f6e73206d757374206265203e2030000000000000604482015260640161072f565b600580549082905560408051828152602081018490527f3ed485b111cf66a1700cedca9ce1a71fce7bd4aa06bb996cca1de90cc77e49db9101610814565b610bd4610c42565b6001600160a01b038116610c395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072f565b610a9981610c9c565b6000546001600160a01b031633146104465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161072f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610d3e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161072f565b6002600155565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd09190611970565b9050600060045482610de2919061195d565b60048390556003549091506000610df9824261195d565b426003559050600062093a80610e0f8185611924565b610e199190611946565b90506000805b6014811015610fa157610e3562093a8084611911565b60405163bd85b03960e01b8152600481018590529092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063bd85b03990602401602060405180830381865afa158015610e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec19190611970565b60008481526008602052604090205542821115610f465783600003610f095760008381526006602052604081208054889290610efe908490611911565b90915550610fa19050565b83610f14864261195d565b610f1e9088611946565b610f289190611924565b60008481526006602052604081208054909190610efe908490611911565b83610f51868461195d565b610f5b9088611946565b610f659190611924565b60008481526006602052604081208054909190610f83908490611911565b90915550508194508192508080610f9990611989565b915050610e1f565b506040518581527fa100e4a2ee2ede145017e6458fc0646fdd8570cbdd2091cdacfb24a9dee172439060200160405180910390a1505050505050565b6001600160a01b0382166000908152600760205260408120548190819080820361100d5761100a866112ff565b90505b60005b600554811015611139578582101561113957604051627eeac760e11b81526001600160a01b038881166004830152602482018490526000917f00000000000000000000000000000000000000000000000000000000000000009091169062fdd58e90604401602060405180830381865afa158015611092573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b69190611970565b90506000811180156110d5575060008381526008602052604090205415155b15611116576000838152600860209081526040808320546006909252909120546110ff9083611946565b6111099190611924565b6111139085611911565b93505b61112362093a8084611911565b925050808061113190611989565b915050611010565b509590945092505050565b8015806111be5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc9190611970565b155b6112295760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161072f565b6040516001600160a01b03831660248201526044810182905261128c90849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526114d7565b505050565b6040516001600160a01b03831660248201526044810182905261128c90849063a9059cbb60e01b90606401611255565b6040516001600160a01b03808516602483015283166044820152606481018290526112f99085906323b872dd60e01b90608401611255565b50505050565b6040516381fc83bb60e01b81526001600160a01b038281166004830152600091829182917f0000000000000000000000000000000000000000000000000000000000000000909116906381fc83bb90602401602060405180830381865afa15801561136e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113929190611970565b9050600081116113da5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a185cc81b9bc819195c1bdcda5d606a1b604482015260640161072f565b6113e784600254836115a9565b9150816000036113f657600191505b604051637162da6960e11b81526001600160a01b038581166004830152602482018490526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e2c5b4d290604401602060405180830381865afa158015611468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148c9190611970565b905062093a8080600161149f8285611911565b6114a9919061195d565b6114b39190611924565b6114bd9190611946565b93506002548410156114cf5760025493505b505050919050565b600061152c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116b29092919063ffffffff16565b80519091501561128c578080602001905181019061154a91906119a2565b61128c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161072f565b60008082815b60808110156116a757818310156116a757600060026115ce8486611911565b6115d9906001611911565b6115e39190611924565b604051637162da6960e11b81526001600160a01b038a811660048301526024820183905291925088917f0000000000000000000000000000000000000000000000000000000000000000169063e2c5b4d290604401602060405180830381865afa158015611655573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116799190611970565b1161168657809350611694565b61169160018261195d565b92505b508061169f81611989565b9150506115af565b509095945050505050565b60606116c184846000856116c9565b949350505050565b60608247101561172a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161072f565b600080866001600160a01b0316858760405161174691906119e3565b60006040518083038185875af1925050503d8060008114611783576040519150601f19603f3d011682016040523d82523d6000602084013e611788565b606091505b5091509150611799878383876117a4565b979650505050505050565b6060831561181357825160000361180c576001600160a01b0385163b61180c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161072f565b50816116c1565b6116c183838151156118285781518083602001fd5b8060405162461bcd60e51b815260040161072f91906119ff565b60006020828403121561185457600080fd5b5035919050565b8015158114610a9957600080fd5b60006020828403121561187b57600080fd5b81356118868161185b565b9392505050565b80356001600160a01b03811681146118a457600080fd5b919050565b600080604083850312156118bc57600080fd5b6118c58361188d565b915060208301356118d58161185b565b809150509250929050565b6000602082840312156118f257600080fd5b6118868261188d565b634e487b7160e01b600052601160045260246000fd5b808201808211156103d9576103d96118fb565b60008261194157634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176103d9576103d96118fb565b818103818111156103d9576103d96118fb565b60006020828403121561198257600080fd5b5051919050565b60006001820161199b5761199b6118fb565b5060010190565b6000602082840312156119b457600080fd5b81516118868161185b565b60005b838110156119da5781810151838201526020016119c2565b50506000910152565b600082516119f58184602087016119bf565b9190910192915050565b6020815260008251806020840152611a1e8160408501602087016119bf565b601f01601f1916919091016040019291505056fea2646970667358221220e0a2b299665a7e3f25c28601acf06561bd0fcf2880fc9fff6403574672866af264736f6c634300081200330000000000000000000000009088b976e9542d0a27f4f9ddc7a716c7714806ea000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e914660000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f800000000000000000000000000000000000000000000000000000000646ea500
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80639e8c708e116100de578063d155438311610097578063f2fde38b11610071578063f2fde38b14610380578063f4359ce514610393578063f7c618c11461039d578063fa4caa74146103c457600080fd5b8063d155438314610345578063da9c5cb514610365578063eb2d33431461036d57600080fd5b80639e8c708e146102bf578063a67cfcf1146102d2578063b48ea725146102dc578063b603cd801461030a578063beceed3914610312578063c7f1ec501461032557600080fd5b806350869e8d1161014b57806378e979251161012557806378e97925146102805780638da5cb5b146102895780638fe8a1011461029a57806392fd2daf146102ac57600080fd5b806350869e8d1461025157806366bb74bf1461025b578063715018a61461027857600080fd5b8063172427e5146101935780632d81a78e146101c6578063387f504a146101d95780633b92eb23146101e257806341a4651f146102215780634671338914610248575b600080fd5b6101b36101a1366004611842565b60066020526000908152604090205481565b6040519081526020015b60405180910390f35b6101b36101d4366004611869565b6103cd565b6101b360055481565b6102097f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e9146681565b6040516001600160a01b0390911681526020016101bd565b6102097f0000000000000000000000009088b976e9542d0a27f4f9ddc7a716c7714806ea81565b6101b360035481565b6102596103df565b005b6009546102689060ff1681565b60405190151581526020016101bd565b610259610434565b6101b360025481565b6000546001600160a01b0316610209565b60095461026890610100900460ff1681565b6101b36102ba3660046118a9565b610448565b6102596102cd3660046118e0565b6106aa565b6101b36201518081565b6102ef6102ea3660046118e0565b610820565b604080519384526020840192909252908201526060016101bd565b61025961088a565b610259610320366004611842565b6109c0565b6101b36103333660046118e0565b60076020526000908152604090205481565b6101b3610353366004611842565b60086020526000908152604090205481565b610259610a9c565b61025961037b366004611842565b610b36565b61025961038e3660046118e0565b610bcc565b6101b362093a8081565b6102097f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f881565b6101b360045481565b60006103d93383610448565b92915050565b6103e7610c42565b6009805460ff8082161560ff1990921682179092556040519116151581527f9c7a57981f4afa45b46f857e5731c0a7702ce03d88a918144ad4446d064bca8a9060200160405180910390a1565b61043c610c42565b6104466000610c9c565b565b6000610452610cec565b600954610100900460ff161561046757600080fd5b60035460095460ff16801561048757506104846201518082611911565b42115b1561049757610494610d45565b50425b62093a806104a58183611924565b6104af9190611946565b90506000806104be8684610fdd565b6001600160a01b0388166000908152600760205260408120549294509092508190036104e957506002545b6001600160a01b0387166000908152600760205260409020839055811561064757816004600082825461051c919061195d565b909155505085156106135761057b6001600160a01b037f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f8167f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e9146684611144565b604051639a3f14f760e01b81526001600160a01b0388811660048301526fffffffffffffffffffffffffffffffff841660248301527f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e914661690639a3f14f790604401600060405180830381600087803b1580156105f657600080fd5b505af115801561060a573d6000803e3d6000fd5b50505050610647565b6106476001600160a01b037f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f8168884611291565b60408051871515815260208101849052908101829052606081018490526001600160a01b038816907fd6cd0af7b93015e7049c48eb4510c3ad263c3336a6bf332886e9e7f152d49a2d9060800160405180910390a250925050506103d960018055565b6106b2610c42565b7f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f86001600160a01b0316816001600160a01b0316036107385760405162461bcd60e51b815260206004820152601a60248201527f43616e2774207265636f76657220546f6b656e20746f6b656e7300000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561077f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a39190611970565b90506107d96001600160a01b0383167f0000000000000000000000009088b976e9542d0a27f4f9ddc7a716c7714806ea83611291565b604080516001600160a01b0384168152602081018390527f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b191015b60405180910390a15050565b6003546000908190819062093a806108388183611924565b6108429190611946565b90506000806108518784610fdd565b6001600160a01b03891660009081526007602052604081205492945090925081900361087c57506002545b909790965090945092505050565b610892610c42565b600954610100900460ff16156108a757600080fd5b6009805461ff0019166101001790556040516370a0823160e01b8152306004820152610995907f0000000000000000000000009088b976e9542d0a27f4f9ddc7a716c7714806ea906001600160a01b037f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f816906370a0823190602401602060405180830381865afa158015610940573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109649190611970565b6001600160a01b037f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f8169190611291565b6040517f0f8eeedbc400fd6686703559f58d1e6143fdaed533f19a86c93d67a2fe4fb33190600090a1565b6109c8610cec565b600954610100900460ff16156109dd57600080fd5b60008111610a2d5760405162461bcd60e51b815260206004820152601960248201527f52657761726420616d6f756e74206d757374206265203e203000000000000000604482015260640161072f565b610a627f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f86001600160a01b03163330846112c1565b60095460ff168015610a83575062015180600354610a809190611911565b42115b15610a9057610a90610d45565b610a9960018055565b50565b610aa4610cec565b6000546001600160a01b0316331480610ad9575060095460ff168015610ad9575062015180600354610ad69190611911565b42115b610b255760405162461bcd60e51b815260206004820152601960248201527f436865636b706f696e74696e67206e6f7420616c6c6f77656400000000000000604482015260640161072f565b610b2d610d45565b61044660018055565b610b3e610c42565b60008111610b8e5760405162461bcd60e51b815260206004820152601a60248201527f4d617820697465726174696f6e73206d757374206265203e2030000000000000604482015260640161072f565b600580549082905560408051828152602081018490527f3ed485b111cf66a1700cedca9ce1a71fce7bd4aa06bb996cca1de90cc77e49db9101610814565b610bd4610c42565b6001600160a01b038116610c395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072f565b610a9981610c9c565b6000546001600160a01b031633146104465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161072f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610d3e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161072f565b6002600155565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f86001600160a01b0316906370a0823190602401602060405180830381865afa158015610dac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd09190611970565b9050600060045482610de2919061195d565b60048390556003549091506000610df9824261195d565b426003559050600062093a80610e0f8185611924565b610e199190611946565b90506000805b6014811015610fa157610e3562093a8084611911565b60405163bd85b03960e01b8152600481018590529092507f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e914666001600160a01b03169063bd85b03990602401602060405180830381865afa158015610e9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec19190611970565b60008481526008602052604090205542821115610f465783600003610f095760008381526006602052604081208054889290610efe908490611911565b90915550610fa19050565b83610f14864261195d565b610f1e9088611946565b610f289190611924565b60008481526006602052604081208054909190610efe908490611911565b83610f51868461195d565b610f5b9088611946565b610f659190611924565b60008481526006602052604081208054909190610f83908490611911565b90915550508194508192508080610f9990611989565b915050610e1f565b506040518581527fa100e4a2ee2ede145017e6458fc0646fdd8570cbdd2091cdacfb24a9dee172439060200160405180910390a1505050505050565b6001600160a01b0382166000908152600760205260408120548190819080820361100d5761100a866112ff565b90505b60005b600554811015611139578582101561113957604051627eeac760e11b81526001600160a01b038881166004830152602482018490526000917f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e914669091169062fdd58e90604401602060405180830381865afa158015611092573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b69190611970565b90506000811180156110d5575060008381526008602052604090205415155b15611116576000838152600860209081526040808320546006909252909120546110ff9083611946565b6111099190611924565b6111139085611911565b93505b61112362093a8084611911565b925050808061113190611989565b915050611010565b509590945092505050565b8015806111be5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111bc9190611970565b155b6112295760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161072f565b6040516001600160a01b03831660248201526044810182905261128c90849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526114d7565b505050565b6040516001600160a01b03831660248201526044810182905261128c90849063a9059cbb60e01b90606401611255565b6040516001600160a01b03808516602483015283166044820152606481018290526112f99085906323b872dd60e01b90608401611255565b50505050565b6040516381fc83bb60e01b81526001600160a01b038281166004830152600091829182917f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e91466909116906381fc83bb90602401602060405180830381865afa15801561136e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113929190611970565b9050600081116113da5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a185cc81b9bc819195c1bdcda5d606a1b604482015260640161072f565b6113e784600254836115a9565b9150816000036113f657600191505b604051637162da6960e11b81526001600160a01b038581166004830152602482018490526000917f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e914669091169063e2c5b4d290604401602060405180830381865afa158015611468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148c9190611970565b905062093a8080600161149f8285611911565b6114a9919061195d565b6114b39190611924565b6114bd9190611946565b93506002548410156114cf5760025493505b505050919050565b600061152c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116b29092919063ffffffff16565b80519091501561128c578080602001905181019061154a91906119a2565b61128c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161072f565b60008082815b60808110156116a757818310156116a757600060026115ce8486611911565b6115d9906001611911565b6115e39190611924565b604051637162da6960e11b81526001600160a01b038a811660048301526024820183905291925088917f000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e91466169063e2c5b4d290604401602060405180830381865afa158015611655573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116799190611970565b1161168657809350611694565b61169160018261195d565b92505b508061169f81611989565b9150506115af565b509095945050505050565b60606116c184846000856116c9565b949350505050565b60608247101561172a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161072f565b600080866001600160a01b0316858760405161174691906119e3565b60006040518083038185875af1925050503d8060008114611783576040519150601f19603f3d011682016040523d82523d6000602084013e611788565b606091505b5091509150611799878383876117a4565b979650505050505050565b6060831561181357825160000361180c576001600160a01b0385163b61180c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161072f565b50816116c1565b6116c183838151156118285781518083602001fd5b8060405162461bcd60e51b815260040161072f91906119ff565b60006020828403121561185457600080fd5b5035919050565b8015158114610a9957600080fd5b60006020828403121561187b57600080fd5b81356118868161185b565b9392505050565b80356001600160a01b03811681146118a457600080fd5b919050565b600080604083850312156118bc57600080fd5b6118c58361188d565b915060208301356118d58161185b565b809150509250929050565b6000602082840312156118f257600080fd5b6118868261188d565b634e487b7160e01b600052601160045260246000fd5b808201808211156103d9576103d96118fb565b60008261194157634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176103d9576103d96118fb565b818103818111156103d9576103d96118fb565b60006020828403121561198257600080fd5b5051919050565b60006001820161199b5761199b6118fb565b5060010190565b6000602082840312156119b457600080fd5b81516118868161185b565b60005b838110156119da5781810151838201526020016119c2565b50506000910152565b600082516119f58184602087016119bf565b9190910192915050565b6020815260008251806020840152611a1e8160408501602087016119bf565b601f01601f1916919091016040019291505056fea2646970667358221220e0a2b299665a7e3f25c28601acf06561bd0fcf2880fc9fff6403574672866af264736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009088b976e9542d0a27f4f9ddc7a716c7714806ea000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e914660000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f800000000000000000000000000000000000000000000000000000000646ea500
-----Decoded View---------------
Arg [0] : emergencyReturnAddress (address): 0x9088b976e9542d0A27f4F9ddc7A716c7714806ea
Arg [1] : veTokenAddress (address): 0xe0BeC4F45aEF64CeC9dCB9010d4beFfB13e91466
Arg [2] : rewardTokenAddress (address): 0x2dAD3a13ef0C6366220f989157009e501e7938F8
Arg [3] : _startTime (uint256): 1684972800
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000009088b976e9542d0a27f4f9ddc7a716c7714806ea
Arg [1] : 000000000000000000000000e0bec4f45aef64cec9dcb9010d4beffb13e91466
Arg [2] : 0000000000000000000000002dad3a13ef0c6366220f989157009e501e7938f8
Arg [3] : 00000000000000000000000000000000000000000000000000000000646ea500
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$96.93
Net Worth in ETH
0.049029
Token Allocations
EXTRA
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| OP | 100.00% | $0.007894 | 12,279.5602 | $96.93 |
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.