Source Code
Latest 25 from a total of 9,873 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Stake | 289636605 | 401 days ago | IN | 0 ETH | 0.00000131 | ||||
| Unstake | 289635802 | 401 days ago | IN | 0 ETH | 0.00000134 | ||||
| Unstake | 289635751 | 401 days ago | IN | 0 ETH | 0.00000134 | ||||
| Unstake | 289635593 | 401 days ago | IN | 0 ETH | 0.00000114 | ||||
| Harvest All | 289635512 | 401 days ago | IN | 0 ETH | 0.00000282 | ||||
| Stake | 289542461 | 401 days ago | IN | 0 ETH | 0.00000673 | ||||
| Harvest All | 289542034 | 401 days ago | IN | 0 ETH | 0.00000523 | ||||
| Harvest All | 289201074 | 402 days ago | IN | 0 ETH | 0.0000058 | ||||
| Stake | 289198298 | 402 days ago | IN | 0 ETH | 0.00001214 | ||||
| Unstake | 289193515 | 402 days ago | IN | 0 ETH | 0.0000287 | ||||
| Harvest All | 289193385 | 402 days ago | IN | 0 ETH | 0.00001977 | ||||
| Unstake | 289160740 | 402 days ago | IN | 0 ETH | 0.00000529 | ||||
| Harvest | 289160471 | 402 days ago | IN | 0 ETH | 0.00000462 | ||||
| Harvest All | 288927462 | 403 days ago | IN | 0 ETH | 0.0000025 | ||||
| Harvest All | 288699006 | 403 days ago | IN | 0 ETH | 0.00000228 | ||||
| Harvest All | 288243530 | 405 days ago | IN | 0 ETH | 0.00000155 | ||||
| Harvest All | 288221047 | 405 days ago | IN | 0 ETH | 0.00000251 | ||||
| Harvest All | 288220916 | 405 days ago | IN | 0 ETH | 0.00000257 | ||||
| Harvest All | 288137408 | 405 days ago | IN | 0 ETH | 0.00001108 | ||||
| Stake | 287529138 | 407 days ago | IN | 0 ETH | 0.0000016 | ||||
| Harvest All | 287528577 | 407 days ago | IN | 0 ETH | 0.00000264 | ||||
| Unstake | 287515293 | 407 days ago | IN | 0 ETH | 0.00000164 | ||||
| Unstake | 287515214 | 407 days ago | IN | 0 ETH | 0.00000164 | ||||
| Harvest All | 287514979 | 407 days ago | IN | 0 ETH | 0.00000285 | ||||
| Unstake | 287381336 | 407 days ago | IN | 0 ETH | 0.00000148 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Staking
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.22;
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./PoolFactory.sol";
contract Staking is PoolFactory, ReentrancyGuard {
using SafeERC20 for IERC20;
struct UserInfo {
uint256 balance; // amounts staked
uint256 rewards;
uint256 bonus;
uint48 stakedTime; // stakedTime for calculate lock => stakedTime + pool.lockPeriod
uint48 lastUpdate;
}
mapping(address => mapping(uint16 => UserInfo)) public userInfos;
mapping(uint16 => uint256) public poolStaked;
event Stake(address indexed user, uint256 amount);
event Unstake(address indexed user, uint256 amount);
event ClaimReward(address user);
constructor(IERC20 _xbl, IERC20 _wxbl) PoolFactory(_xbl, _wxbl) {}
function stake(uint16 _pId, uint256 _amount) external {
_stake(_msgSender(), _pId, _amount);
}
function stakeFor(address _user, uint16 _pId, uint256 _amount) external {
_stake(_user, _pId, _amount);
}
function _stake(
address _user,
uint16 _pId,
uint256 _amount
) internal nonReentrant {
PoolInfo memory pool = pools[_pId];
UserInfo storage userInfo = userInfos[_user][_pId];
require(_amount > 0, "Staking: amount zero");
require(pool.active, "Staking: pool inactive");
XBL.safeTransferFrom(_msgSender(), address(this), _amount);
_update(_user, _pId);
userInfo.balance += _amount;
userInfo.stakedTime = uint48(block.timestamp);
require(userInfo.balance >= pool.min, "Staking: pool min");
poolStaked[_pId] += _amount;
if (pool.cap > 0) {
require(poolStaked[_pId] <= pool.cap, "Staking: max capacity");
}
emit Stake(_user, _amount);
}
function unstake(uint16 _pId, uint256 _amount) external nonReentrant {
PoolInfo memory pool = pools[_pId];
UserInfo storage userInfo = userInfos[_msgSender()][_pId];
require(_amount <= userInfo.balance);
_update(_msgSender(), _pId);
uint256 amount = block.timestamp >
(userInfo.stakedTime + pool.lockPeriod)
? _amount
: (_amount * (100 - pool.fee)) / 100;
uint256 amountBurn = _amount - amount;
poolStaked[_pId] -= _amount;
userInfo.balance -= _amount;
if (amountBurn > 0) XBL.safeTransfer(address(this), amountBurn);
XBL.safeTransfer(_msgSender(), amount);
emit Unstake(_msgSender(), _amount);
}
function harvest(uint16 _pId) public nonReentrant {
_harvest(_msgSender(), _pId);
}
function harvestAll() external nonReentrant {
for (uint16 i = 0; i < pools.length; i++) {
_harvest(_msgSender(), i);
}
}
function _harvest(address _user, uint16 _pId) internal {
_update(_user, _pId);
UserInfo storage userInfo = userInfos[_user][_pId];
uint rewards = userInfo.rewards;
uint bonus = userInfo.bonus;
userInfo.rewards = 0;
userInfo.bonus = 0;
if (rewards > 0) XBL.safeTransfer(_user, rewards);
if (bonus > 0) {
_collectWXBL(bonus);
wXBL.safeTransfer(_user, bonus);
}
emit ClaimReward(_user);
}
function _update(address _user, uint16 _pId) internal whenNotPause {
PoolInfo memory pool = pools[_pId];
UserInfo storage userInfo = userInfos[_user][_pId];
uint48 _timeStaked = _timeMultiplier(userInfo.lastUpdate);
uint256 _rewards = _calcRewards(
userInfo.balance,
pool.apr[0],
_timeStaked
);
uint256 _bonus = _calcRewards(
userInfo.balance,
pool.apr[1],
_timeStaked
);
userInfo.rewards += _rewards;
userInfo.bonus += _bonus;
userInfo.lastUpdate = uint48(block.timestamp);
}
function pendingRewards(
address _user,
uint16 _pId
) public view returns (uint256 rewards, uint256 bonus) {
return _calculateRewards(_user, _pId);
}
function pendingAllRewards(
address _user
) public view returns (uint256 rewards, uint256 bonus) {
for (uint16 i = 0; i < pools.length; i++) {
(uint _rewards, uint _bonus) = _calculateRewards(_user, i);
rewards += _rewards;
bonus += _bonus;
}
}
function _calculateRewards(
address _user,
uint16 _pId
) internal view returns (uint256 rewards, uint256 bonus) {
UserInfo memory userInfo = userInfos[_user][_pId];
PoolInfo memory pool = pools[_pId];
uint48 _timeStaked = _timeMultiplier(userInfo.lastUpdate);
uint256 _rewards = _calcRewards(
userInfo.balance,
pool.apr[0],
_timeStaked
);
uint256 _bonus = _calcRewards(
userInfo.balance,
pool.apr[1],
_timeStaked
);
rewards = userInfo.rewards + _rewards;
bonus = userInfo.bonus + _bonus;
}
function withdrawTokens(
address _token,
uint256 _amount
) external onlyOwner {
IERC20 token = IERC20(_token);
token.safeTransfer(
_msgSender(),
_amount == 0 ? token.balanceOf(address(this)) : _amount
);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.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: UNLICENSED
pragma solidity ^0.8.22;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IwXBLToken {
function convert(address user, uint256 amount) external;
}
abstract contract PoolFactory is Ownable {
uint256 internal constant SECONDS_PER_YEAR = 31_536_000;
uint256 internal constant FACTOR_SCALE = 1e18;
IERC20 immutable XBL;
IERC20 immutable wXBL;
struct PoolInfo {
uint256 min; // minimun stake per user
uint256 cap; // maximum capacity pool
uint48 lockPeriod; // lock seconds
uint32[2] apr; // 10000 = 10%
uint16 fee; // 10 = 10%
bool active;
}
PoolInfo[] pools;
bool paused;
modifier whenNotPause() {
require(!paused, "Paused");
_;
}
constructor(IERC20 _xbl, IERC20 _wxbl) {
XBL = _xbl;
wXBL = _wxbl;
}
function getPoolLength() external view returns(uint256) {
return pools.length;
}
function getPool(uint16 _pId) external view returns(PoolInfo memory) {
return pools[_pId];
}
function addPool(uint256 _min, uint256 _cap, uint48 _lockPeriod, uint16 _fee, uint32[2] memory _apr) external onlyOwner {
pools.push(
PoolInfo({
min: _min,
cap: _cap,
fee: _fee,
lockPeriod: _lockPeriod,
apr: _apr,
active: true
})
);
}
enum POOL_SET { MIN, CAP, APR, S_APR, FEE, LOCK_PERIOD }
function setPool(uint16 _pId, POOL_SET _set, uint256 _value) external onlyOwner {
PoolInfo storage pool = pools[_pId];
if(_set == POOL_SET.MIN) { // 0
pool.min = _value;
} else if(_set == POOL_SET.CAP) { // 1
pool.cap = _value;
} else if(_set == POOL_SET.FEE) { // 2
pool.fee = uint16(_value);
} else if(_set == POOL_SET.LOCK_PERIOD) { // 3
pool.lockPeriod = uint48(_value);
} else if(_set == POOL_SET.APR) { // 4
pool.apr[0] = uint32(_value);
} else if(_set == POOL_SET.S_APR) { // 5
pool.apr[1] = uint32(_value);
}
}
function setPaused(bool _active) external onlyOwner {
paused = _active;
}
function setPoolActive(uint16 _pId, bool _active) external onlyOwner {
pools[_pId].active = _active;
}
/** Converts an annual percentage rate (APR) to a per-second rate. */
function _convertRatePerSecond(uint256 _apr) internal pure returns (uint256) {
return (_apr * FACTOR_SCALE / 1000) / SECONDS_PER_YEAR;
}
function _calcRewards(uint256 _amount, uint32 _apr, uint48 _timeStaked) internal pure returns(uint256) {
return (_amount * _convertRatePerSecond(_apr) / FACTOR_SCALE) * _timeStaked;
}
function _timeMultiplier(uint256 from) internal view returns (uint48) {
return uint48(from == 0 ? 0 : block.timestamp - from);
}
function _collectWXBL(uint256 _amount) internal {
IwXBLToken(address(wXBL)).convert(address(this), _amount);
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_xbl","type":"address"},{"internalType":"contract IERC20","name":"_wxbl","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"ClaimReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint48","name":"_lockPeriod","type":"uint48"},{"internalType":"uint16","name":"_fee","type":"uint16"},{"internalType":"uint32[2]","name":"_apr","type":"uint32[2]"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pId","type":"uint16"}],"name":"getPool","outputs":[{"components":[{"internalType":"uint256","name":"min","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint48","name":"lockPeriod","type":"uint48"},{"internalType":"uint32[2]","name":"apr","type":"uint32[2]"},{"internalType":"uint16","name":"fee","type":"uint16"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct PoolFactory.PoolInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPoolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pId","type":"uint16"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingAllRewards","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint16","name":"_pId","type":"uint16"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"poolStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pId","type":"uint16"},{"internalType":"enum PoolFactory.POOL_SET","name":"_set","type":"uint8"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pId","type":"uint16"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setPoolActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pId","type":"uint16"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint16","name":"_pId","type":"uint16"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_pId","type":"uint16"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint48","name":"stakedTime","type":"uint48"},{"internalType":"uint48","name":"lastUpdate","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b5060405162002033380380620020338339810160408190526200003491620000cd565b8181620000413362000060565b6001600160a01b039182166080521660a0525050600160035562000105565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000c857600080fd5b919050565b60008060408385031215620000e157600080fd5b620000ec83620000b0565b9150620000fc60208401620000b0565b90509250929050565b60805160a051611eec62000147600039600081816114aa01526116a6015260008181610886015281816108b20152818161102a01526114670152611eec6000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063888cd469116100ad578063b3944d5211610071578063b3944d52146102dd578063beaae15b146102e5578063d8876057146102f8578063e619b6e01461030b578063f2fde38b1461031e57600080fd5b8063888cd469146102665780638da5cb5b146102795780638e09136f146102945780638ed955b9146102a7578063b1611bfd146102af57600080fd5b8063596565df116100f4578063596565df1461018a5780636f76184514610210578063715018a6146102235780637d97a7d61461022b578063863ed73d1461025357600080fd5b806306b091f91461012657806316c38b3c1461013b5780632ca72dbe1461014e5780632ce1266914610161575b600080fd5b6101396101343660046119f4565b610331565b005b610139610149366004611a2c565b6103c8565b61013961015c366004611a62565b6103e3565b61017461016f366004611a99565b61042f565b6040516101819190611ab4565b60405180910390f35b6101dd610198366004611b35565b600460209081526000928352604080842090915290825290208054600182015460028301546003909301549192909165ffffffffffff80821691600160301b90041685565b6040805195865260208601949094529284019190915265ffffffffffff908116606084015216608082015260a001610181565b61013961021e366004611b68565b610516565b61013961066d565b61023e610239366004611b35565b610681565b60408051928352602083019190915201610181565b610139610261366004611bab565b610699565b610139610274366004611bab565b6106a8565b6000546040516001600160a01b039091168152602001610181565b61023e6102a2366004611bc7565b610924565b61013961097d565b6102cf6102bd366004611a99565b60056020526000908152604090205481565b604051908152602001610181565b6001546102cf565b6101396102f3366004611be2565b6109be565b610139610306366004611a99565b6109c9565b610139610319366004611c48565b6109e7565b61013961032c366004611bc7565b610b32565b610339610bad565b816103c333831561034a57836103b2565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561038e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b29190611d11565b6001600160a01b0384169190610c07565b505050565b6103d0610bad565b6002805460ff1916911515919091179055565b6103eb610bad565b8060018361ffff168154811061040357610403611d2a565b906000526020600020906005020160040160026101000a81548160ff0219169083151502179055505050565b6104376118c5565b60018261ffff168154811061044e5761044e611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116104ab575050509284525050506004919091015461ffff8116602083015262010000900460ff16151560409091015292915050565b61051e610bad565b600060018461ffff168154811061053757610537611d2a565b600091825260208220600590910201915083600581111561055a5761055a611d40565b0361056757818155610667565b600183600581111561057b5761057b611d40565b0361058c5760018101829055610667565b60048360058111156105a0576105a0611d40565b036105bd5760048101805461ffff191661ffff8416179055610667565b60058360058111156105d1576105d1611d40565b036105f65760028101805465ffffffffffff191665ffffffffffff8416179055610667565b600283600581111561060a5761060a611d40565b0361062b5760038101805463ffffffff191663ffffffff8416179055610667565b600383600581111561063f5761063f611d40565b036106675760038101805467ffffffff00000000191664010000000063ffffffff8516021790555b50505050565b610675610bad565b61067f6000610c6a565b565b60008061068e8484610cba565b915091509250929050565b6106a4338383610e8e565b5050565b6106b06111c0565b600060018361ffff16815481106106c9576106c9611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116107265750505092845250505060049182015461ffff8082166020808501919091526201000090920460ff1615156040938401523360009081529382528284209088168452905290208054919250908311156107b757600080fd5b6107c13385611219565b604082015160038201546000916107df9165ffffffffffff16611d6c565b65ffffffffffff16421161081d576064836080015160646108009190611d8b565b61080e9061ffff1686611da6565b6108189190611dbd565b61081f565b835b9050600061082d8286611ddf565b61ffff8716600090815260056020526040812080549293508792909190610855908490611ddf565b909155505082548590849060009061086e908490611ddf565b909155505080156108ad576108ad6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163083610c07565b6108e17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163384610c07565b60405185815233907f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd9060200160405180910390a2505050506106a46001600355565b60008060005b60015461ffff82161015610977576000806109458684610cba565b90925090506109548286611df2565b94506109608185611df2565b93505050808061096f90611e05565b91505061092a565b50915091565b6109856111c0565b60005b60015461ffff821610156109b3576109a1335b8261140c565b806109ab81611e05565b915050610988565b5061067f6001600355565b6103c3838383610e8e565b6109d16111c0565b6109da3361099b565b6109e46001600355565b50565b6109ef610bad565b6040805160c0810182528681526020810186815265ffffffffffff8087169383019384526060830185815261ffff87166080850152600160a0850181905280548082018255600091909152845160059091027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6810191825593517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf785015594517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf8840180549190931665ffffffffffff199091161790915551919291610af9917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf901906002611909565b5060808201516004909101805460a0909301511515620100000262ffffff1990931661ffff909216919091179190911790555050505050565b610b3a610bad565b6001600160a01b038116610ba45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6109e481610c6a565b6000546001600160a01b0316331461067f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9b565b6040516001600160a01b0383166024820152604481018290526103c390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611514565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216600090815260046020908152604080832061ffff8516808552908352818420825160a08101845281548152600180830154958201959095526002820154938101939093526003015465ffffffffffff8082166060850152600160301b90910416608083015282548493849290918110610d3f57610d3f611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411610d9c575050509284525050506004919091015461ffff8116602083015262010000900460ff1615156040909101526080830151909150600090610e1d9065ffffffffffff166115e9565b83516060840151919250600091610e3c9190835b602002015184611609565b84516060850151919250600091610e5c919060015b602002015185611609565b9050818560200151610e6e9190611df2565b9650808560400151610e809190611df2565b955050505050509250929050565b610e966111c0565b600060018361ffff1681548110610eaf57610eaf611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411610f0c5750505092845250505060049182015461ffff8082166020808501919091526201000090920460ff1615156040938401526001600160a01b038916600090815293825282842090881684529052902090915082610fdb5760405162461bcd60e51b81526020600482015260146024820152735374616b696e673a20616d6f756e74207a65726f60601b6044820152606401610b9b565b8160a001516110255760405162461bcd60e51b81526020600482015260166024820152755374616b696e673a20706f6f6c20696e61637469766560501b6044820152606401610b9b565b61105a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316333086611652565b6110648585611219565b828160000160008282546110789190611df2565b909155505060038101805465ffffffffffff19164265ffffffffffff161790558151815410156110de5760405162461bcd60e51b815260206004820152601160248201527029ba30b5b4b7339d103837b7b61036b4b760791b6044820152606401610b9b565b61ffff841660009081526005602052604081208054859290611101908490611df2565b90915550506020820151156111715760208083015161ffff86166000908152600590925260409091205411156111715760405162461bcd60e51b81526020600482015260156024820152745374616b696e673a206d617820636170616369747960581b6044820152606401610b9b565b846001600160a01b03167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a846040516111ac91815260200190565b60405180910390a250506103c36001600355565b6002600354036112125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b9b565b6002600355565b60025460ff16156112555760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610b9b565b600060018261ffff168154811061126e5761126e611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116112cb5750505092845250505060049182015461ffff8082166020808501919091526201000090920460ff1615156040938401526001600160a01b038816600090815293825282842090871684529052812060038101549293509161137490600160301b900465ffffffffffff166115e9565b8254606085015191925060009161138c919083610e31565b835460608601519192506000916113a591906001610e51565b9050818460010160008282546113bb9190611df2565b92505081905550808460020160008282546113d69190611df2565b9091555050505060039190910180546bffffffffffff0000000000001916600160301b4265ffffffffffff160217905550505050565b6114168282611219565b6001600160a01b038216600090815260046020908152604080832061ffff8516845290915281206001810180546002830180549285905593909355909190811561148e5761148e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168684610c07565b80156114d15761149d8161168a565b6114d16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168683610c07565b6040516001600160a01b03861681527f63e32091e4445d16e29c33a6b264577c2d86694021aa4e6f4dd590048f5792e89060200160405180910390a15050505050565b6000611569826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661170d9092919063ffffffff16565b905080516000148061158a57508080602001905181019061158a9190611e26565b6103c35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b9b565b60008115611600576115fb8242611ddf565b611603565b60005b92915050565b60008165ffffffffffff16670de0b6b3a764000061162c8563ffffffff1661171c565b6116369087611da6565b6116409190611dbd565b61164a9190611da6565b949350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526106679085906323b872dd60e01b90608401610c33565b6040516319f1b8e760e21b8152306004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367c6e39c90604401600060405180830381600087803b1580156116f257600080fd5b505af1158015611706573d6000803e3d6000fd5b5050505050565b606061164a848460008561174c565b60006301e133806103e8611738670de0b6b3a764000085611da6565b6117429190611dbd565b6116039190611dbd565b6060824710156117ad5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b9b565b600080866001600160a01b031685876040516117c99190611e67565b60006040518083038185875af1925050503d8060008114611806576040519150601f19603f3d011682016040523d82523d6000602084013e61180b565b606091505b509150915061181c87838387611827565b979650505050505050565b6060831561189657825160000361188f576001600160a01b0385163b61188f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b9b565b508161164a565b61164a83838151156118ab5781518083602001fd5b8060405162461bcd60e51b8152600401610b9b9190611e83565b6040518060c001604052806000815260200160008152602001600065ffffffffffff1681526020016118f56119a5565b815260006020820181905260409091015290565b6001830191839082156119955791602002820160005b8382111561196357835183826101000a81548163ffffffff021916908363ffffffff160217905550926020019260040160208160030104928301926001030261191f565b80156119935782816101000a81549063ffffffff0219169055600401602081600301049283019260010302611963565b505b506119a19291506119c3565b5090565b60405180604001604052806002906020820280368337509192915050565b5b808211156119a157600081556001016119c4565b80356001600160a01b03811681146119ef57600080fd5b919050565b60008060408385031215611a0757600080fd5b611a10836119d8565b946020939093013593505050565b80151581146109e457600080fd5b600060208284031215611a3e57600080fd5b8135611a4981611a1e565b9392505050565b803561ffff811681146119ef57600080fd5b60008060408385031215611a7557600080fd5b611a7e83611a50565b91506020830135611a8e81611a1e565b809150509250929050565b600060208284031215611aab57600080fd5b611a4982611a50565b600060e08201905082518252602080840151602084015265ffffffffffff604085015116604084015260608401516060840160005b6002811015611b0c57825163ffffffff1682529183019190830190600101611ae9565b50505050608083015161ffff811660a08401525060a083015180151560c08401525b5092915050565b60008060408385031215611b4857600080fd5b611b51836119d8565b9150611b5f60208401611a50565b90509250929050565b600080600060608486031215611b7d57600080fd5b611b8684611a50565b9250602084013560068110611b9a57600080fd5b929592945050506040919091013590565b60008060408385031215611bbe57600080fd5b611a1083611a50565b600060208284031215611bd957600080fd5b611a49826119d8565b600080600060608486031215611bf757600080fd5b611c00846119d8565b9250611c0e60208501611a50565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b803563ffffffff811681146119ef57600080fd5b600080600080600060c08688031215611c6057600080fd5b853594506020808701359450604087013565ffffffffffff81168114611c8557600080fd5b9350611c9360608801611a50565b925087609f880112611ca457600080fd5b6040516040810181811067ffffffffffffffff82111715611cc757611cc7611c1e565b6040528060c089018a811115611cdc57600080fd5b60808a015b81811015611cff57611cf281611c34565b8352918401918401611ce1565b50505080925050509295509295909350565b600060208284031215611d2357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b65ffffffffffff818116838216019080821115611b2e57611b2e611d56565b61ffff828116828216039080821115611b2e57611b2e611d56565b808202811582820484141761160357611603611d56565b600082611dda57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561160357611603611d56565b8082018082111561160357611603611d56565b600061ffff808316818103611e1c57611e1c611d56565b6001019392505050565b600060208284031215611e3857600080fd5b8151611a4981611a1e565b60005b83811015611e5e578181015183820152602001611e46565b50506000910152565b60008251611e79818460208701611e43565b9190910192915050565b6020815260008251806020840152611ea2816040850160208701611e43565b601f01601f1916919091016040019291505056fea264697066735822122026f82fd2c2925b3364c7e1a331ee861beab1a39689d109d7f46a14c5a2de343064736f6c63430008180033000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb59000000000000000000000000e6c4c7c0b9b7089b70752cdb5024a30b16fa772d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063888cd469116100ad578063b3944d5211610071578063b3944d52146102dd578063beaae15b146102e5578063d8876057146102f8578063e619b6e01461030b578063f2fde38b1461031e57600080fd5b8063888cd469146102665780638da5cb5b146102795780638e09136f146102945780638ed955b9146102a7578063b1611bfd146102af57600080fd5b8063596565df116100f4578063596565df1461018a5780636f76184514610210578063715018a6146102235780637d97a7d61461022b578063863ed73d1461025357600080fd5b806306b091f91461012657806316c38b3c1461013b5780632ca72dbe1461014e5780632ce1266914610161575b600080fd5b6101396101343660046119f4565b610331565b005b610139610149366004611a2c565b6103c8565b61013961015c366004611a62565b6103e3565b61017461016f366004611a99565b61042f565b6040516101819190611ab4565b60405180910390f35b6101dd610198366004611b35565b600460209081526000928352604080842090915290825290208054600182015460028301546003909301549192909165ffffffffffff80821691600160301b90041685565b6040805195865260208601949094529284019190915265ffffffffffff908116606084015216608082015260a001610181565b61013961021e366004611b68565b610516565b61013961066d565b61023e610239366004611b35565b610681565b60408051928352602083019190915201610181565b610139610261366004611bab565b610699565b610139610274366004611bab565b6106a8565b6000546040516001600160a01b039091168152602001610181565b61023e6102a2366004611bc7565b610924565b61013961097d565b6102cf6102bd366004611a99565b60056020526000908152604090205481565b604051908152602001610181565b6001546102cf565b6101396102f3366004611be2565b6109be565b610139610306366004611a99565b6109c9565b610139610319366004611c48565b6109e7565b61013961032c366004611bc7565b610b32565b610339610bad565b816103c333831561034a57836103b2565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa15801561038e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b29190611d11565b6001600160a01b0384169190610c07565b505050565b6103d0610bad565b6002805460ff1916911515919091179055565b6103eb610bad565b8060018361ffff168154811061040357610403611d2a565b906000526020600020906005020160040160026101000a81548160ff0219169083151502179055505050565b6104376118c5565b60018261ffff168154811061044e5761044e611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116104ab575050509284525050506004919091015461ffff8116602083015262010000900460ff16151560409091015292915050565b61051e610bad565b600060018461ffff168154811061053757610537611d2a565b600091825260208220600590910201915083600581111561055a5761055a611d40565b0361056757818155610667565b600183600581111561057b5761057b611d40565b0361058c5760018101829055610667565b60048360058111156105a0576105a0611d40565b036105bd5760048101805461ffff191661ffff8416179055610667565b60058360058111156105d1576105d1611d40565b036105f65760028101805465ffffffffffff191665ffffffffffff8416179055610667565b600283600581111561060a5761060a611d40565b0361062b5760038101805463ffffffff191663ffffffff8416179055610667565b600383600581111561063f5761063f611d40565b036106675760038101805467ffffffff00000000191664010000000063ffffffff8516021790555b50505050565b610675610bad565b61067f6000610c6a565b565b60008061068e8484610cba565b915091509250929050565b6106a4338383610e8e565b5050565b6106b06111c0565b600060018361ffff16815481106106c9576106c9611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116107265750505092845250505060049182015461ffff8082166020808501919091526201000090920460ff1615156040938401523360009081529382528284209088168452905290208054919250908311156107b757600080fd5b6107c13385611219565b604082015160038201546000916107df9165ffffffffffff16611d6c565b65ffffffffffff16421161081d576064836080015160646108009190611d8b565b61080e9061ffff1686611da6565b6108189190611dbd565b61081f565b835b9050600061082d8286611ddf565b61ffff8716600090815260056020526040812080549293508792909190610855908490611ddf565b909155505082548590849060009061086e908490611ddf565b909155505080156108ad576108ad6001600160a01b037f000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb59163083610c07565b6108e17f000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb596001600160a01b03163384610c07565b60405185815233907f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd9060200160405180910390a2505050506106a46001600355565b60008060005b60015461ffff82161015610977576000806109458684610cba565b90925090506109548286611df2565b94506109608185611df2565b93505050808061096f90611e05565b91505061092a565b50915091565b6109856111c0565b60005b60015461ffff821610156109b3576109a1335b8261140c565b806109ab81611e05565b915050610988565b5061067f6001600355565b6103c3838383610e8e565b6109d16111c0565b6109da3361099b565b6109e46001600355565b50565b6109ef610bad565b6040805160c0810182528681526020810186815265ffffffffffff8087169383019384526060830185815261ffff87166080850152600160a0850181905280548082018255600091909152845160059091027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6810191825593517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf785015594517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf8840180549190931665ffffffffffff199091161790915551919291610af9917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf901906002611909565b5060808201516004909101805460a0909301511515620100000262ffffff1990931661ffff909216919091179190911790555050505050565b610b3a610bad565b6001600160a01b038116610ba45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6109e481610c6a565b6000546001600160a01b0316331461067f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9b565b6040516001600160a01b0383166024820152604481018290526103c390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611514565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216600090815260046020908152604080832061ffff8516808552908352818420825160a08101845281548152600180830154958201959095526002820154938101939093526003015465ffffffffffff8082166060850152600160301b90910416608083015282548493849290918110610d3f57610d3f611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411610d9c575050509284525050506004919091015461ffff8116602083015262010000900460ff1615156040909101526080830151909150600090610e1d9065ffffffffffff166115e9565b83516060840151919250600091610e3c9190835b602002015184611609565b84516060850151919250600091610e5c919060015b602002015185611609565b9050818560200151610e6e9190611df2565b9650808560400151610e809190611df2565b955050505050509250929050565b610e966111c0565b600060018361ffff1681548110610eaf57610eaf611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff1681526020019060040190602082600301049283019260010382029150808411610f0c5750505092845250505060049182015461ffff8082166020808501919091526201000090920460ff1615156040938401526001600160a01b038916600090815293825282842090881684529052902090915082610fdb5760405162461bcd60e51b81526020600482015260146024820152735374616b696e673a20616d6f756e74207a65726f60601b6044820152606401610b9b565b8160a001516110255760405162461bcd60e51b81526020600482015260166024820152755374616b696e673a20706f6f6c20696e61637469766560501b6044820152606401610b9b565b61105a7f000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb596001600160a01b0316333086611652565b6110648585611219565b828160000160008282546110789190611df2565b909155505060038101805465ffffffffffff19164265ffffffffffff161790558151815410156110de5760405162461bcd60e51b815260206004820152601160248201527029ba30b5b4b7339d103837b7b61036b4b760791b6044820152606401610b9b565b61ffff841660009081526005602052604081208054859290611101908490611df2565b90915550506020820151156111715760208083015161ffff86166000908152600590925260409091205411156111715760405162461bcd60e51b81526020600482015260156024820152745374616b696e673a206d617820636170616369747960581b6044820152606401610b9b565b846001600160a01b03167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a846040516111ac91815260200190565b60405180910390a250506103c36001600355565b6002600354036112125760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b9b565b6002600355565b60025460ff16156112555760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610b9b565b600060018261ffff168154811061126e5761126e611d2a565b600091825260208083206040805160c0810182526005949094029091018054845260018101549284019290925260028083015465ffffffffffff168483015281518083019283905293949293606086019390926003860192918390855b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116112cb5750505092845250505060049182015461ffff8082166020808501919091526201000090920460ff1615156040938401526001600160a01b038816600090815293825282842090871684529052812060038101549293509161137490600160301b900465ffffffffffff166115e9565b8254606085015191925060009161138c919083610e31565b835460608601519192506000916113a591906001610e51565b9050818460010160008282546113bb9190611df2565b92505081905550808460020160008282546113d69190611df2565b9091555050505060039190910180546bffffffffffff0000000000001916600160301b4265ffffffffffff160217905550505050565b6114168282611219565b6001600160a01b038216600090815260046020908152604080832061ffff8516845290915281206001810180546002830180549285905593909355909190811561148e5761148e6001600160a01b037f000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb59168684610c07565b80156114d15761149d8161168a565b6114d16001600160a01b037f000000000000000000000000e6c4c7c0b9b7089b70752cdb5024a30b16fa772d168683610c07565b6040516001600160a01b03861681527f63e32091e4445d16e29c33a6b264577c2d86694021aa4e6f4dd590048f5792e89060200160405180910390a15050505050565b6000611569826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661170d9092919063ffffffff16565b905080516000148061158a57508080602001905181019061158a9190611e26565b6103c35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b9b565b60008115611600576115fb8242611ddf565b611603565b60005b92915050565b60008165ffffffffffff16670de0b6b3a764000061162c8563ffffffff1661171c565b6116369087611da6565b6116409190611dbd565b61164a9190611da6565b949350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526106679085906323b872dd60e01b90608401610c33565b6040516319f1b8e760e21b8152306004820152602481018290527f000000000000000000000000e6c4c7c0b9b7089b70752cdb5024a30b16fa772d6001600160a01b0316906367c6e39c90604401600060405180830381600087803b1580156116f257600080fd5b505af1158015611706573d6000803e3d6000fd5b5050505050565b606061164a848460008561174c565b60006301e133806103e8611738670de0b6b3a764000085611da6565b6117429190611dbd565b6116039190611dbd565b6060824710156117ad5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b9b565b600080866001600160a01b031685876040516117c99190611e67565b60006040518083038185875af1925050503d8060008114611806576040519150601f19603f3d011682016040523d82523d6000602084013e61180b565b606091505b509150915061181c87838387611827565b979650505050505050565b6060831561189657825160000361188f576001600160a01b0385163b61188f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b9b565b508161164a565b61164a83838151156118ab5781518083602001fd5b8060405162461bcd60e51b8152600401610b9b9190611e83565b6040518060c001604052806000815260200160008152602001600065ffffffffffff1681526020016118f56119a5565b815260006020820181905260409091015290565b6001830191839082156119955791602002820160005b8382111561196357835183826101000a81548163ffffffff021916908363ffffffff160217905550926020019260040160208160030104928301926001030261191f565b80156119935782816101000a81549063ffffffff0219169055600401602081600301049283019260010302611963565b505b506119a19291506119c3565b5090565b60405180604001604052806002906020820280368337509192915050565b5b808211156119a157600081556001016119c4565b80356001600160a01b03811681146119ef57600080fd5b919050565b60008060408385031215611a0757600080fd5b611a10836119d8565b946020939093013593505050565b80151581146109e457600080fd5b600060208284031215611a3e57600080fd5b8135611a4981611a1e565b9392505050565b803561ffff811681146119ef57600080fd5b60008060408385031215611a7557600080fd5b611a7e83611a50565b91506020830135611a8e81611a1e565b809150509250929050565b600060208284031215611aab57600080fd5b611a4982611a50565b600060e08201905082518252602080840151602084015265ffffffffffff604085015116604084015260608401516060840160005b6002811015611b0c57825163ffffffff1682529183019190830190600101611ae9565b50505050608083015161ffff811660a08401525060a083015180151560c08401525b5092915050565b60008060408385031215611b4857600080fd5b611b51836119d8565b9150611b5f60208401611a50565b90509250929050565b600080600060608486031215611b7d57600080fd5b611b8684611a50565b9250602084013560068110611b9a57600080fd5b929592945050506040919091013590565b60008060408385031215611bbe57600080fd5b611a1083611a50565b600060208284031215611bd957600080fd5b611a49826119d8565b600080600060608486031215611bf757600080fd5b611c00846119d8565b9250611c0e60208501611a50565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b803563ffffffff811681146119ef57600080fd5b600080600080600060c08688031215611c6057600080fd5b853594506020808701359450604087013565ffffffffffff81168114611c8557600080fd5b9350611c9360608801611a50565b925087609f880112611ca457600080fd5b6040516040810181811067ffffffffffffffff82111715611cc757611cc7611c1e565b6040528060c089018a811115611cdc57600080fd5b60808a015b81811015611cff57611cf281611c34565b8352918401918401611ce1565b50505080925050509295509295909350565b600060208284031215611d2357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b65ffffffffffff818116838216019080821115611b2e57611b2e611d56565b61ffff828116828216039080821115611b2e57611b2e611d56565b808202811582820484141761160357611603611d56565b600082611dda57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561160357611603611d56565b8082018082111561160357611603611d56565b600061ffff808316818103611e1c57611e1c611d56565b6001019392505050565b600060208284031215611e3857600080fd5b8151611a4981611a1e565b60005b83811015611e5e578181015183820152602001611e46565b50506000910152565b60008251611e79818460208701611e43565b9190910192915050565b6020815260008251806020840152611ea2816040850160208701611e43565b601f01601f1916919091016040019291505056fea264697066735822122026f82fd2c2925b3364c7e1a331ee861beab1a39689d109d7f46a14c5a2de343064736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb59000000000000000000000000e6c4c7c0b9b7089b70752cdb5024a30b16fa772d
-----Decoded View---------------
Arg [0] : _xbl (address): 0xA3Ab90c49C2e7C873fB047d30Cef87464Ba1cB59
Arg [1] : _wxbl (address): 0xE6C4C7C0b9B7089b70752Cdb5024A30b16Fa772d
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a3ab90c49c2e7c873fb047d30cef87464ba1cb59
Arg [1] : 000000000000000000000000e6c4c7c0b9b7089b70752cdb5024a30b16fa772d
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.