Source Code
Latest 25 from a total of 10,310 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| LP Convert | 99124261 | 2 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99122674 | 3 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99120949 | 4 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99119195 | 5 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99117534 | 6 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99115797 | 7 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99114037 | 8 hrs ago | IN | 0 XDC | 0.00278798 | ||||
| LP Convert | 99112350 | 9 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99110611 | 10 hrs ago | IN | 0 XDC | 0.00265523 | ||||
| LP Convert | 99108831 | 11 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99107090 | 12 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99105109 | 13 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99103331 | 14 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99101597 | 15 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99097654 | 18 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99095874 | 19 hrs ago | IN | 0 XDC | 0.00301142 | ||||
| LP Convert | 99094398 | 20 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99092883 | 21 hrs ago | IN | 0 XDC | 0.00273487 | ||||
| LP Convert | 99090608 | 22 hrs ago | IN | 0 XDC | 0.00268881 | ||||
| LP Convert | 99083607 | 26 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99081860 | 27 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99080177 | 28 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99077903 | 29 hrs ago | IN | 0 XDC | 0.00265522 | ||||
| LP Convert | 99076243 | 31 hrs ago | IN | 0 XDC | 0.00319157 | ||||
| LP Convert | 99074799 | 32 hrs ago | IN | 0 XDC | 0.00323936 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
NexusDiffuser
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Uniswap/Interfaces/IUniswapV2Factory.sol";
import "./Uniswap/Interfaces/IUniswapV2Pair.sol";
contract NexusDiffuser is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IUniswapV2Factory public immutable factory;
address public immutable nexus;
address public immutable weth;
address public nexusTreasurySetter;
address public multiStakingGetter;
mapping(address => bool) public convertLpToBurnNxs;
uint256 public MIN_LP_AMOUNT = 3 * 10 ** 15;
uint256 public limit_gas = 160000;
uint256 public nexusTreasuryTotalAmount = 0;
uint256 public nexusMultiStakingTotalAmount = 0;
uint256 public nexusBurnTotalAmount = 0;
uint256 public nexusTotalAmount = 0;
bool private onlyNexusLp = true;
// V1 - V5: OK
mapping(address => address) internal _bridges;
// E1: OK
event LogBridgeSet(address indexed token, address indexed bridge);
// E1: OK
event LogConvert(
address indexed server,
address indexed token0,
address indexed token1,
uint256 amount0,
uint256 amount1,
uint256 amountNXS
);
event DiffuserConvert(uint256 amountNXS);
event TreasuryConvert(uint256 amountNXS);
event BurnConvert(uint256 amountNXS);
event NexusBurnerConvert(uint256 amountNXS);
event MultiStakingConvert(uint256 amountNXS);
event TotalConvert(uint256 amountNXS);
address public nexusTreasury;
address public constant deadAddress =
0x000000000000000000000000000000000000dEaD;
modifier onlyHolder() {
require(IERC20(nexus).balanceOf(msg.sender) > 0, "should hold nexus");
_;
}
constructor(address _factory, address _nexus, address _weth) {
factory = IUniswapV2Factory(_factory);
nexus = _nexus;
weth = _weth;
nexusTreasurySetter = address(msg.sender);
}
function bridgeFor(address token) public view returns (address bridge) {
bridge = _bridges[token];
if (bridge == address(0)) {
bridge = weth;
}
}
function setBridge(address token, address bridge) external onlyOwner {
// Checks
require(
token != nexus && token != weth && token != bridge,
"NexusDiffuser: Invalid bridge"
);
// Effects
_bridges[token] = bridge;
emit LogBridgeSet(token, bridge);
}
function setMinLPAmount(uint256 _amount) external onlyOwner {
MIN_LP_AMOUNT = _amount;
}
function setGasLimit(uint256 _limit_gas) external onlyOwner {
limit_gas = _limit_gas;
}
function setNexusLPEnable(bool _onlyNexusLp) external onlyOwner {
onlyNexusLp = _onlyNexusLp;
}
// C6: It's not a fool proof solution, but it prevents flash loans, so here it's ok to use tx.origin
modifier onlyEOA() {
// Try to make flash-loan exploit harder to do by only allowing externally owned addresses.
require(msg.sender == tx.origin, "NexusDiffuser: must use EOA");
_;
}
function LPConvert() external onlyEOA onlyHolder {
uint256 len = factory.allPairsLength();
uint256 gasUsed = 0;
uint256 gasLeft = gasleft();
uint256 iterations = 0;
while (gasUsed < limit_gas && iterations < len) {
IUniswapV2Pair pair = IUniswapV2Pair(factory.allPairs(iterations));
uint256 lpBalance = pair.balanceOf(address(this));
if (lpBalance > MIN_LP_AMOUNT) {
if (convertLpToBurnNxs[address(pair)]) {
if (onlyNexusLp) {
if (
pair.token0() == nexus ||
pair.token0() == weth ||
pair.token1() == nexus ||
pair.token1() == weth
) {
_convert(pair.token0(), pair.token1());
}
} else {
_convert(pair.token0(), pair.token1());
}
} else {
IERC20(address(pair)).safeTransfer(
multiStakingGetter,
pair.balanceOf(address(this))
);
}
}
iterations++;
uint256 newGasLeft = gasleft();
if (gasLeft > newGasLeft) {
gasUsed = gasUsed.add(gasLeft.sub(newGasLeft));
}
gasLeft = newGasLeft;
}
}
function LPEnalbe() external view returns (bool) {
uint256 len = factory.allPairsLength();
for (uint256 i = 0; i < len; i++) {
IUniswapV2Pair pair = IUniswapV2Pair(factory.allPairs(i));
uint256 lpBalance = pair.balanceOf(address(this));
if (lpBalance > MIN_LP_AMOUNT) {
if (onlyNexusLp) {
if (
pair.token0() == nexus ||
pair.token0() == weth ||
pair.token1() == nexus ||
pair.token1() == weth
) {
return true;
}
} else {
return true;
}
}
}
return false;
}
// F1 - F10: OK
// F3: _convert is separate to save gas by only checking the 'onlyEOA' modifier once in case of convertMultiple
// F6: There is an exploit to add lots of NXS to the xNexus, run convert, then remove the NXS again.
// As the size of the xNexus has grown, this requires large amounts of funds and isn't super profitable anymore
// The onlyEOA modifier prevents this being done with a flash loan.
// C1 - C24: OK
function convert(
address token0,
address token1
) external onlyEOA onlyHolder {
_convert(token0, token1);
}
// F1 - F10: OK, see convert
// C1 - C24: OK
// C3: Loop is under control of the caller
function convertMultiple(
address[] calldata token0,
address[] calldata token1
) external onlyEOA onlyHolder {
// TODO: This can be optimized a fair bit, but this is safer and simpler for now
require(token0.length == token1.length, "Not same length");
uint256 len = token0.length;
for (uint256 i = 0; i < len; i++) {
_convert(token0[i], token1[i]);
}
}
function _convert(address token0, address token1) internal {
// Interactions
IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(token0, token1));
require(address(pair) != address(0), "NexusDiffuser: Invalid pair");
IERC20(address(pair)).safeTransfer(
address(pair),
pair.balanceOf(address(this))
);
(uint256 amount0, uint256 amount1) = pair.burn(address(this));
if (token0 != pair.token0()) {
(amount0, amount1) = (amount1, amount0);
}
emit LogConvert(
msg.sender,
token0,
token1,
amount0,
amount1,
_convertStep(token0, token1, amount0, amount1)
);
}
// All safeTransfer, _swap, _toNXS, _convertStep
function _convertStep(
address token0,
address token1,
uint256 amount0,
uint256 amount1
) internal returns (uint256 nexusOut) {
// Interactions
if (token0 == token1) {
uint256 amount = amount0.add(amount1);
if (token0 == nexus) {
IERC20(nexus).safeTransfer(deadAddress, amount);
nexusOut = amount;
} else if (token0 == weth) {
nexusOut = _toNXS(weth, amount);
} else {
address bridge = bridgeFor(token0);
amount = _swap(token0, bridge, amount, address(this));
nexusOut = _convertStep(bridge, bridge, amount, 0);
}
} else if (token0 == nexus) {
// eg. NXS - ETH
IERC20(nexus).safeTransfer(deadAddress, amount0);
nexusOut = _toNXS(token1, amount1).add(amount0);
} else if (token1 == nexus) {
// eg. USDT - NXS
IERC20(nexus).safeTransfer(deadAddress, amount1);
nexusOut = _toNXS(token0, amount0).add(amount1);
} else if (token0 == weth) {
// eg. ETH - USDC
nexusOut = _toNXS(
weth,
_swap(token1, weth, amount1, address(this)).add(amount0)
);
} else if (token1 == weth) {
// eg. USDT - ETH
nexusOut = _toNXS(
weth,
_swap(token0, weth, amount0, address(this)).add(amount1)
);
} else {
// eg. MIC - USDT
address bridge0 = bridgeFor(token0);
address bridge1 = bridgeFor(token1);
if (bridge0 == token1) {
// eg. MIC - USDT - and bridgeFor(MIC) = USDT
nexusOut = _convertStep(
bridge0,
token1,
_swap(token0, bridge0, amount0, address(this)),
amount1
);
} else if (bridge1 == token0) {
// eg. WBTC - DSD - and bridgeFor(DSD) = WBTC
nexusOut = _convertStep(
token0,
bridge1,
amount0,
_swap(token1, bridge1, amount1, address(this))
);
} else {
nexusOut = _convertStep(
bridge0,
bridge1, // eg. USDT - DSD - and bridgeFor(DSD) = WBTC
_swap(token0, bridge0, amount0, address(this)),
_swap(token1, bridge1, amount1, address(this))
);
}
}
}
// All safeTransfer, swap: X1 - X5: OK
function _swap(
address fromToken,
address toToken,
uint256 amountIn,
address to
) internal returns (uint256 amountOut) {
// Checks
IUniswapV2Pair pair = IUniswapV2Pair(
factory.getPair(fromToken, toToken)
);
require(address(pair) != address(0), "NexusDiffuser: Cannot convert");
// Interactions
(uint256 reserve0, uint256 reserve1, ) = pair.getReserves();
uint256 amountInWithFee = amountIn.mul(997);
if (fromToken == pair.token0()) {
amountOut =
amountInWithFee.mul(reserve1) /
reserve0.mul(1000).add(amountInWithFee);
IERC20(fromToken).safeTransfer(address(pair), amountIn);
try pair.swap(0, amountOut, to, new bytes(0)) {} catch (
bytes memory /** */
) {}
// TODO: Add maximum slippage?
} else {
amountOut =
amountInWithFee.mul(reserve0) /
reserve1.mul(1000).add(amountInWithFee);
IERC20(fromToken).safeTransfer(address(pair), amountIn);
try pair.swap(amountOut, 0, to, new bytes(0)) {} catch (
bytes memory /** */
) {}
// TODO: Add maximum slippage?
}
}
function _toNXS(
address token,
uint256 amountIn
) internal returns (uint256 amountOut) {
if (nexusTreasury != address(0)) {
uint256 treasuryAmount = _swap(
token,
nexus,
amountIn.div(10),
nexusTreasury
);
nexusTreasuryTotalAmount = nexusTreasuryTotalAmount.add(
treasuryAmount
);
uint256 multiStakingAmount = _swap(
token,
nexus,
amountIn.mul(2).div(10),
multiStakingGetter
);
nexusMultiStakingTotalAmount = nexusMultiStakingTotalAmount.add(
multiStakingAmount
);
uint256 burnAmount = _swap(
token,
nexus,
amountIn.mul(7).div(10),
deadAddress
);
nexusBurnTotalAmount = nexusBurnTotalAmount.add(burnAmount);
amountOut = treasuryAmount.add(burnAmount);
nexusTotalAmount = nexusTotalAmount.add(amountOut);
emit TreasuryConvert(treasuryAmount);
emit MultiStakingConvert(multiStakingAmount);
emit BurnConvert(burnAmount);
emit TotalConvert(amountOut);
} else {
uint256 multiStakingAmount = _swap(
token,
nexus,
amountIn.mul(3).div(10),
multiStakingGetter
);
nexusMultiStakingTotalAmount = nexusMultiStakingTotalAmount.add(
multiStakingAmount
);
uint256 burnAmount = _swap(
token,
nexus,
amountIn.mul(7).div(10),
deadAddress
);
nexusBurnTotalAmount = nexusBurnTotalAmount.add(burnAmount);
amountOut = burnAmount;
nexusTotalAmount = nexusTotalAmount.add(amountOut);
emit MultiStakingConvert(multiStakingAmount);
emit BurnConvert(burnAmount);
emit TotalConvert(amountOut);
}
}
function setNexusTreasury(address _treasury) external {
require(msg.sender == nexusTreasurySetter, "NexusDiffuser: FORBIDDEN");
nexusTreasury = _treasury;
}
function setNexusTreasurySetter(address _nexusTreasurySetter) external {
require(msg.sender == nexusTreasurySetter, "NexusDiffuser: FORBIDDEN");
nexusTreasurySetter = _nexusTreasurySetter;
}
function setLpToBurnNxs(address _lp, bool _enable) external onlyOwner {
convertLpToBurnNxs[_lp] = _enable;
}
function setMultiStakingGetter(address _getter) external onlyOwner {
multiStakingGetter = _getter;
}
}// 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.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/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function migrator() external view returns (address);
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
function setMigrator(address) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(
address owner,
address spender
) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function burn(
address to
) external returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_nexus","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"BurnConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"DiffuserConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"bridge","type":"address"}],"name":"LogBridgeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"server","type":"address"},{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"LogConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"MultiStakingConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"NexusBurnerConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"TotalConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountNXS","type":"uint256"}],"name":"TreasuryConvert","type":"event"},{"inputs":[],"name":"LPConvert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"LPEnalbe","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LP_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"bridgeFor","outputs":[{"internalType":"address","name":"bridge","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"convertLpToBurnNxs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"token0","type":"address[]"},{"internalType":"address[]","name":"token1","type":"address[]"}],"name":"convertMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit_gas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiStakingGetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexus","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexusBurnTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexusMultiStakingTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexusTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexusTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexusTreasurySetter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nexusTreasuryTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit_gas","type":"uint256"}],"name":"setGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lp","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"}],"name":"setLpToBurnNxs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMinLPAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_getter","type":"address"}],"name":"setMultiStakingGetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_onlyNexusLp","type":"bool"}],"name":"setNexusLPEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setNexusTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nexusTreasurySetter","type":"address"}],"name":"setNexusTreasurySetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60e0604052660aa87bee538000600455620271006005556000600681905560078190556008819055600955600a805460ff191660011790553480156200004457600080fd5b5060405162002df838038062002df883398101604081905262000067916200010f565b6200007233620000a2565b6001600160a01b0392831660805290821660a0521660c052600180546001600160a01b0319163317905562000159565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200010a57600080fd5b919050565b6000806000606084860312156200012557600080fd5b6200013084620000f2565b92506200014060208501620000f2565b91506200015060408501620000f2565b90509250925092565b60805160a05160c051612b5e6200029a600039600081816102ab01528181610794015281816108ad01528181610be801528181610d22015281816111300152818161126a015281816119e201528181611a1f01528181611b8801528181611bc501528181611bee01528181611c1b01528181611c580152611c8101526000818161038201528181610494015281816107570152818161090901528181610b4c01528181610c8501528181610e2c01528181611094015281816111cd0152818161196a015281816119af01528181611a7f01528181611ac401528181611b0a01528181611b4f01528181611e4601528181611e9c01528181611f000152818161204c01526120990152600081816103e1015281816109ac01528181610a5201528181610ec001528181610f79015281816115e101526121c60152612b5e6000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806381a57ce611610104578063ab13d6e9116100a2578063c5e413ad11610071578063c5e413ad14610403578063e4ae15581461040b578063ee7d72b414610413578063f2fde38b1461042657600080fd5b8063ab13d6e9146103b7578063bd1b820c146103c0578063c271d8d2146103d3578063c45a0155146103dc57600080fd5b80639ba638bf116100de5780639ba638bf146103575780639d22ae8c1461036a578063a3f5c1d21461037d578063a761a939146103a457600080fd5b806381a57ce61461032a5780638da5cb5b1461033d57806392ce7b721461034e57600080fd5b806330f5eca41161017c5780634b5a664f1161014b5780634b5a664f146102f357806350afc5841461030657806360feeb8114610319578063715018a61461032257600080fd5b806330f5eca41461029d5780633fc8cef3146102a657806345b72984146102cd578063483e7c90146102e057600080fd5b806320f1421a116101b857806320f1421a1461023b57806327c8f8351461026e57806328791e7d14610277578063303e6aa41461028a57600080fd5b806308b2d7ad146101df5780630d62bb8a1461020f5780631fe0ec9414610226575b600080fd5b6002546101f2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61021860075481565b604051908152602001610206565b6102396102343660046126e5565b610439565b005b61025e61024936600461271e565b60036020526000908152604090205460ff1681565b6040519015158152602001610206565b6101f261dead81565b600c546101f2906001600160a01b031681565b610239610298366004612787565b610454565b61021860055481565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6102396102db3660046127f3565b6105e1565b6102396102ee36600461280c565b6105ee565b61023961030136600461271e565b610621565b6001546101f2906001600160a01b031681565b61021860065481565b610239610698565b61023961033836600461271e565b6106ac565b6000546001600160a01b03166101f2565b61021860085481565b61023961036536600461271e565b6106d6565b610239610378366004612845565b61074d565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b6101f26103b236600461271e565b61088a565b61021860095481565b6102396103ce366004612845565b6108d2565b61021860045481565b6101f27f000000000000000000000000000000000000000000000000000000000000000081565b61025e6109a7565b610239610df5565b6102396104213660046127f3565b6114d7565b61023961043436600461271e565b6114e4565b61044161155d565b600a805460ff1916911515919091179055565b33321461047c5760405162461bcd60e51b815260040161047390612873565b60405180910390fd5b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050791906128aa565b116105245760405162461bcd60e51b8152600401610473906128c3565b8281146105655760405162461bcd60e51b815260206004820152600f60248201526e09cdee840e6c2daca40d8cadccee8d608b1b6044820152606401610473565b8260005b818110156105d9576105c7868683818110610586576105866128ee565b905060200201602081019061059b919061271e565b8585848181106105ad576105ad6128ee565b90506020020160208101906105c2919061271e565b6115b7565b806105d18161291a565b915050610569565b505050505050565b6105e961155d565b600455565b6105f661155d565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6001546001600160a01b031633146106765760405162461bcd60e51b81526020600482015260186024820152772732bc3ab9a234b3333ab9b2b91d102327a92124a22222a760411b6044820152606401610473565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6106a061155d565b6106aa6000611876565b565b6106b461155d565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331461072b5760405162461bcd60e51b81526020600482015260186024820152772732bc3ab9a234b3333ab9b2b91d102327a92124a22222a760411b6044820152606401610473565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61075561155d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141580156107c957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b80156107e75750806001600160a01b0316826001600160a01b031614155b6108335760405162461bcd60e51b815260206004820152601d60248201527f4e6578757344696666757365723a20496e76616c6964206272696467650000006044820152606401610473565b6001600160a01b038281166000818152600b602052604080822080546001600160a01b0319169486169485179055517f2e103aa707acc565f9a1547341914802b2bfe977fd79c595209f248ae4b006139190a35050565b6001600160a01b038082166000908152600b602052604090205416806108cd57507f00000000000000000000000000000000000000000000000000000000000000005b919050565b3332146108f15760405162461bcd60e51b815260040161047390612873565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610958573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097c91906128aa565b116109995760405162461bcd60e51b8152600401610473906128c3565b6109a382826115b7565b5050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663574f2ba36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2c91906128aa565b905060005b81811015610dec57604051631e3dd18b60e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631e3dd18b90602401602060405180830381865afa158015610aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac59190612935565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3391906128aa565b9050600454811115610dd757600a5460ff1615610dcc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd69190612935565b6001600160a01b03161480610c7d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c729190612935565b6001600160a01b0316145b80610d1a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ceb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0f9190612935565b6001600160a01b0316145b80610db757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac9190612935565b6001600160a01b0316145b15610dc757600194505050505090565b610dd7565b600194505050505090565b50508080610de49061291a565b915050610a31565b50600091505090565b333214610e145760405162461bcd60e51b815260040161047390612873565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9f91906128aa565b11610ebc5760405162461bcd60e51b8152600401610473906128c3565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663574f2ba36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4091906128aa565b90506000805a905060005b60055483108015610f5b57508381105b156114d157604051631e3dd18b60e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631e3dd18b90602401602060405180830381865afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec9190612935565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a91906128aa565b9050600454811115611496576001600160a01b03821660009081526003602052604090205460ff161561141157600a5460ff16156113d0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111e9190612935565b6001600160a01b031614806111c557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ba9190612935565b6001600160a01b0316145b8061126257507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611233573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112579190612935565b6001600160a01b0316145b806112ff57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f49190612935565b6001600160a01b0316145b156113cb576113cb826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113699190612935565b836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c29190612935565b611496565b6113cb826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611345573d6000803e3d6000fd5b6002546040516370a0823160e01b8152306004820152611496916001600160a01b0390811691908516906370a0823190602401602060405180830381865afa158015611461573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148591906128aa565b6001600160a01b03851691906118c6565b826114a08161291a565b93505060005a9050808511156114c7576114c46114bd868361191d565b8790611932565b95505b9350610f4b915050565b50505050565b6114df61155d565b600555565b6114ec61155d565b6001600160a01b0381166115515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610473565b61155a81611876565b50565b6000546001600160a01b031633146106aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610473565b60405163e6a4390560e01b81526001600160a01b03838116600483015282811660248301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e6a4390590604401602060405180830381865afa15801561162a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164e9190612935565b90506001600160a01b0381166116a65760405162461bcd60e51b815260206004820152601b60248201527f4e6578757344696666757365723a20496e76616c6964207061697200000000006044820152606401610473565b6040516370a0823160e01b81523060048201526117259082906001600160a01b038216906370a0823190602401602060405180830381865afa1580156116f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171491906128aa565b6001600160a01b03841691906118c6565b60405163226bf2d160e21b815230600482015260009081906001600160a01b038416906389afcb449060240160408051808303816000875af115801561176f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117939190612952565b91509150826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f99190612935565b6001600160a01b0316856001600160a01b03161461181357905b6001600160a01b03808516908616337fd06b1d7ed79b664d17472c6f6997b929f1abe463ccccb4e5b6a0038f2f730c1585856118518b8b848461193e565b6040805193845260208401929092529082015260600160405180910390a45050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611918908490611d55565b505050565b60006119298284612976565b90505b92915050565b6000611929828461298d565b6000836001600160a01b0316856001600160a01b03161415611a7d5760006119668484611932565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b031614156119e0576119d86001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661dead836118c6565b809150611a77565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161415611a4b57611a447f000000000000000000000000000000000000000000000000000000000000000082611e2a565b9150611a77565b6000611a568761088a565b9050611a648782843061219a565b9150611a73818284600061193e565b9250505b50611d4d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03161415611b0857611aed6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661dead856118c6565b611b0183611afb8685611e2a565b90611932565b9050611d4d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161415611b8657611b786001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661dead846118c6565b611b0182611afb8786611e2a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03161415611c1957611b017f0000000000000000000000000000000000000000000000000000000000000000611c1485611afb887f0000000000000000000000000000000000000000000000000000000000000000883061219a565b611e2a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161415611ca757611b017f0000000000000000000000000000000000000000000000000000000000000000611c1484611afb897f0000000000000000000000000000000000000000000000000000000000000000893061219a565b6000611cb28661088a565b90506000611cbf8661088a565b9050856001600160a01b0316826001600160a01b03161415611cf957611cf28287611cec8a868a3061219a565b8761193e565b9250611d4a565b866001600160a01b0316816001600160a01b03161415611d2a57611cf2878287611d258a868a3061219a565b61193e565b611d478282611d3b8a868a3061219a565b611d258a868a3061219a565b92505b50505b949350505050565b6000611daa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661254a9092919063ffffffff16565b9050805160001480611dcb575080806020019051810190611dcb91906129a5565b6119185760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610473565b600c546000906001600160a01b031615612044576000611e81847f0000000000000000000000000000000000000000000000000000000000000000611e7086600a612559565b600c546001600160a01b031661219a565b600654909150611e919082611932565b6006556000611ee2857f0000000000000000000000000000000000000000000000000000000000000000611ed1600a611ecb896002612565565b90612559565b6002546001600160a01b031661219a565b600754909150611ef29082611932565b6007819055506000611f40867f0000000000000000000000000000000000000000000000000000000000000000611f38600a611ecb60078b61256590919063ffffffff16565b61dead61219a565b600854909150611f509082611932565b600855611f5d8382611932565b600954909450611f6d9085611932565b6009556040518381527f8d05f41651e90c54719c13f03f95bc225831ce02290cbe4cc7954b18b1f9c0be9060200160405180910390a16040518281527f8444ee41cee01c2e0243215b208e0cce54a5c4dab315ee4bf710f1ddec9c6b369060200160405180910390a16040518181527fa6f5b3ce3a583b78f839b3180d3315fd2cca41f256ef36e675a6c33164925e969060200160405180910390a16040518481527ff26428632b5768b3070a73ff9b8898dc8308707bd85831092248d00a76ce5b319060200160405180910390a150505061192c565b600061207b847f0000000000000000000000000000000000000000000000000000000000000000611ed1600a611ecb886003612565565b60075490915061208b9082611932565b60078190555060006120d1857f0000000000000000000000000000000000000000000000000000000000000000611f38600a611ecb60078a61256590919063ffffffff16565b6008549091506120e19082611932565b60085560095490925082906120f69082611932565b6009556040518281527f8444ee41cee01c2e0243215b208e0cce54a5c4dab315ee4bf710f1ddec9c6b369060200160405180910390a16040518181527fa6f5b3ce3a583b78f839b3180d3315fd2cca41f256ef36e675a6c33164925e969060200160405180910390a16040518381527ff26428632b5768b3070a73ff9b8898dc8308707bd85831092248d00a76ce5b319060200160405180910390a1505092915050565b60405163e6a4390560e01b81526001600160a01b038581166004830152848116602483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169063e6a4390590604401602060405180830381865afa15801561220d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122319190612935565b90506001600160a01b0381166122895760405162461bcd60e51b815260206004820152601d60248201527f4e6578757344696666757365723a2043616e6e6f7420636f6e766572740000006044820152606401610473565b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156122ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ee91906129d9565b506001600160701b039182169350169050600061230d876103e5612565565b9050836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801561234d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123719190612935565b6001600160a01b0316896001600160a01b0316141561246d5761239a81611afb856103e8612565565b6123a48284612565565b6123ae9190612a29565b94506123c46001600160a01b038a1685896118c6565b604080516000808252602082019283905263022c0d9f60e01b9092526001600160a01b0386169163022c0d9f91612403919089908b9060248101612aa3565b600060405180830381600087803b15801561241d57600080fd5b505af192505050801561242e575060015b612468573d80801561245c576040519150601f19603f3d011682016040523d82523d6000602084013e612461565b606091505b505061253e565b61253e565b61247d81611afb846103e8612565565b6124878285612565565b6124919190612a29565b94506124a76001600160a01b038a1685896118c6565b604080516000808252602082019283905263022c0d9f60e01b9092526001600160a01b0386169163022c0d9f916124e59189918b9060248101612aa3565b600060405180830381600087803b1580156124ff57600080fd5b505af1925050508015612510575060015b61253e573d80801561245c576040519150601f19603f3d011682016040523d82523d6000602084013e612461565b50505050949350505050565b6060611d4d8484600085612571565b60006119298284612a29565b60006119298284612ada565b6060824710156125d25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610473565b600080866001600160a01b031685876040516125ee9190612af9565b60006040518083038185875af1925050503d806000811461262b576040519150601f19603f3d011682016040523d82523d6000602084013e612630565b606091505b5091509150611d4787838387606083156126a85782516126a1576001600160a01b0385163b6126a15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610473565b5081611d4d565b611d4d83838151156126bd5781518083602001fd5b8060405162461bcd60e51b81526004016104739190612b15565b801515811461155a57600080fd5b6000602082840312156126f757600080fd5b8135612702816126d7565b9392505050565b6001600160a01b038116811461155a57600080fd5b60006020828403121561273057600080fd5b813561270281612709565b60008083601f84011261274d57600080fd5b50813567ffffffffffffffff81111561276557600080fd5b6020830191508360208260051b850101111561278057600080fd5b9250929050565b6000806000806040858703121561279d57600080fd5b843567ffffffffffffffff808211156127b557600080fd5b6127c18883890161273b565b909650945060208701359150808211156127da57600080fd5b506127e78782880161273b565b95989497509550505050565b60006020828403121561280557600080fd5b5035919050565b6000806040838503121561281f57600080fd5b823561282a81612709565b9150602083013561283a816126d7565b809150509250929050565b6000806040838503121561285857600080fd5b823561286381612709565b9150602083013561283a81612709565b6020808252601b908201527f4e6578757344696666757365723a206d7573742075736520454f410000000000604082015260600190565b6000602082840312156128bc57600080fd5b5051919050565b60208082526011908201527073686f756c6420686f6c64206e6578757360781b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561292e5761292e612904565b5060010190565b60006020828403121561294757600080fd5b815161270281612709565b6000806040838503121561296557600080fd5b505080516020909101519092909150565b60008282101561298857612988612904565b500390565b600082198211156129a0576129a0612904565b500190565b6000602082840312156129b757600080fd5b8151612702816126d7565b80516001600160701b03811681146108cd57600080fd5b6000806000606084860312156129ee57600080fd5b6129f7846129c2565b9250612a05602085016129c2565b9150604084015163ffffffff81168114612a1e57600080fd5b809150509250925092565b600082612a4657634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015612a66578181015183820152602001612a4e565b838111156114d15750506000910152565b60008151808452612a8f816020860160208601612a4b565b601f01601f19169290920160200192915050565b84815283602082015260018060a01b0383166040820152608060608201526000612ad06080830184612a77565b9695505050505050565b6000816000190483118215151615612af457612af4612904565b500290565b60008251612b0b818460208701612a4b565b9190910192915050565b6020815260006119296020830184612a7756fea26469706673582212206b9a8f31895c5f2777484c4c510b13cb771d79a8a6ba9f7bfd6b9ea2217c904f64736f6c634300080c0033000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd310000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806381a57ce611610104578063ab13d6e9116100a2578063c5e413ad11610071578063c5e413ad14610403578063e4ae15581461040b578063ee7d72b414610413578063f2fde38b1461042657600080fd5b8063ab13d6e9146103b7578063bd1b820c146103c0578063c271d8d2146103d3578063c45a0155146103dc57600080fd5b80639ba638bf116100de5780639ba638bf146103575780639d22ae8c1461036a578063a3f5c1d21461037d578063a761a939146103a457600080fd5b806381a57ce61461032a5780638da5cb5b1461033d57806392ce7b721461034e57600080fd5b806330f5eca41161017c5780634b5a664f1161014b5780634b5a664f146102f357806350afc5841461030657806360feeb8114610319578063715018a61461032257600080fd5b806330f5eca41461029d5780633fc8cef3146102a657806345b72984146102cd578063483e7c90146102e057600080fd5b806320f1421a116101b857806320f1421a1461023b57806327c8f8351461026e57806328791e7d14610277578063303e6aa41461028a57600080fd5b806308b2d7ad146101df5780630d62bb8a1461020f5780631fe0ec9414610226575b600080fd5b6002546101f2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61021860075481565b604051908152602001610206565b6102396102343660046126e5565b610439565b005b61025e61024936600461271e565b60036020526000908152604090205460ff1681565b6040519015158152602001610206565b6101f261dead81565b600c546101f2906001600160a01b031681565b610239610298366004612787565b610454565b61021860055481565b6101f27f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c4281565b6102396102db3660046127f3565b6105e1565b6102396102ee36600461280c565b6105ee565b61023961030136600461271e565b610621565b6001546101f2906001600160a01b031681565b61021860065481565b610239610698565b61023961033836600461271e565b6106ac565b6000546001600160a01b03166101f2565b61021860085481565b61023961036536600461271e565b6106d6565b610239610378366004612845565b61074d565b6101f27f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e81565b6101f26103b236600461271e565b61088a565b61021860095481565b6102396103ce366004612845565b6108d2565b61021860045481565b6101f27f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd3181565b61025e6109a7565b610239610df5565b6102396104213660046127f3565b6114d7565b61023961043436600461271e565b6114e4565b61044161155d565b600a805460ff1916911515919091179055565b33321461047c5760405162461bcd60e51b815260040161047390612873565b60405180910390fd5b6040516370a0823160e01b81523360048201526000907f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316906370a0823190602401602060405180830381865afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050791906128aa565b116105245760405162461bcd60e51b8152600401610473906128c3565b8281146105655760405162461bcd60e51b815260206004820152600f60248201526e09cdee840e6c2daca40d8cadccee8d608b1b6044820152606401610473565b8260005b818110156105d9576105c7868683818110610586576105866128ee565b905060200201602081019061059b919061271e565b8585848181106105ad576105ad6128ee565b90506020020160208101906105c2919061271e565b6115b7565b806105d18161291a565b915050610569565b505050505050565b6105e961155d565b600455565b6105f661155d565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b6001546001600160a01b031633146106765760405162461bcd60e51b81526020600482015260186024820152772732bc3ab9a234b3333ab9b2b91d102327a92124a22222a760411b6044820152606401610473565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6106a061155d565b6106aa6000611876565b565b6106b461155d565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331461072b5760405162461bcd60e51b81526020600482015260186024820152772732bc3ab9a234b3333ab9b2b91d102327a92124a22222a760411b6044820152606401610473565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b61075561155d565b7f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316826001600160a01b0316141580156107c957507f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316826001600160a01b031614155b80156107e75750806001600160a01b0316826001600160a01b031614155b6108335760405162461bcd60e51b815260206004820152601d60248201527f4e6578757344696666757365723a20496e76616c6964206272696467650000006044820152606401610473565b6001600160a01b038281166000818152600b602052604080822080546001600160a01b0319169486169485179055517f2e103aa707acc565f9a1547341914802b2bfe977fd79c595209f248ae4b006139190a35050565b6001600160a01b038082166000908152600b602052604090205416806108cd57507f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c425b919050565b3332146108f15760405162461bcd60e51b815260040161047390612873565b6040516370a0823160e01b81523360048201526000907f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316906370a0823190602401602060405180830381865afa158015610958573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097c91906128aa565b116109995760405162461bcd60e51b8152600401610473906128c3565b6109a382826115b7565b5050565b6000807f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd316001600160a01b031663574f2ba36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2c91906128aa565b905060005b81811015610dec57604051631e3dd18b60e01b8152600481018290526000907f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd316001600160a01b031690631e3dd18b90602401602060405180830381865afa158015610aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac59190612935565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3391906128aa565b9050600454811115610dd757600a5460ff1615610dcc577f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd69190612935565b6001600160a01b03161480610c7d57507f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c729190612935565b6001600160a01b0316145b80610d1a57507f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ceb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0f9190612935565b6001600160a01b0316145b80610db757507f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac9190612935565b6001600160a01b0316145b15610dc757600194505050505090565b610dd7565b600194505050505090565b50508080610de49061291a565b915050610a31565b50600091505090565b333214610e145760405162461bcd60e51b815260040161047390612873565b6040516370a0823160e01b81523360048201526000907f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316906370a0823190602401602060405180830381865afa158015610e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9f91906128aa565b11610ebc5760405162461bcd60e51b8152600401610473906128c3565b60007f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd316001600160a01b031663574f2ba36040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4091906128aa565b90506000805a905060005b60055483108015610f5b57508381105b156114d157604051631e3dd18b60e01b8152600481018290526000907f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd316001600160a01b031690631e3dd18b90602401602060405180830381865afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec9190612935565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a91906128aa565b9050600454811115611496576001600160a01b03821660009081526003602052604090205460ff161561141157600a5460ff16156113d0577f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111e9190612935565b6001600160a01b031614806111c557507f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611196573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ba9190612935565b6001600160a01b0316145b8061126257507f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611233573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112579190612935565b6001600160a01b0316145b806112ff57507f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316826001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f49190612935565b6001600160a01b0316145b156113cb576113cb826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611345573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113699190612935565b836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c29190612935565b611496565b6113cb826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611345573d6000803e3d6000fd5b6002546040516370a0823160e01b8152306004820152611496916001600160a01b0390811691908516906370a0823190602401602060405180830381865afa158015611461573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148591906128aa565b6001600160a01b03851691906118c6565b826114a08161291a565b93505060005a9050808511156114c7576114c46114bd868361191d565b8790611932565b95505b9350610f4b915050565b50505050565b6114df61155d565b600555565b6114ec61155d565b6001600160a01b0381166115515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610473565b61155a81611876565b50565b6000546001600160a01b031633146106aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610473565b60405163e6a4390560e01b81526001600160a01b03838116600483015282811660248301526000917f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd319091169063e6a4390590604401602060405180830381865afa15801561162a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164e9190612935565b90506001600160a01b0381166116a65760405162461bcd60e51b815260206004820152601b60248201527f4e6578757344696666757365723a20496e76616c6964207061697200000000006044820152606401610473565b6040516370a0823160e01b81523060048201526117259082906001600160a01b038216906370a0823190602401602060405180830381865afa1580156116f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171491906128aa565b6001600160a01b03841691906118c6565b60405163226bf2d160e21b815230600482015260009081906001600160a01b038416906389afcb449060240160408051808303816000875af115801561176f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117939190612952565b91509150826001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f99190612935565b6001600160a01b0316856001600160a01b03161461181357905b6001600160a01b03808516908616337fd06b1d7ed79b664d17472c6f6997b929f1abe463ccccb4e5b6a0038f2f730c1585856118518b8b848461193e565b6040805193845260208401929092529082015260600160405180910390a45050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611918908490611d55565b505050565b60006119298284612976565b90505b92915050565b6000611929828461298d565b6000836001600160a01b0316856001600160a01b03161415611a7d5760006119668484611932565b90507f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316866001600160a01b031614156119e0576119d86001600160a01b037f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e1661dead836118c6565b809150611a77565b7f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316866001600160a01b03161415611a4b57611a447f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c4282611e2a565b9150611a77565b6000611a568761088a565b9050611a648782843061219a565b9150611a73818284600061193e565b9250505b50611d4d565b7f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316856001600160a01b03161415611b0857611aed6001600160a01b037f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e1661dead856118c6565b611b0183611afb8685611e2a565b90611932565b9050611d4d565b7f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e6001600160a01b0316846001600160a01b03161415611b8657611b786001600160a01b037f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e1661dead846118c6565b611b0182611afb8786611e2a565b7f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316856001600160a01b03161415611c1957611b017f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42611c1485611afb887f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42883061219a565b611e2a565b7f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c426001600160a01b0316846001600160a01b03161415611ca757611b017f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42611c1484611afb897f000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42893061219a565b6000611cb28661088a565b90506000611cbf8661088a565b9050856001600160a01b0316826001600160a01b03161415611cf957611cf28287611cec8a868a3061219a565b8761193e565b9250611d4a565b866001600160a01b0316816001600160a01b03161415611d2a57611cf2878287611d258a868a3061219a565b61193e565b611d478282611d3b8a868a3061219a565b611d258a868a3061219a565b92505b50505b949350505050565b6000611daa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661254a9092919063ffffffff16565b9050805160001480611dcb575080806020019051810190611dcb91906129a5565b6119185760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610473565b600c546000906001600160a01b031615612044576000611e81847f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e611e7086600a612559565b600c546001600160a01b031661219a565b600654909150611e919082611932565b6006556000611ee2857f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e611ed1600a611ecb896002612565565b90612559565b6002546001600160a01b031661219a565b600754909150611ef29082611932565b6007819055506000611f40867f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e611f38600a611ecb60078b61256590919063ffffffff16565b61dead61219a565b600854909150611f509082611932565b600855611f5d8382611932565b600954909450611f6d9085611932565b6009556040518381527f8d05f41651e90c54719c13f03f95bc225831ce02290cbe4cc7954b18b1f9c0be9060200160405180910390a16040518281527f8444ee41cee01c2e0243215b208e0cce54a5c4dab315ee4bf710f1ddec9c6b369060200160405180910390a16040518181527fa6f5b3ce3a583b78f839b3180d3315fd2cca41f256ef36e675a6c33164925e969060200160405180910390a16040518481527ff26428632b5768b3070a73ff9b8898dc8308707bd85831092248d00a76ce5b319060200160405180910390a150505061192c565b600061207b847f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e611ed1600a611ecb886003612565565b60075490915061208b9082611932565b60078190555060006120d1857f0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e611f38600a611ecb60078a61256590919063ffffffff16565b6008549091506120e19082611932565b60085560095490925082906120f69082611932565b6009556040518281527f8444ee41cee01c2e0243215b208e0cce54a5c4dab315ee4bf710f1ddec9c6b369060200160405180910390a16040518181527fa6f5b3ce3a583b78f839b3180d3315fd2cca41f256ef36e675a6c33164925e969060200160405180910390a16040518381527ff26428632b5768b3070a73ff9b8898dc8308707bd85831092248d00a76ce5b319060200160405180910390a1505092915050565b60405163e6a4390560e01b81526001600160a01b038581166004830152848116602483015260009182917f000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd31169063e6a4390590604401602060405180830381865afa15801561220d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122319190612935565b90506001600160a01b0381166122895760405162461bcd60e51b815260206004820152601d60248201527f4e6578757344696666757365723a2043616e6e6f7420636f6e766572740000006044820152606401610473565b600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156122ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ee91906129d9565b506001600160701b039182169350169050600061230d876103e5612565565b9050836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801561234d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123719190612935565b6001600160a01b0316896001600160a01b0316141561246d5761239a81611afb856103e8612565565b6123a48284612565565b6123ae9190612a29565b94506123c46001600160a01b038a1685896118c6565b604080516000808252602082019283905263022c0d9f60e01b9092526001600160a01b0386169163022c0d9f91612403919089908b9060248101612aa3565b600060405180830381600087803b15801561241d57600080fd5b505af192505050801561242e575060015b612468573d80801561245c576040519150601f19603f3d011682016040523d82523d6000602084013e612461565b606091505b505061253e565b61253e565b61247d81611afb846103e8612565565b6124878285612565565b6124919190612a29565b94506124a76001600160a01b038a1685896118c6565b604080516000808252602082019283905263022c0d9f60e01b9092526001600160a01b0386169163022c0d9f916124e59189918b9060248101612aa3565b600060405180830381600087803b1580156124ff57600080fd5b505af1925050508015612510575060015b61253e573d80801561245c576040519150601f19603f3d011682016040523d82523d6000602084013e612461565b50505050949350505050565b6060611d4d8484600085612571565b60006119298284612a29565b60006119298284612ada565b6060824710156125d25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610473565b600080866001600160a01b031685876040516125ee9190612af9565b60006040518083038185875af1925050503d806000811461262b576040519150601f19603f3d011682016040523d82523d6000602084013e612630565b606091505b5091509150611d4787838387606083156126a85782516126a1576001600160a01b0385163b6126a15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610473565b5081611d4d565b611d4d83838151156126bd5781518083602001fd5b8060405162461bcd60e51b81526004016104739190612b15565b801515811461155a57600080fd5b6000602082840312156126f757600080fd5b8135612702816126d7565b9392505050565b6001600160a01b038116811461155a57600080fd5b60006020828403121561273057600080fd5b813561270281612709565b60008083601f84011261274d57600080fd5b50813567ffffffffffffffff81111561276557600080fd5b6020830191508360208260051b850101111561278057600080fd5b9250929050565b6000806000806040858703121561279d57600080fd5b843567ffffffffffffffff808211156127b557600080fd5b6127c18883890161273b565b909650945060208701359150808211156127da57600080fd5b506127e78782880161273b565b95989497509550505050565b60006020828403121561280557600080fd5b5035919050565b6000806040838503121561281f57600080fd5b823561282a81612709565b9150602083013561283a816126d7565b809150509250929050565b6000806040838503121561285857600080fd5b823561286381612709565b9150602083013561283a81612709565b6020808252601b908201527f4e6578757344696666757365723a206d7573742075736520454f410000000000604082015260600190565b6000602082840312156128bc57600080fd5b5051919050565b60208082526011908201527073686f756c6420686f6c64206e6578757360781b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561292e5761292e612904565b5060010190565b60006020828403121561294757600080fd5b815161270281612709565b6000806040838503121561296557600080fd5b505080516020909101519092909150565b60008282101561298857612988612904565b500390565b600082198211156129a0576129a0612904565b500190565b6000602082840312156129b757600080fd5b8151612702816126d7565b80516001600160701b03811681146108cd57600080fd5b6000806000606084860312156129ee57600080fd5b6129f7846129c2565b9250612a05602085016129c2565b9150604084015163ffffffff81168114612a1e57600080fd5b809150509250925092565b600082612a4657634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015612a66578181015183820152602001612a4e565b838111156114d15750506000910152565b60008151808452612a8f816020860160208601612a4b565b601f01601f19169290920160200192915050565b84815283602082015260018060a01b0383166040820152608060608201526000612ad06080830184612a77565b9695505050505050565b6000816000190483118215151615612af457612af4612904565b500290565b60008251612b0b818460208701612a4b565b9190910192915050565b6020815260006119296020830184612a7756fea26469706673582212206b9a8f31895c5f2777484c4c510b13cb771d79a8a6ba9f7bfd6b9ea2217c904f64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd310000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42
-----Decoded View---------------
Arg [0] : _factory (address): 0xAf2977827a72e3CfE18104b0EDAF61Dd0689cd31
Arg [1] : _nexus (address): 0x6DaF228391e388B05BBc682FEA3CB1Cc3E38c44E
Arg [2] : _weth (address): 0x951857744785E80e2De051c32EE7b25f9c458C42
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000af2977827a72e3cfe18104b0edaf61dd0689cd31
Arg [1] : 0000000000000000000000006daf228391e388b05bbc682fea3cb1cc3e38c44e
Arg [2] : 000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c42
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in XDC
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.