Source Code
Latest 25 from a total of 396 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 24595953 | 10 hrs ago | IN | 0 ETH | 0.0000086 | ||||
| Stake | 24590070 | 30 hrs ago | IN | 0 ETH | 0.00003429 | ||||
| Withdraw | 24584598 | 2 days ago | IN | 0 ETH | 0.00024719 | ||||
| Withdraw | 24569074 | 4 days ago | IN | 0 ETH | 0.00000705 | ||||
| Withdraw | 24569070 | 4 days ago | IN | 0 ETH | 0.00000914 | ||||
| Withdraw | 24569065 | 4 days ago | IN | 0 ETH | 0.00001217 | ||||
| Withdraw | 24560185 | 5 days ago | IN | 0 ETH | 0.00003273 | ||||
| Withdraw | 24560184 | 5 days ago | IN | 0 ETH | 0.00004604 | ||||
| Withdraw | 24560184 | 5 days ago | IN | 0 ETH | 0.00005847 | ||||
| Withdraw | 24560182 | 5 days ago | IN | 0 ETH | 0.00000586 | ||||
| Withdraw | 24547956 | 7 days ago | IN | 0 ETH | 0.00001991 | ||||
| Stake | 24525128 | 10 days ago | IN | 0 ETH | 0.00001115 | ||||
| Stake | 24519228 | 11 days ago | IN | 0 ETH | 0.00002069 | ||||
| Withdraw | 24519090 | 11 days ago | IN | 0 ETH | 0.0000109 | ||||
| Stake | 24517485 | 11 days ago | IN | 0 ETH | 0.00046637 | ||||
| Withdraw | 24515355 | 11 days ago | IN | 0 ETH | 0.00000853 | ||||
| Notify Mint Amou... | 24499252 | 13 days ago | IN | 0 ETH | 0.00017725 | ||||
| Set Next Cycle R... | 24499236 | 13 days ago | IN | 0 ETH | 0.00007008 | ||||
| Withdraw | 24497406 | 14 days ago | IN | 0 ETH | 0.00001213 | ||||
| Withdraw | 24491792 | 14 days ago | IN | 0 ETH | 0.00010246 | ||||
| Withdraw | 24487339 | 15 days ago | IN | 0 ETH | 0.00029373 | ||||
| Withdraw | 24487337 | 15 days ago | IN | 0 ETH | 0.00042417 | ||||
| Withdraw | 24483669 | 16 days ago | IN | 0 ETH | 0.00002782 | ||||
| Withdraw | 24477346 | 16 days ago | IN | 0 ETH | 0.00040827 | ||||
| Withdraw | 24475906 | 17 days ago | IN | 0 ETH | 0.00026198 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
UXLINKTokenRewardPoolMultiple
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma abicoder v2;
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IDeltaRewardPoolMultiple} from "../libs/IDeltaRewardPoolMultiple.sol";
import {Manager} from "../libs/Manager.sol";
contract UXLINKTokenRewardPoolMultiple is IDeltaRewardPoolMultiple, ReentrancyGuard, Manager {
using Address for address;
using SafeERC20 for IERC20;
bool private initialized;
bool public withdrawOpened;
uint256 public constant monthTime = 30 days;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 stakeTime; // month; limit = 36;
uint256 stakeDuration;
uint256 power; // How much weight the user has provided.
uint256 reward; // Reward
uint256 allReward; // Reward
uint256 rewardPerTokenPaid;
}
address public devAddress;
uint256 public constant MIN_DEPOSIT_AMOUNT = 0.00001 ether;
uint256 public constant MIN_WITHDRAW_AMOUNT = 0.00001 ether;
uint256 public constant basRate = 100000;
uint256 public punishRate = 10000; // basRate = 100000; limit = 36;
uint256[] public stakeTimeRatio; // basRate = 100000; limit = 36;
// tokens of the pool!
address public rewardToken;
address public stakedToken;
// all reward for pool
uint256 public totalReward;
uint256 public curCycleStartTime;
uint256 public startStakeTime;
uint256 public poolSurplusReward;
uint256 public curCycleReward;
uint256 public nextCycleReward;
uint256 public nextDuration;
uint256 public cycleTimes;
uint256 public periodFinish;
uint256 public totalPower;
uint256 public totalAmount;
uint256 public rewardPerTokenStored;
uint256 public lastUpdateTime;
uint256 public rewardRate;
// Info of each user that stakes tokens.
mapping(address => UserInfo[]) public userInfo;
event Stake(
address indexed user,
uint256 positionID,
uint256 amount,
uint256 power,
uint256 duration
);
event Withdraw(
address indexed user,
uint256 positionID,
uint256 punish,
uint256 amount,
uint256 power
);
event Harvest(address indexed user, uint256 amount, uint256 positionID);
event SetStakeTimeRatio(uint256[] _stakeTimeRatio);
event SetPunishRate(uint256 punishRate);
event AddStakeTimeRatio(uint256[] _stakeTimeRatio);
event AddNextCycleReward(uint256 rewardAmount);
event SetRewardConfig(uint256 nextCycleReward, uint256 nextDuration);
event StartNewEpoch(uint256 reward, uint256 duration);
constructor(){
setManager(msg.sender,true);
}
function initialize(
address _devAddress,
address _rewardToken,
address _stakedToken,
uint256 _curCycleStartTime,
uint256 _duration,
uint256 _nextCycleReward,
uint256[] memory _stakeTimeRatio
) external onlyManager {
require(!initialized, "initialize: Already initialized!");
require( _stakeTimeRatio.length<=36, "stakeTimeRatio length is invalid!");
withdrawOpened = true;
devAddress = _devAddress;
rewardToken = _rewardToken;
stakedToken = _stakedToken;
curCycleStartTime = _curCycleStartTime - _duration; // start time - duration
periodFinish = _curCycleStartTime;
nextDuration = _duration;
startStakeTime = periodFinish;
nextCycleReward = _nextCycleReward;
stakeTimeRatio = _stakeTimeRatio;
punishRate = 10000;
initialized = true;
}
//for reward
function notifyMintAmount(uint256 addNextReward) external onlyManager {
uint256 balanceBefore = IERC20(rewardToken).balanceOf(address(this));
IERC20(rewardToken).safeTransferFrom(
msg.sender,
address(this),
addNextReward
);
uint256 balanceEnd = IERC20(rewardToken).balanceOf(address(this));
poolSurplusReward = poolSurplusReward + (balanceEnd - balanceBefore);
emit AddNextCycleReward(poolSurplusReward);
}
function setNextCycleReward(
uint256 _nextCycleReward,
uint256 _nextDuration
) external onlyManager {
nextCycleReward = _nextCycleReward;
nextDuration = _nextDuration;
emit SetRewardConfig(nextCycleReward, nextDuration);
}
function setStakeTimeRatio(
uint256[] memory _stakeTimeRatio
) external onlyManager {
require( _stakeTimeRatio.length<=36, "stakeTimeRatio length is invalid!");
stakeTimeRatio = _stakeTimeRatio;
emit SetStakeTimeRatio(_stakeTimeRatio);
}
function setPunishRate(uint256 _punishRate) external onlyManager {
punishRate = _punishRate;
emit SetPunishRate(_punishRate);
}
function setWithdrawOpened(bool _opened) external onlyManager {
withdrawOpened = _opened;
}
function addStakeTimeRatio(
uint256[] memory _stakeTimeRatio
) external onlyManager {
require(_stakeTimeRatio.length <= 36, "stake time Ratio length is too long");
for (uint256 i = 0; i < _stakeTimeRatio.length; i++) {
stakeTimeRatio.push(_stakeTimeRatio[i]);
}
emit AddStakeTimeRatio(_stakeTimeRatio);
}
modifier checkNextEpoch() {
if (block.timestamp >= periodFinish) {
curCycleReward = nextCycleReward;
require(
poolSurplusReward >= nextCycleReward,
"poolSurplusReward is not enough"
);
poolSurplusReward = poolSurplusReward - nextCycleReward;
curCycleStartTime = block.timestamp;
periodFinish = block.timestamp + (nextDuration);
cycleTimes++;
lastUpdateTime = curCycleStartTime;
rewardRate = curCycleReward / (nextDuration);
totalReward = totalReward + (curCycleReward);
emit StartNewEpoch(curCycleReward, nextDuration);
}
_;
}
modifier updateReward(address account) {
rewardPerTokenStored = rewardPerToken();
lastUpdateTime = lastTimeRewardApplicable();
if (account != address(0)) {
UserInfo[] storage users = userInfo[account];
for (uint256 i = 0; i < users.length; i++) {
if (users[i].power > 0) {
users[i].reward = earned(account, i);
users[i].rewardPerTokenPaid = rewardPerTokenStored;
}
}
}
_;
}
function rewardPerToken() public view returns (uint256) {
if (totalSupply() == 0) {
return rewardPerTokenStored;
}
return
rewardPerTokenStored +
(((lastTimeRewardApplicable() - lastUpdateTime) *
rewardRate *
1e18) / totalSupply());
}
function stakeForAddress(
uint256 _amount,
uint256 _durationType,
address _stakerAddress
) external updateReward(_stakerAddress) checkNextEpoch onlyManager {
// check stake amount
require(_stakerAddress != address(0), "_stakerAddress is empty");
require(block.timestamp >= startStakeTime, "not start");
require(_amount > 0, "Cannot stake 0");
require(_durationType > 0, "stake time is too short");
require(_durationType <= 36, "stake time is too long");
require( _amount > MIN_DEPOSIT_AMOUNT, "Deposit amount must be greater than MIN_DEPOSIT_AMOUNT");
// transfer token to this contract
uint256 balanceBefore = IERC20(stakedToken).balanceOf(address(this));
IERC20(stakedToken).safeTransferFrom(
msg.sender,
address(this),
_amount
);
uint256 balanceEnd = IERC20(stakedToken).balanceOf(address(this));
uint256 currentAmount = balanceEnd - balanceBefore;
uint256 stakePower = (currentAmount * (stakeTimeRatio[_durationType])) /
(basRate);
userInfo[_stakerAddress].push(UserInfo(currentAmount, block.timestamp, _durationType, stakePower, 0, 0, rewardPerTokenStored));
uint256 positionID = userInfo[_stakerAddress].length - 1;
// update total info
totalAmount = totalAmount + (currentAmount);
totalPower = totalPower + (stakePower);
emit Stake(
_stakerAddress,
positionID,
currentAmount,
stakePower,
_durationType
);
}
function stake(
uint256 _amount,
uint256 _durationType
) external updateReward(msg.sender) checkNextEpoch nonReentrant {
// check stake amount
require(block.timestamp >= startStakeTime, "not start");
require(_amount > 0, "Cannot stake 0");
require(_durationType > 0, "stake time is too short");
require(_durationType <= 36, "stake time is too long");
require( _amount > MIN_DEPOSIT_AMOUNT, "Deposit amount must be greater than MIN_DEPOSIT_AMOUNT");
// transfer token to this contract
uint256 balanceBefore = IERC20(stakedToken).balanceOf(address(this));
IERC20(stakedToken).safeTransferFrom(
msg.sender,
address(this),
_amount
);
uint256 balanceEnd = IERC20(stakedToken).balanceOf(address(this));
uint256 currentAmount = balanceEnd - balanceBefore;
uint256 stakePower = (currentAmount * (stakeTimeRatio[_durationType])) /
(basRate);
userInfo[msg.sender].push(UserInfo(currentAmount, block.timestamp, _durationType, stakePower, 0, 0, rewardPerTokenStored));
uint256 positionID = userInfo[msg.sender].length - 1;
// update total info
totalAmount = totalAmount + (currentAmount);
totalPower = totalPower + (stakePower);
emit Stake(
msg.sender,
positionID,
currentAmount,
stakePower,
_durationType
);
}
function fixUpdateUserPower(
address user,
uint256 positionID
) external updateReward(user) nonReentrant {
UserInfo storage updateUser = userInfo[user][positionID];
uint256 beforePower = updateUser.power;
uint256 userPower = (updateUser.amount *
(stakeTimeRatio[updateUser.stakeDuration])) / (basRate);
require(userPower != beforePower, "userPower does not change");
updateUser.power = userPower;
totalPower = totalPower - beforePower + (userPower);
}
// Withdraw without caring about punish
function withdraw(
uint256 amount,
uint256 positionID
) external updateReward(msg.sender) nonReentrant {
require(
withdrawOpened,
"Have not opened"
);
require(
amount > MIN_WITHDRAW_AMOUNT,
"Withdraw amount must be greater than MIN_WITHDRAW_AMOUNT"
);
UserInfo storage user = userInfo[msg.sender][positionID];
require(user.amount > 0, "no stake amount");
require(user.amount >= amount, "Overdrawing");
uint256 reward = userInfo[msg.sender][positionID].reward;
if (reward > 0) {
user.allReward = user.allReward + (reward);
user.reward = 0;
safeTokenTransfer(msg.sender, reward);
emit Harvest(msg.sender, reward, positionID);
}
// calculate withdraw power
uint256 withdrawPower = (amount *
(stakeTimeRatio[user.stakeDuration])) / (basRate);
// update user info
user.amount = user.amount - amount;
user.power = user.power - withdrawPower;
// update total info
totalAmount = totalAmount - amount;
totalPower = totalPower - withdrawPower;
uint256 punish = punishStake(msg.sender, amount, positionID);
// transfer token to user
if (punish > 0) {
IERC20(stakedToken).safeTransfer(devAddress, punish);
}
IERC20(stakedToken).safeTransfer(msg.sender, amount - punish);
emit Withdraw(msg.sender, positionID, punish, amount, withdrawPower);
}
// (1-(lockTime/stakeTime))*10%
function punishStake(
address user,
uint256 withdrawAmount,
uint256 positionID
) public view returns (uint256) {
UserInfo memory _userInfo = userInfo[user][positionID];
uint256 stakeTime = _userInfo.stakeTime;
uint256 _stakeDuration = _userInfo.stakeDuration;
uint256 shouldDuration = _stakeDuration * monthTime;
uint256 stopStake = stakeTime + shouldDuration;
if (stopStake > block.timestamp) {
uint256 lockTime = block.timestamp - stakeTime;
uint256 punishRatio = (((1e18 -
((lockTime * 1e18) / shouldDuration)) * punishRate) / basRate);
return (punishRatio * withdrawAmount) / 1e18;
} else {
return 0;
}
}
function harvest(uint256 positionID)
external
updateReward(msg.sender)
nonReentrant
{
require(
withdrawOpened,
"Have not opened"
);
uint256 reward = userInfo[msg.sender][positionID].reward;
require(reward > 0, "no reward");
UserInfo storage user = userInfo[msg.sender][positionID];
user.allReward = user.allReward + (reward);
user.reward = 0;
safeTokenTransfer(msg.sender, reward);
emit Harvest(msg.sender, reward, positionID);
}
function lastTimeRewardApplicable() internal view returns (uint256) {
return Math.min(block.timestamp, periodFinish);
}
function earned(address account, uint256 positionID) public view returns (uint256) {
UserInfo memory user = userInfo[account][positionID];
return
(user.power * (rewardPerToken() - (user.rewardPerTokenPaid))) /
(1e18) +
(user.reward);
}
function totalSupply() public view returns (uint256) {
return totalPower;
}
function getUserStakeInfo(
address user,
uint256 positionID
)
external
view
override
returns (
uint256 power,
uint256 amount,
uint256 stakeTime,
uint256 stakeDuration
)
{
UserInfo memory _userInfo = userInfo[user][positionID];
power = _userInfo.power;
amount = _userInfo.amount;
stakeTime = _userInfo.stakeTime;
stakeDuration = _userInfo.stakeDuration;
}
// Safe slt transfer function, just in case if rounding error causes pool to not have enough SLTs.
function safeTokenTransfer(address _to, uint256 _amount) internal {
require(rewardToken != address(0x0), "No harvest began");
uint256 tokenBalance = IERC20(rewardToken).balanceOf(address(this));
if (_amount > tokenBalance) {
IERC20(rewardToken).safeTransfer(_to, tokenBalance);
} else {
IERC20(rewardToken).safeTransfer(_to, _amount);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/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.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
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].
*
* CAUTION: See Security Considerations above.
*/
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.9.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.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/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;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
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));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
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");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
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");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// 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 cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/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.8.0/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 (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
/**
* @title IDeltaRewardPoolMultiple
* @dev IDeltaRewardPoolMultiple interface
* stakePool
*/
interface IDeltaRewardPoolMultiple {
function getUserStakeInfo(
address user,
uint256 positionID
)
external
view
returns (
uint256 power,
uint256 amount,
uint256 stakeTime,
uint256 stakeDuration
);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
pragma abicoder v2;
import "@openzeppelin/contracts/utils/Context.sol";
abstract contract Manager is Context {
mapping(address => bool) private _accounts;
modifier onlyManager {
require(isManager(), "only manager");
_;
}
constructor() {
_accounts[_msgSender()] = true;
}
function isManager(address one) public view returns (bool) {
return _accounts[one];
}
function isManager() public view returns (bool) {
return isManager(_msgSender());
}
function setManager(address one, bool val) public onlyManager {
require(one != address(0), "address is zero");
_accounts[one] = val;
}
}{
"optimizer": {
"enabled": true,
"runs": 1000000
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"AddNextCycleReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"AddStakeTimeRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"punishRate","type":"uint256"}],"name":"SetPunishRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"nextCycleReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nextDuration","type":"uint256"}],"name":"SetRewardConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"SetStakeTimeRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"positionID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"power","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"StartNewEpoch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"positionID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"punish","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"power","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MIN_DEPOSIT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_WITHDRAW_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"addStakeTimeRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"basRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curCycleReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curCycleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cycleTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"fixUpdateUserPower","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"getUserStakeInfo","outputs":[{"internalType":"uint256","name":"power","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakeTime","type":"uint256"},{"internalType":"uint256","name":"stakeDuration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_stakedToken","type":"address"},{"internalType":"uint256","name":"_curCycleStartTime","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_nextCycleReward","type":"uint256"},{"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"one","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monthTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextCycleReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"addNextReward","type":"uint256"}],"name":"notifyMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolSurplusReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punishRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"},{"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"punishStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"one","type":"address"},{"internalType":"bool","name":"val","type":"bool"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nextCycleReward","type":"uint256"},{"internalType":"uint256","name":"_nextDuration","type":"uint256"}],"name":"setNextCycleReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_punishRate","type":"uint256"}],"name":"setPunishRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_stakeTimeRatio","type":"uint256[]"}],"name":"setStakeTimeRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_opened","type":"bool"}],"name":"setWithdrawOpened","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_durationType","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_durationType","type":"uint256"},{"internalType":"address","name":"_stakerAddress","type":"address"}],"name":"stakeForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakeTimeRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReward","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":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakeTime","type":"uint256"},{"internalType":"uint256","name":"stakeDuration","type":"uint256"},{"internalType":"uint256","name":"power","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"allReward","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"positionID","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608080604052346100cf57600160005533600052600160205260406000209060ff80199260018482541617815561271060035554161561009e575033156100675733600052600160205260016040600020918254161790556040516135829081620000d58239f35b60405162461bcd60e51b815260206004820152600f60248201526e61646472657373206973207a65726f60881b6044820152606490fd5b62461bcd60e51b815260206004820152600c60248201526b37b7363c9036b0b730b3b2b960a11b6044820152606490fd5b600080fdfe6040608081526004908136101561001557600080fd5b600091823560e01c908162ae5faa1461252e578163067f9025146122505781630a13fd6f146121d75781630a99af091461219b5781630e800752146120f95781630f92d2ee146120bc57816318160ddd146105515781631967cf9a1461207f5781631a39d8ef146120425781631b00b67814611ffd5781631e81305014611b3a5781631ea30fef146106c157816321ce919d14611a805781632d9b532014611a435781633ad10ef6146119ed5781633e491d47146119a6578163441a3e70146115ea578163583d459a146115555781635b69aafe146115185781635e5c2a5f146114db578163602146ad1461149f57816368d783e3146114625781636f752358146112a957816371aec5151461126c578163750142e61461122f578163750face5146111d65781637b0472f014610dec5781637b0a47ee14610daf578163843892ff14610bce5781639709678f14610b825781639964d890146109a55781639a6fe09f146107fc578163a5e90eee146106c6578163b6857844146106c1578163c56a3e8814610660578163c8f33c9114610623578163cc7a262e146105d0578163cd3daf9d1461058e578163db3ad22c14610551578163ddc632621461038b57508063df136d651461034f578063e58e171014610313578063ebe2b12b146102d7578063f3ae2415146102665763f7c618c11461021157600080fd5b3461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b5080fd5b50346102625760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906102ce6102a46125c8565b73ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b90519015158152f35b503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600f549051908152f35b503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906003549051908152f35b503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906012549051908152f35b83833461026257602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d5783356103c8612f76565b6012906012556103d6612fd0565b601355336104db575b506103e8613060565b6103f960ff60025460081c16612d8a565b338452601583528461040d82848720612779565b50015492831561047f57847f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549495963382526015835261044f84868420612779565b506005810161045f8982546129ef565b9055015561046d85336130cf565b82519485528401523392a26001815580f35b856064918451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600960248201527f6e6f2072657761726400000000000000000000000000000000000000000000006044820152fd5b91929390933382526015815283822093825b85548110156105415780600361050560019389612779565b500154610513575b016104ed565b61051d8133612d1b565b89610528838a612779565b50015585546006610539838a612779565b50015561050d565b509250925092856103df565b8280fd5b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906010549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906105c9612f76565b9051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209073ffffffffffffffffffffffffffffffffffffffff600654169051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906013549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906102ce3373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b61273a565b9190503461054d57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d576106ff6125c8565b91602435928315158094036107f85773ffffffffffffffffffffffffffffffffffffffff9061075a6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b61284b565b1690811561079b57508352600160205282209060ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00835416911617905580f35b60649060208451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600f60248201527f61646472657373206973207a65726f00000000000000000000000000000000006044820152fd5b8480fd5b9190503461054d5760209160207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126109a15767ffffffffffffffff90803582811161099d57610851903690830161269f565b936108836107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b6108916024865111156128b0565b845192831161097157680100000000000000008311610971578154838355808410610931575b5060208501918652855b8381106108ff57867f9dcf0840ede0c57ccb0e0d300ed8554578f8d304519e72af52aed91c3628cbf06108f988885191829182612def565b0390a180f35b82517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b820155918101916001016108c1565b837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91820191015b81811061096657506108b7565b878155600101610959565b6024866041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8580fd5b8380fd5b9190503461054d57602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126109a157610a0a6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b73ffffffffffffffffffffffffffffffffffffffff928360055416908251947f70a08231000000000000000000000000000000000000000000000000000000009283875230838801528587602481845afa968715610b78578897610b3f575b508291610a7f6024928895359030903390612fe2565b600554169385519485938492835230908301525afa908115610b35578591610ae8575b50610adb90610ad57f8528f2e2f29ef4d4137a19f29c2f8a153aceefbddb2306f48bf18268b0d3cff495600a549261293b565b906129ef565b9081600a5551908152a180f35b90508281813d8311610b2e575b610aff818361265e565b810103126107f857517f8528f2e2f29ef4d4137a19f29c2f8a153aceefbddb2306f48bf18268b0d3cff4610aa2565b503d610af5565b82513d87823e3d90fd5b9096508581819493943d8311610b71575b610b5a818361265e565b81010312610b6d57519590919085610a69565b8780fd5b503d610b50565b85513d8a823e3d90fd5b5050346102625760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906105c9610bc16125c8565b6044359060243590612e2b565b90503461054d5760209060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126109a157803567ffffffffffffffff81116107f857610c20903690830161269f565b91610c526107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b6024926024815111610d2c57855b8151811015610cfb57828160051b83010151845468010000000000000000811015610cd05790610c978260018095940188556127c4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff829392549160031b92831b921b191617905501610c60565b86896041887f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b867f54fc32aac22a9df890b159ce2d19980cb99fbe04e506172e861eb4e865dd99dc6108f984895191829182612def565b60848360208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602360248201527f7374616b652074696d6520526174696f206c656e67746820697320746f6f206c60448201527f6f6e6700000000000000000000000000000000000000000000000000000000006064820152fd5b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906014549051908152f35b83833461026257610dfc36612706565b610e04612f76565b601290601255610e12612fd0565b60135533611163575b50600f544210156110cd575b610e2f613060565b610e3d600954421015612a62565b610e48821515612ac7565b610e53811515612b2c565b610e606024821115612b91565b610e716509184e72a0008311612bf6565b73ffffffffffffffffffffffffffffffffffffffff918260065416928451907f70a08231000000000000000000000000000000000000000000000000000000009283835230898401526020958684602481845afa9384156110c35790879392918a95611088575b5090610ee79130903390612fe2565b600654169260248751809581938252308c8301525afa801561107e57869061104d575b610f14925061293b565b906015620186a0610f34610f27846127c4565b90549060031b1c85612977565b0493338752818152610f7b86882060125490885191610f5283612613565b8783524285840152868a8401528860608401528a60808401528a60a084015260c0830152612c81565b3387525283852054937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff850194851161102157829161101791610fe27f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde28296956011546129ef565b601155610ff1856010546129ef565b601055519384933397859094939260609260808301968352602083015260408201520152565b0390a26001815580f35b6024866011897f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b50908381813d8311611077575b611064818361265e565b8101031261099d5790610f149151610f0a565b503d61105a565b85513d88823e3d90fd5b84819394959296503d83116110bc575b6110a2818361265e565b810103126110b857519286929190610ee7610ed8565b8880fd5b503d611098565b88513d8b823e3d90fd5b7f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d483600c5480600b5561110e81600a546111098282101561298a565b61293b565b600a5542600855600d5461112281426129ef565b600f55611130600e546129fc565b600e55426013556111418183612a29565b601455611150826007546129ef565b60075582519182526020820152a1610e27565b9192939093338252601560205280822093825b85548110156111ca5780600361118e60019389612779565b50015461119c575b01611176565b6111a68133612d1b565b896111b1838a612779565b500155855460066111c2838a612779565b500155611196565b50925092509285610e1b565b82843461122c5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261122c578235925483101561122c575061121e6020926127c4565b91905490519160031b1c8152f35b80fd5b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906007549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906009549051908152f35b8391503461026257827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576112e26125c8565b6112ea612f76565b6012906012556112f8612fd0565b60135573ffffffffffffffffffffffffffffffffffffffff821691826113ec575b5050611323613060565b82526015602052611338602435848420612779565b5060038101620186a0611363825493611356600282549201546127c4565b90549060031b1c90612977565b049282841461138f5750829161138593611380925560105461293b565b6129ef565b6010556001815580f35b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601960248201527f75736572506f77657220646f6573206e6f74206368616e6765000000000000006044820152fd5b9094828594939552601560205280842093805b85548110156114535780600361141760019389612779565b500154611425575b016113ff565b61142f8186612d1b565b8661143a838a612779565b5001558854600661144b838a612779565b50015561141f565b50949293509450508480611319565b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600a549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020905162278d008152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600d549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600b549051908152f35b90503461054d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d577f6fc740ddd6b65a84a7659cb9d83b31e5282dded7f1dbee08c60eb941612865379160209135906115de6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b8160035551908152a180f35b90503461054d576115fa36612706565b929091611605612f76565b601290601255611613612fd0565b60135533611936575b50611625613060565b61163660ff60025460081c16612d8a565b6509184e72a0008311156118b457338552601560205261165884838720612779565b5090815480156118575784116117fa577fe08737ac48a1dab4b1a46c7dc9398bd5bfc6d7ad6fabb7cd8caa254de14def3593929161101791338852601560205287816116a689878420612779565b50015491826117a4575b5050506003620186a06116d56116c960028501546127c4565b905490841b1c87612977565b04916116e286825461293b565b8155016116f082825461293b565b90556116fe8460115461293b565b60115561170d8160105461293b565b60105561171b868533612e2b565b9283611773575b61175073ffffffffffffffffffffffffffffffffffffffff60065416611748868861293b565b9033906131f9565b519384933397859094939260609260808301968352602083015260408201520152565b61179f8473ffffffffffffffffffffffffffffffffffffffff80600654169060025460101c16906131f9565b611722565b600584016117b38482546129ef565b90558301556117c281336130cf565b83519081528660208201527f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954843392a23887816116b0565b60649060208451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600b60248201527f4f76657264726177696e670000000000000000000000000000000000000000006044820152fd5b60648260208651917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600f60248201527f6e6f207374616b6520616d6f756e7400000000000000000000000000000000006044820152fd5b602060849251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152603860248201527f576974686472617720616d6f756e74206d75737420626520677265617465722060448201527f7468616e204d494e5f57495448445241575f414d4f554e5400000000000000006064820152fd5b9193338652601560205284862093865b855481101561199a5780600361195e60019389612779565b50015461196c575b01611946565b6119768133612d1b565b85611981838a612779565b50015585546006611992838a612779565b500155611966565b5093509391503861161c565b50503461026257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906105c96119e46125c8565b60243590612d1b565b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209073ffffffffffffffffffffffffffffffffffffffff60025460101c169051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600e549051908152f35b90503461054d57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d57611ab86125c8565b73ffffffffffffffffffffffffffffffffffffffff16835260156020528183208054602435949085101561122c575060e093611af391612779565b508054926001820154926002830154600384015491840154926006600586015495015495815197885260208801528601526060850152608084015260a083015260c0820152f35b839150346102625760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257803590602490813594611b7d6125f0565b90611b86612f76565b94601295601255611b95612fd0565b60135573ffffffffffffffffffffffffffffffffffffffff92838116968715918215611f6b575b5050600f54421015611eda575b611bfa6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b611e7e57611c0c600954421015612a62565b611c17811515612ac7565b611c22881515612b2c565b611c2e85891115612b91565b611c3f6509184e72a0008211612bf6565b8260065416928251907f70a082310000000000000000000000000000000000000000000000000000000092838352308784015260209586848a81845afa938415611e745790879392918c95611e39575b5090611c9e9130903390612fe2565b6006541692878551809581938252308a8301525afa8015611e2f578890611dfe575b611cca925061293b565b936015620186a0611cea611cdd8b6127c4565b90549060031b1c88612977565b0493878952818152611d31848a2060125490865191611d0883612613565b8a835242858401528d888401528860608401528c60808401528c60a084015260c0830152612c81565b8789525281872054937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8501948511611dd457505095611dce917f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde282959697611d9b866011546129ef565b601155611daa826010546129ef565b60105551948594859094939260609260808301968352602083015260408201520152565b0390a280f35b601188917f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b50908381813d8311611e28575b611e15818361265e565b81010312610b6d5790611cca9151611cc0565b503d611e0b565b83513d8a823e3d90fd5b84819394959296503d8311611e6d575b611e53818361265e565b81010312611e6957519286929190611c9e611c8f565b8a80fd5b503d611e49565b86513d8d823e3d90fd5b60648460178760208651937f08c379a00000000000000000000000000000000000000000000000000000000085528401528201527f5f7374616b65724164647265737320697320656d7074790000000000000000006044820152fd5b7f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d483600c5480600b55611f1681600a546111098282101561298a565b600a5542600855600d54611f2a81426129ef565b600f55611f38600e546129fc565b600e5542601355611f498183612a29565b601455611f58826007546129ef565b60075582519182526020820152a1611bc9565b959691989388859b96929b99949952601560205280852098855b8a54811015611fe957808b8b8f838d916003611fa360019887612779565b500154611fb6575b505050505001611f85565b600693611fc683611fdb95612d1b565b90611fd18488612779565b5001555493612779565b5001558b8b8f838d91611fab565b509398509398919695509398508980611bbc565b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209060ff60025460081c1690519015158152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906011549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906008549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600c549051908152f35b8390346102625760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625735801515809103610262576121666107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff61ff006002549260081b1691161760025580f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209051620186a08152f35b505034610262577fb2ea533f5e8ee630209c5faf573cde9df2c9f9f2bf22e4d080e57bcd00afd8a09061220936612706565b61223a6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b81600c5580600d5582519182526020820152a180f35b90503461054d5760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d576122896125c8565b60243573ffffffffffffffffffffffffffffffffffffffff9081811680910361099d576122b46125f0565b90606435926084359260c4359767ffffffffffffffff98898111611e69576122df9036908a0161269f565b966123116107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b6002549160ff83166124d15750907fffffffffffffffffffff000000000000000000000000000000000000000000ff75ffffffffffffffffffffffffffffffffffffffff00006101009361236960248c5111156128b0565b60101b16911617176002557fffffffffffffffffffffffff000000000000000000000000000000000000000092836005541617600555169060065416176006556123b3818361293b565b60085581600f55600d5560095560a435600c5580519283116124a5576801000000000000000083116124a5578154838355808410612465575b506020809101918452835b838110612433578461271060035560017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600254161760025580f35b82517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b820155918101916001016123f7565b837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91820191015b81811061249a57506123ec565b85815560010161248d565b6024846041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b89602060649251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602060248201527f696e697469616c697a653a20416c726561647920696e697469616c697a6564216044820152fd5b82843461122c57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261122c5761259561259b9173ffffffffffffffffffffffffffffffffffffffff6125826125c8565b1681526015602052836024359120612779565b506127fb565b60608181015182516020808501519486015195519283528201526040810192909252810191909152608090f35b6004359073ffffffffffffffffffffffffffffffffffffffff821682036125eb57565b600080fd5b6044359073ffffffffffffffffffffffffffffffffffffffff821682036125eb57565b60e0810190811067ffffffffffffffff82111761262f57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761262f57604052565b81601f820112156125eb5780359160209167ffffffffffffffff841161262f578360051b90604051946126d48584018761265e565b855283808601928201019283116125eb578301905b8282106126f7575050505090565b813581529083019083016126e9565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60409101126125eb576004359060243590565b346125eb5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126125eb5760206040516509184e72a0008152f35b8054821015612795576000526007602060002091020190600090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6004548110156127955760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b9060405161280881612613565b60c0600682948054845260018101546020850152600281015460408501526003810154606085015260048101546080850152600581015460a08501520154910152565b1561285257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6f6e6c79206d616e6167657200000000000000000000000000000000000000006044820152fd5b156128b757565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f7374616b6554696d65526174696f206c656e67746820697320696e76616c696460448201527f21000000000000000000000000000000000000000000000000000000000000006064820152fd5b9190820391821161294857565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181029291811591840414171561294857565b1561299157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f706f6f6c537572706c7573526577617264206973206e6f7420656e6f756768006044820152fd5b9190820180921161294857565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146129485760010190565b8115612a33570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b15612a6957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f6e6f7420737461727400000000000000000000000000000000000000000000006044820152fd5b15612ace57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152fd5b15612b3357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f7374616b652074696d6520697320746f6f2073686f72740000000000000000006044820152fd5b15612b9857565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f7374616b652074696d6520697320746f6f206c6f6e67000000000000000000006044820152fd5b15612bfd57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f4465706f73697420616d6f756e74206d7573742062652067726561746572207460448201527f68616e204d494e5f4445504f5349545f414d4f554e54000000000000000000006064820152fd5b80546801000000000000000081101561262f57612ca391600182018155612779565b919091612cec5760c0816006925184556020810151600185015560408101516002850155606081015160038501556080810151600485015560a081015160058501550151910155565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b612595612d879273ffffffffffffffffffffffffffffffffffffffff612d4e931660005260156020526040600020612779565b6080670de0b6b3a7640000612d7d6060840151612d77612d6c612f76565b60c08701519061293b565b90612977565b04910151906129ef565b90565b15612d9157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f48617665206e6f74206f70656e656400000000000000000000000000000000006044820152fd5b602090602060408183019282815285518094520193019160005b828110612e17575050505090565b835185529381019392810192600101612e09565b91612595612e5c9173ffffffffffffffffffffffffffffffffffffffff600095168552601560205260408520612779565b91604060208401519301519262278d0093848102948186041490151715612f4957612e8784826129ef565b421015612f4257612e98904261293b565b92670de0b6b3a76400009384810290808204861490151715612f155790612ebe91612a29565b830390838211612ee8575090620186a0612ede612ee49360035490612977565b04612977565b0490565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526011600452fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b5091505090565b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b6010548015612fc957601254612fa2612f99612f90612fd0565b6013549061293b565b60145490612977565b670de0b6b3a76400009081810291818304149015171561294857612d8792610ad591612a29565b5060125490565b600f54804210600014612d8757504290565b9290604051927f23b872dd00000000000000000000000000000000000000000000000000000000602085015273ffffffffffffffffffffffffffffffffffffffff809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff84111761262f5761305e92604052613268565b565b600260005414613071576002600055565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b9073ffffffffffffffffffffffffffffffffffffffff91826005541692831561319b57604051927f70a08231000000000000000000000000000000000000000000000000000000008452306004850152602084602481885afa93841561318f5760009461315b575b508381111561314f575061305e9350600554166131f9565b92505061305e926131f9565b9093506020813d602011613187575b816131776020938361265e565b810103126125eb57519238613137565b3d915061316a565b6040513d6000823e3d90fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f206861727665737420626567616e000000000000000000000000000000006044820152fd5b9173ffffffffffffffffffffffffffffffffffffffff604051927fa9059cbb000000000000000000000000000000000000000000000000000000006020850152166024830152604482015260448152608081019181831067ffffffffffffffff84111761262f5761305e926040525b73ffffffffffffffffffffffffffffffffffffffff16906040516040810167ffffffffffffffff908281108282111761262f576040526020938483527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564858401526000808587829751910182855af1903d1561341f573d9283116133f2579061332f93929160405192613322887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116018561265e565b83523d868885013e61342a565b8051918215918483156133ce575b50505090501561334a5750565b608490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b9193818094500103126102625782015190811515820361122c57508038808461333d565b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b9061332f9392506060915b919290156134a5575081511561343e575090565b3b156134475790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156134b85750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b848110613535575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b8181018301518682016044015285935082016134f456fea264697066735822122088a197ac94ea9c1aba17877539f259ede9260f5a958dffd0af2a3028aa5b379564736f6c63430008170033
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c908162ae5faa1461252e578163067f9025146122505781630a13fd6f146121d75781630a99af091461219b5781630e800752146120f95781630f92d2ee146120bc57816318160ddd146105515781631967cf9a1461207f5781631a39d8ef146120425781631b00b67814611ffd5781631e81305014611b3a5781631ea30fef146106c157816321ce919d14611a805781632d9b532014611a435781633ad10ef6146119ed5781633e491d47146119a6578163441a3e70146115ea578163583d459a146115555781635b69aafe146115185781635e5c2a5f146114db578163602146ad1461149f57816368d783e3146114625781636f752358146112a957816371aec5151461126c578163750142e61461122f578163750face5146111d65781637b0472f014610dec5781637b0a47ee14610daf578163843892ff14610bce5781639709678f14610b825781639964d890146109a55781639a6fe09f146107fc578163a5e90eee146106c6578163b6857844146106c1578163c56a3e8814610660578163c8f33c9114610623578163cc7a262e146105d0578163cd3daf9d1461058e578163db3ad22c14610551578163ddc632621461038b57508063df136d651461034f578063e58e171014610313578063ebe2b12b146102d7578063f3ae2415146102665763f7c618c11461021157600080fd5b3461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209073ffffffffffffffffffffffffffffffffffffffff600554169051908152f35b5080fd5b50346102625760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906102ce6102a46125c8565b73ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b90519015158152f35b503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600f549051908152f35b503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906003549051908152f35b503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906012549051908152f35b83833461026257602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d5783356103c8612f76565b6012906012556103d6612fd0565b601355336104db575b506103e8613060565b6103f960ff60025460081c16612d8a565b338452601583528461040d82848720612779565b50015492831561047f57847f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549495963382526015835261044f84868420612779565b506005810161045f8982546129ef565b9055015561046d85336130cf565b82519485528401523392a26001815580f35b856064918451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600960248201527f6e6f2072657761726400000000000000000000000000000000000000000000006044820152fd5b91929390933382526015815283822093825b85548110156105415780600361050560019389612779565b500154610513575b016104ed565b61051d8133612d1b565b89610528838a612779565b50015585546006610539838a612779565b50015561050d565b509250925092856103df565b8280fd5b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906010549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906105c9612f76565b9051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209073ffffffffffffffffffffffffffffffffffffffff600654169051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906013549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906102ce3373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b61273a565b9190503461054d57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d576106ff6125c8565b91602435928315158094036107f85773ffffffffffffffffffffffffffffffffffffffff9061075a6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b61284b565b1690811561079b57508352600160205282209060ff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00835416911617905580f35b60649060208451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600f60248201527f61646472657373206973207a65726f00000000000000000000000000000000006044820152fd5b8480fd5b9190503461054d5760209160207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126109a15767ffffffffffffffff90803582811161099d57610851903690830161269f565b936108836107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b6108916024865111156128b0565b845192831161097157680100000000000000008311610971578154838355808410610931575b5060208501918652855b8381106108ff57867f9dcf0840ede0c57ccb0e0d300ed8554578f8d304519e72af52aed91c3628cbf06108f988885191829182612def565b0390a180f35b82517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b820155918101916001016108c1565b837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91820191015b81811061096657506108b7565b878155600101610959565b6024866041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b8580fd5b8380fd5b9190503461054d57602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126109a157610a0a6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b73ffffffffffffffffffffffffffffffffffffffff928360055416908251947f70a08231000000000000000000000000000000000000000000000000000000009283875230838801528587602481845afa968715610b78578897610b3f575b508291610a7f6024928895359030903390612fe2565b600554169385519485938492835230908301525afa908115610b35578591610ae8575b50610adb90610ad57f8528f2e2f29ef4d4137a19f29c2f8a153aceefbddb2306f48bf18268b0d3cff495600a549261293b565b906129ef565b9081600a5551908152a180f35b90508281813d8311610b2e575b610aff818361265e565b810103126107f857517f8528f2e2f29ef4d4137a19f29c2f8a153aceefbddb2306f48bf18268b0d3cff4610aa2565b503d610af5565b82513d87823e3d90fd5b9096508581819493943d8311610b71575b610b5a818361265e565b81010312610b6d57519590919085610a69565b8780fd5b503d610b50565b85513d8a823e3d90fd5b5050346102625760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906105c9610bc16125c8565b6044359060243590612e2b565b90503461054d5760209060207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126109a157803567ffffffffffffffff81116107f857610c20903690830161269f565b91610c526107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b6024926024815111610d2c57855b8151811015610cfb57828160051b83010151845468010000000000000000811015610cd05790610c978260018095940188556127c4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff829392549160031b92831b921b191617905501610c60565b86896041887f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b867f54fc32aac22a9df890b159ce2d19980cb99fbe04e506172e861eb4e865dd99dc6108f984895191829182612def565b60848360208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602360248201527f7374616b652074696d6520526174696f206c656e67746820697320746f6f206c60448201527f6f6e6700000000000000000000000000000000000000000000000000000000006064820152fd5b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906014549051908152f35b83833461026257610dfc36612706565b610e04612f76565b601290601255610e12612fd0565b60135533611163575b50600f544210156110cd575b610e2f613060565b610e3d600954421015612a62565b610e48821515612ac7565b610e53811515612b2c565b610e606024821115612b91565b610e716509184e72a0008311612bf6565b73ffffffffffffffffffffffffffffffffffffffff918260065416928451907f70a08231000000000000000000000000000000000000000000000000000000009283835230898401526020958684602481845afa9384156110c35790879392918a95611088575b5090610ee79130903390612fe2565b600654169260248751809581938252308c8301525afa801561107e57869061104d575b610f14925061293b565b906015620186a0610f34610f27846127c4565b90549060031b1c85612977565b0493338752818152610f7b86882060125490885191610f5283612613565b8783524285840152868a8401528860608401528a60808401528a60a084015260c0830152612c81565b3387525283852054937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff850194851161102157829161101791610fe27f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde28296956011546129ef565b601155610ff1856010546129ef565b601055519384933397859094939260609260808301968352602083015260408201520152565b0390a26001815580f35b6024866011897f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b50908381813d8311611077575b611064818361265e565b8101031261099d5790610f149151610f0a565b503d61105a565b85513d88823e3d90fd5b84819394959296503d83116110bc575b6110a2818361265e565b810103126110b857519286929190610ee7610ed8565b8880fd5b503d611098565b88513d8b823e3d90fd5b7f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d483600c5480600b5561110e81600a546111098282101561298a565b61293b565b600a5542600855600d5461112281426129ef565b600f55611130600e546129fc565b600e55426013556111418183612a29565b601455611150826007546129ef565b60075582519182526020820152a1610e27565b9192939093338252601560205280822093825b85548110156111ca5780600361118e60019389612779565b50015461119c575b01611176565b6111a68133612d1b565b896111b1838a612779565b500155855460066111c2838a612779565b500155611196565b50925092509285610e1b565b82843461122c5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261122c578235925483101561122c575061121e6020926127c4565b91905490519160031b1c8152f35b80fd5b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906007549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906009549051908152f35b8391503461026257827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576112e26125c8565b6112ea612f76565b6012906012556112f8612fd0565b60135573ffffffffffffffffffffffffffffffffffffffff821691826113ec575b5050611323613060565b82526015602052611338602435848420612779565b5060038101620186a0611363825493611356600282549201546127c4565b90549060031b1c90612977565b049282841461138f5750829161138593611380925560105461293b565b6129ef565b6010556001815580f35b60649060208751917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601960248201527f75736572506f77657220646f6573206e6f74206368616e6765000000000000006044820152fd5b9094828594939552601560205280842093805b85548110156114535780600361141760019389612779565b500154611425575b016113ff565b61142f8186612d1b565b8661143a838a612779565b5001558854600661144b838a612779565b50015561141f565b50949293509450508480611319565b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600a549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020905162278d008152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600d549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600b549051908152f35b90503461054d5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d577f6fc740ddd6b65a84a7659cb9d83b31e5282dded7f1dbee08c60eb941612865379160209135906115de6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b8160035551908152a180f35b90503461054d576115fa36612706565b929091611605612f76565b601290601255611613612fd0565b60135533611936575b50611625613060565b61163660ff60025460081c16612d8a565b6509184e72a0008311156118b457338552601560205261165884838720612779565b5090815480156118575784116117fa577fe08737ac48a1dab4b1a46c7dc9398bd5bfc6d7ad6fabb7cd8caa254de14def3593929161101791338852601560205287816116a689878420612779565b50015491826117a4575b5050506003620186a06116d56116c960028501546127c4565b905490841b1c87612977565b04916116e286825461293b565b8155016116f082825461293b565b90556116fe8460115461293b565b60115561170d8160105461293b565b60105561171b868533612e2b565b9283611773575b61175073ffffffffffffffffffffffffffffffffffffffff60065416611748868861293b565b9033906131f9565b519384933397859094939260609260808301968352602083015260408201520152565b61179f8473ffffffffffffffffffffffffffffffffffffffff80600654169060025460101c16906131f9565b611722565b600584016117b38482546129ef565b90558301556117c281336130cf565b83519081528660208201527f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954843392a23887816116b0565b60649060208451917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600b60248201527f4f76657264726177696e670000000000000000000000000000000000000000006044820152fd5b60648260208651917f08c379a0000000000000000000000000000000000000000000000000000000008352820152600f60248201527f6e6f207374616b6520616d6f756e7400000000000000000000000000000000006044820152fd5b602060849251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152603860248201527f576974686472617720616d6f756e74206d75737420626520677265617465722060448201527f7468616e204d494e5f57495448445241575f414d4f554e5400000000000000006064820152fd5b9193338652601560205284862093865b855481101561199a5780600361195e60019389612779565b50015461196c575b01611946565b6119768133612d1b565b85611981838a612779565b50015585546006611992838a612779565b500155611966565b5093509391503861161c565b50503461026257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906105c96119e46125c8565b60243590612d1b565b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209073ffffffffffffffffffffffffffffffffffffffff60025460101c169051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600e549051908152f35b90503461054d57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d57611ab86125c8565b73ffffffffffffffffffffffffffffffffffffffff16835260156020528183208054602435949085101561122c575060e093611af391612779565b508054926001820154926002830154600384015491840154926006600586015495015495815197885260208801528601526060850152608084015260a083015260c0820152f35b839150346102625760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257803590602490813594611b7d6125f0565b90611b86612f76565b94601295601255611b95612fd0565b60135573ffffffffffffffffffffffffffffffffffffffff92838116968715918215611f6b575b5050600f54421015611eda575b611bfa6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b611e7e57611c0c600954421015612a62565b611c17811515612ac7565b611c22881515612b2c565b611c2e85891115612b91565b611c3f6509184e72a0008211612bf6565b8260065416928251907f70a082310000000000000000000000000000000000000000000000000000000092838352308784015260209586848a81845afa938415611e745790879392918c95611e39575b5090611c9e9130903390612fe2565b6006541692878551809581938252308a8301525afa8015611e2f578890611dfe575b611cca925061293b565b936015620186a0611cea611cdd8b6127c4565b90549060031b1c88612977565b0493878952818152611d31848a2060125490865191611d0883612613565b8a835242858401528d888401528860608401528c60808401528c60a084015260c0830152612c81565b8789525281872054937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8501948511611dd457505095611dce917f2720efa4b2dd4f3f8a347da3cbd290a522e9432da9072c5b8e6300496fdde282959697611d9b866011546129ef565b601155611daa826010546129ef565b60105551948594859094939260609260808301968352602083015260408201520152565b0390a280f35b601188917f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b50908381813d8311611e28575b611e15818361265e565b81010312610b6d5790611cca9151611cc0565b503d611e0b565b83513d8a823e3d90fd5b84819394959296503d8311611e6d575b611e53818361265e565b81010312611e6957519286929190611c9e611c8f565b8a80fd5b503d611e49565b86513d8d823e3d90fd5b60648460178760208651937f08c379a00000000000000000000000000000000000000000000000000000000085528401528201527f5f7374616b65724164647265737320697320656d7074790000000000000000006044820152fd5b7f3a3c32ccb847288c39cc6fc34b80496444cf84f6f4968f788efeb23b564560d483600c5480600b55611f1681600a546111098282101561298a565b600a5542600855600d54611f2a81426129ef565b600f55611f38600e546129fc565b600e5542601355611f498183612a29565b601455611f58826007546129ef565b60075582519182526020820152a1611bc9565b959691989388859b96929b99949952601560205280852098855b8a54811015611fe957808b8b8f838d916003611fa360019887612779565b500154611fb6575b505050505001611f85565b600693611fc683611fdb95612d1b565b90611fd18488612779565b5001555493612779565b5001558b8b8f838d91611fab565b509398509398919695509398508980611bbc565b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209060ff60025460081c1690519015158152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906011549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610262576020906008549051908152f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261026257602090600c549051908152f35b8390346102625760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625735801515809103610262576121666107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff61ff006002549260081b1691161760025580f35b50503461026257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102625760209051620186a08152f35b505034610262577fb2ea533f5e8ee630209c5faf573cde9df2c9f9f2bf22e4d080e57bcd00afd8a09061220936612706565b61223a6107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b81600c5580600d5582519182526020820152a180f35b90503461054d5760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261054d576122896125c8565b60243573ffffffffffffffffffffffffffffffffffffffff9081811680910361099d576122b46125f0565b90606435926084359260c4359767ffffffffffffffff98898111611e69576122df9036908a0161269f565b966123116107553373ffffffffffffffffffffffffffffffffffffffff16600052600160205260ff6040600020541690565b6002549160ff83166124d15750907fffffffffffffffffffff000000000000000000000000000000000000000000ff75ffffffffffffffffffffffffffffffffffffffff00006101009361236960248c5111156128b0565b60101b16911617176002557fffffffffffffffffffffffff000000000000000000000000000000000000000092836005541617600555169060065416176006556123b3818361293b565b60085581600f55600d5560095560a435600c5580519283116124a5576801000000000000000083116124a5578154838355808410612465575b506020809101918452835b838110612433578461271060035560017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600254161760025580f35b82517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b820155918101916001016123f7565b837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91820191015b81811061249a57506123ec565b85815560010161248d565b6024846041847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b89602060649251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152602060248201527f696e697469616c697a653a20416c726561647920696e697469616c697a6564216044820152fd5b82843461122c57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261122c5761259561259b9173ffffffffffffffffffffffffffffffffffffffff6125826125c8565b1681526015602052836024359120612779565b506127fb565b60608181015182516020808501519486015195519283528201526040810192909252810191909152608090f35b6004359073ffffffffffffffffffffffffffffffffffffffff821682036125eb57565b600080fd5b6044359073ffffffffffffffffffffffffffffffffffffffff821682036125eb57565b60e0810190811067ffffffffffffffff82111761262f57604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761262f57604052565b81601f820112156125eb5780359160209167ffffffffffffffff841161262f578360051b90604051946126d48584018761265e565b855283808601928201019283116125eb578301905b8282106126f7575050505090565b813581529083019083016126e9565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60409101126125eb576004359060243590565b346125eb5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126125eb5760206040516509184e72a0008152f35b8054821015612795576000526007602060002091020190600090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6004548110156127955760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b9060405161280881612613565b60c0600682948054845260018101546020850152600281015460408501526003810154606085015260048101546080850152600581015460a08501520154910152565b1561285257565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6f6e6c79206d616e6167657200000000000000000000000000000000000000006044820152fd5b156128b757565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f7374616b6554696d65526174696f206c656e67746820697320696e76616c696460448201527f21000000000000000000000000000000000000000000000000000000000000006064820152fd5b9190820391821161294857565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181029291811591840414171561294857565b1561299157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f706f6f6c537572706c7573526577617264206973206e6f7420656e6f756768006044820152fd5b9190820180921161294857565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146129485760010190565b8115612a33570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b15612a6957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f6e6f7420737461727400000000000000000000000000000000000000000000006044820152fd5b15612ace57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152fd5b15612b3357565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f7374616b652074696d6520697320746f6f2073686f72740000000000000000006044820152fd5b15612b9857565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f7374616b652074696d6520697320746f6f206c6f6e67000000000000000000006044820152fd5b15612bfd57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f4465706f73697420616d6f756e74206d7573742062652067726561746572207460448201527f68616e204d494e5f4445504f5349545f414d4f554e54000000000000000000006064820152fd5b80546801000000000000000081101561262f57612ca391600182018155612779565b919091612cec5760c0816006925184556020810151600185015560408101516002850155606081015160038501556080810151600485015560a081015160058501550151910155565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b612595612d879273ffffffffffffffffffffffffffffffffffffffff612d4e931660005260156020526040600020612779565b6080670de0b6b3a7640000612d7d6060840151612d77612d6c612f76565b60c08701519061293b565b90612977565b04910151906129ef565b90565b15612d9157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f48617665206e6f74206f70656e656400000000000000000000000000000000006044820152fd5b602090602060408183019282815285518094520193019160005b828110612e17575050505090565b835185529381019392810192600101612e09565b91612595612e5c9173ffffffffffffffffffffffffffffffffffffffff600095168552601560205260408520612779565b91604060208401519301519262278d0093848102948186041490151715612f4957612e8784826129ef565b421015612f4257612e98904261293b565b92670de0b6b3a76400009384810290808204861490151715612f155790612ebe91612a29565b830390838211612ee8575090620186a0612ede612ee49360035490612977565b04612977565b0490565b807f4e487b7100000000000000000000000000000000000000000000000000000000602492526011600452fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b5091505090565b6024827f4e487b710000000000000000000000000000000000000000000000000000000081526011600452fd5b6010548015612fc957601254612fa2612f99612f90612fd0565b6013549061293b565b60145490612977565b670de0b6b3a76400009081810291818304149015171561294857612d8792610ad591612a29565b5060125490565b600f54804210600014612d8757504290565b9290604051927f23b872dd00000000000000000000000000000000000000000000000000000000602085015273ffffffffffffffffffffffffffffffffffffffff809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff84111761262f5761305e92604052613268565b565b600260005414613071576002600055565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b9073ffffffffffffffffffffffffffffffffffffffff91826005541692831561319b57604051927f70a08231000000000000000000000000000000000000000000000000000000008452306004850152602084602481885afa93841561318f5760009461315b575b508381111561314f575061305e9350600554166131f9565b92505061305e926131f9565b9093506020813d602011613187575b816131776020938361265e565b810103126125eb57519238613137565b3d915061316a565b6040513d6000823e3d90fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f206861727665737420626567616e000000000000000000000000000000006044820152fd5b9173ffffffffffffffffffffffffffffffffffffffff604051927fa9059cbb000000000000000000000000000000000000000000000000000000006020850152166024830152604482015260448152608081019181831067ffffffffffffffff84111761262f5761305e926040525b73ffffffffffffffffffffffffffffffffffffffff16906040516040810167ffffffffffffffff908281108282111761262f576040526020938483527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564858401526000808587829751910182855af1903d1561341f573d9283116133f2579061332f93929160405192613322887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116018561265e565b83523d868885013e61342a565b8051918215918483156133ce575b50505090501561334a5750565b608490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b9193818094500103126102625782015190811515820361122c57508038808461333d565b6024857f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b9061332f9392506060915b919290156134a5575081511561343e575090565b3b156134475790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b8251909150156134b85750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b848110613535575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b8181018301518682016044015285935082016134f456fea264697066735822122088a197ac94ea9c1aba17877539f259ede9260f5a958dffd0af2a3028aa5b379564736f6c63430008170033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$161,932.33
Net Worth in ETH
81.720466
Token Allocations
UXLINK
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.004848 | 33,398,490.6563 | $161,932.33 |
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.