Source Code
Latest 25 from a total of 1,044 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Extract Fee | 21061641 | 487 days ago | IN | 0 ETH | 0.00014728 | ||||
| Bridge Out And W... | 20732823 | 532 days ago | IN | 0.00000258 ETH | 0.00067015 | ||||
| Deposit And Brid... | 20718764 | 534 days ago | IN | 0.02300597 ETH | 0.00069338 | ||||
| Deposit And Brid... | 20706970 | 536 days ago | IN | 0.00000552 ETH | 0.00044182 | ||||
| Swap And Bridge ... | 20698830 | 537 days ago | IN | 0.00200896 ETH | 0.0011881 | ||||
| Deposit And Brid... | 20694393 | 538 days ago | IN | 0.00100545 ETH | 0.00047765 | ||||
| Deposit And Brid... | 20677179 | 540 days ago | IN | 0.00100544 ETH | 0.00029553 | ||||
| Deposit And Brid... | 20633895 | 546 days ago | IN | 0.00100553 ETH | 0.00018825 | ||||
| Deposit And Brid... | 20625952 | 547 days ago | IN | 0.00010486 ETH | 0.00023287 | ||||
| Deposit And Brid... | 20621633 | 548 days ago | IN | 0.00052629 ETH | 0.00021641 | ||||
| Deposit And Brid... | 20618117 | 548 days ago | IN | 0.00010488 ETH | 0.00014073 | ||||
| Deposit And Brid... | 20614986 | 549 days ago | IN | 0.00050481 ETH | 0.00026449 | ||||
| Deposit And Brid... | 20610913 | 549 days ago | IN | 0.00200512 ETH | 0.00016033 | ||||
| Deposit And Brid... | 20608687 | 550 days ago | IN | 0.000027 ETH | 0.00014774 | ||||
| Deposit And Brid... | 20606796 | 550 days ago | IN | 0.00015509 ETH | 0.00022835 | ||||
| Deposit And Brid... | 20603542 | 551 days ago | IN | 0.00050509 ETH | 0.00022741 | ||||
| Deposit And Brid... | 20601123 | 551 days ago | IN | 0.01005675 ETH | 0.00017286 | ||||
| Deposit And Brid... | 20599023 | 551 days ago | IN | 0.0010051 ETH | 0.00028152 | ||||
| Deposit And Brid... | 20597831 | 551 days ago | IN | 0.00100507 ETH | 0.00015505 | ||||
| Deposit And Brid... | 20594480 | 552 days ago | IN | 0.00200508 ETH | 0.00047526 | ||||
| Deposit And Brid... | 20593213 | 552 days ago | IN | 0.02500516 ETH | 0.00066017 | ||||
| Deposit And Brid... | 20592167 | 552 days ago | IN | 0.00110529 ETH | 0.00091227 | ||||
| Deposit And Brid... | 20589618 | 552 days ago | IN | 0.00100527 ETH | 0.0001689 | ||||
| Deposit And Brid... | 20588042 | 553 days ago | IN | 0.00010533 ETH | 0.0001698 | ||||
| Deposit And Brid... | 20587316 | 553 days ago | IN | 0.00010155 ETH | 0.00017591 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 21061641 | 487 days ago | 0.00403154 ETH | ||||
| Deposit | 20718764 | 534 days ago | 0.023 ETH | ||||
| Deposit | 20698830 | 537 days ago | 0.00172847 ETH | ||||
| Deposit | 20694393 | 538 days ago | 0.001 ETH | ||||
| Deposit | 20677179 | 540 days ago | 0.001 ETH | ||||
| Swap And Bridge ... | 20643056 | 545 days ago | 0.0000054 ETH | ||||
| Deposit | 20633895 | 546 days ago | 0.001 ETH | ||||
| Deposit | 20625952 | 547 days ago | 0.0001 ETH | ||||
| Deposit | 20621633 | 548 days ago | 0.00052138 ETH | ||||
| Deposit | 20618117 | 548 days ago | 0.0001 ETH | ||||
| Deposit | 20614986 | 549 days ago | 0.0005 ETH | ||||
| Deposit | 20610913 | 549 days ago | 0.002 ETH | ||||
| Deposit | 20606796 | 550 days ago | 0.00015 ETH | ||||
| Deposit | 20603542 | 551 days ago | 0.0005 ETH | ||||
| Deposit | 20601123 | 551 days ago | 0.01 ETH | ||||
| Deposit | 20599023 | 551 days ago | 0.001 ETH | ||||
| Deposit | 20597831 | 551 days ago | 0.001 ETH | ||||
| Deposit | 20594480 | 552 days ago | 0.002 ETH | ||||
| Deposit | 20593213 | 552 days ago | 0.025 ETH | ||||
| Deposit | 20592167 | 552 days ago | 0.0011 ETH | ||||
| Deposit | 20589618 | 552 days ago | 0.001 ETH | ||||
| Deposit | 20588042 | 553 days ago | 0.0001 ETH | ||||
| Deposit | 20587316 | 553 days ago | 0.0001 ETH | ||||
| Deposit | 20585875 | 553 days ago | 0.001 ETH | ||||
| Deposit | 20585433 | 553 days ago | 0.002 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Wrapper
Compiler Version
v0.8.8+commit.dddeac2f
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
import "../access/Ownable.sol";
import "./interfaces/IBridge.sol";
import "./interfaces/IWrapper.sol";
import "../swap/interfaces/IPool.sol";
import "../assets/interfaces/IWETH.sol";
import "../assets/interfaces/IPToken.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract Wrapper is Ownable, IWrapper, Pausable, ReentrancyGuard {
using SafeMath for uint;
using SafeERC20 for IERC20;
address public bridge;
address public feeCollector;
address public wethAddress;
event PolyWrapperLock (
address indexed fromAsset,
address indexed sender,
uint64 toChainId,
bytes toAddress,
uint net,
uint fee,
uint id
);
event SetBridgeContract(address bridge);
event SetFeeCollector(address feeCollector);
event SetWETHAddress(address wethAddress);
modifier onlyFeeCollector {
require(_msgSender() == feeCollector, "Not fee collector");
_;
}
function pause() external onlyOwner {
_pause();
}
function unpause() external onlyOwner {
_unpause();
}
function setBridgeContract(address _bridge) public onlyOwner {
bridge = _bridge;
emit SetBridgeContract(bridge);
}
function setFeeCollector(address _feeCollector) public onlyOwner {
feeCollector = _feeCollector;
emit SetFeeCollector(feeCollector);
}
function setWETHAddress(address _weth) public onlyOwner {
wethAddress = _weth;
emit SetWETHAddress(wethAddress);
}
function extractFee() public onlyFeeCollector {
payable(feeCollector).transfer(address(this).balance);
}
function rescueFund(address tokenAddress) public onlyOwner {
IERC20 token = IERC20(tokenAddress);
token.safeTransfer(_msgSender(), token.balanceOf(address(this)));
}
function bridgeOut(
address pTokenAddress,
uint256 amount,
uint64 toChainId,
bytes memory toAddress,
bytes memory callData
) public payable nonReentrant whenNotPaused returns(bool) {
// check
require(toAddress.length != 0, "empty toAddress");
address addr;
assembly { addr := mload(add(toAddress,0x14)) }
require(addr != address(0), "zero toAddress");
// pull
IERC20(pTokenAddress).safeTransferFrom(_msgSender(), address(this), amount);
// push
IERC20(pTokenAddress).safeApprove(bridge, 0);
IERC20(pTokenAddress).safeApprove(bridge, amount);
require(IBridge(bridge).bridgeOut(pTokenAddress, toChainId, toAddress, amount, callData), "bridgeOut fail");
// log
emit PolyWrapperLock(pTokenAddress, _msgSender(), toChainId, toAddress, amount, msg.value, 1);
return true;
}
function swapAndBridgeOut(
address poolAddress, address tokenFrom, address tokenTo, uint256 dx, uint256 minDy, uint256 deadline, // args for swap
uint64 toChainId, bytes memory toAddress, bytes memory callData // args for bridge
) public payable nonReentrant whenNotPaused returns(bool) {
uint256 balanceBefore = IERC20(tokenTo).balanceOf(address(this));
{
// check
require(toAddress.length != 0, "empty toAddress");
address addr;
assembly { addr := mload(add(toAddress,0x14)) }
require(addr != address(0), "zero toAddress");
}
{
// pull
IERC20(tokenFrom).safeTransferFrom(_msgSender(), address(this), dx);
}
{
// swap
IERC20(tokenFrom).safeApprove(poolAddress, 0);
IERC20(tokenFrom).safeApprove(poolAddress, dx);
IPool pool = IPool(poolAddress);
pool.swap(pool.getTokenIndex(tokenFrom), pool.getTokenIndex(tokenTo), dx, minDy, deadline);
}
// push
uint256 amount = IERC20(tokenTo).balanceOf(address(this)).sub(balanceBefore);
IERC20(tokenTo).safeApprove(bridge, 0);
IERC20(tokenTo).safeApprove(bridge, amount);
require(IBridge(bridge).bridgeOut(tokenTo, toChainId, toAddress, amount, callData), "bridgeOut fail");
// log
emit PolyWrapperLock(tokenTo, _msgSender(), toChainId, toAddress, amount, msg.value, 2);
return true;
}
function swapAndBridgeOutNativeToken(
address poolAddress, address tokenTo, uint256 dx, uint256 minDy, uint256 deadline, // args for swap
uint64 toChainId, bytes memory toAddress, bytes memory callData // args for bridge
) public payable nonReentrant whenNotPaused returns(bool) {
require(msg.value >= dx, "insufficient fund");
uint256 balanceBefore = IERC20(tokenTo).balanceOf(address(this));
{
// check
require(toAddress.length != 0, "empty toAddress");
address addr;
assembly { addr := mload(add(toAddress,0x14)) }
require(addr != address(0), "zero toAddress");
}
{
// deposit
IWETH(wethAddress).deposit{value: dx}();
}
{
// swap
IERC20(wethAddress).safeApprove(poolAddress, 0);
IERC20(wethAddress).safeApprove(poolAddress, dx);
IPool pool = IPool(poolAddress);
pool.swap(pool.getTokenIndex(wethAddress), pool.getTokenIndex(tokenTo), dx, minDy, deadline);
}
// push
uint256 amount = IERC20(tokenTo).balanceOf(address(this)).sub(balanceBefore);
IERC20(tokenTo).safeApprove(bridge, 0);
IERC20(tokenTo).safeApprove(bridge, amount);
require(IBridge(bridge).bridgeOut(tokenTo, toChainId, toAddress, amount, callData), "bridgeOut fail");
// log
emit PolyWrapperLock(tokenTo, _msgSender(), toChainId, toAddress, amount, msg.value.sub(dx), 3);
return true;
}
function depositAndBridgeOut(
address originalToken,
address pTokenAddress,
uint256 amount,
uint64 toChainId,
bytes memory toAddress,
bytes memory callData
) public payable nonReentrant whenNotPaused returns(bool) {
{
// check
require(IPToken(pTokenAddress).tokenUnderlying() == originalToken, "invalid ptoken / originalToken");
require(toAddress.length != 0, "empty toAddress");
address addr;
assembly { addr := mload(add(toAddress,0x14)) }
require(addr != address(0), "zero toAddress");
}
{
// pull
IERC20(originalToken).safeTransferFrom(_msgSender(), address(this), amount);
}
// push
IERC20(originalToken).safeApprove(bridge, 0);
IERC20(originalToken).safeApprove(bridge, amount);
require(IBridge(bridge).depositAndBridgeOut(originalToken, pTokenAddress, toChainId, toAddress, amount, callData), "depositAndBridgeOut fail");
// log
emit PolyWrapperLock(originalToken, _msgSender(), toChainId, toAddress, amount, msg.value, 4);
return true;
}
function depositAndBridgeOutNativeToken(
address pTokenAddress,
uint256 amount,
uint64 toChainId,
bytes memory toAddress,
bytes memory callData
) public payable nonReentrant whenNotPaused returns(bool) {
require(msg.value >= amount, "insufficient fund");
{
// check
require(IPToken(pTokenAddress).tokenUnderlying() == wethAddress, "invalid ptoken");
require(toAddress.length != 0, "empty toAddress");
address addr;
assembly { addr := mload(add(toAddress,0x14)) }
require(addr != address(0), "zero toAddress");
}
{
// deposit ETH
IWETH(wethAddress).deposit{value: amount}();
}
// push
IERC20(wethAddress).safeApprove(bridge, 0);
IERC20(wethAddress).safeApprove(bridge, amount);
require(IBridge(bridge).depositAndBridgeOut(wethAddress, pTokenAddress, toChainId, toAddress, amount, callData), "depositAndBridgeOut fail");
// log
emit PolyWrapperLock(wethAddress, _msgSender(), toChainId, toAddress, amount, msg.value.sub(amount), 5);
return true;
}
function bridgeOutAndWithdraw(
address pTokenAddress,
uint64 toChainId,
bytes memory toAddress,
uint256 amount
) public payable nonReentrant whenNotPaused returns(bool) {
// check
require(toAddress.length !=0, "empty toAddress");
address addr;
assembly { addr := mload(add(toAddress,0x14)) }
require(addr != address(0),"zero toAddress");
// pull
IERC20(pTokenAddress).safeTransferFrom(_msgSender(), address(this), amount);
// push
IERC20(pTokenAddress).safeApprove(bridge, 0);
IERC20(pTokenAddress).safeApprove(bridge, amount);
require(IBridge(bridge).bridgeOutAndWithdraw(pTokenAddress, toChainId, toAddress, amount), "bridgeOutAndWithdraw fail");
// log
emit PolyWrapperLock(pTokenAddress, _msgSender(), toChainId, toAddress, amount, msg.value, 6);
return true;
}
}// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IPool {
function coins(uint256 index) external view returns(IERC20);
function getA() external view returns (uint256);
function getTokenIndex(address token) external view returns (uint8);
function getVirtualPrice() external view returns (uint256);
function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) external view returns (uint256 dy);
function calculateRemoveLiquidity(uint256 amount) external view returns (uint256[] memory);
function calculateTokenAmount(uint256[] calldata amounts, bool deposit) external view returns (uint256);
function calculateWithdrawOneToken(uint256 tokenAmount, uint8 tokenIndex) external view returns (uint256 amount);
function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) external returns (uint256);
function addLiquidity(uint256[] memory amounts, uint256 minToMint, uint256 deadline) external returns (uint256);
function removeLiquidity(uint256 amount, uint256[] calldata minAmounts, uint256 deadline) external returns (uint256[] memory);
function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) external returns (uint256);
function removeLiquidityImbalance(uint256[] calldata amounts, uint256 maxBurnAmount, uint256 deadline) external returns (uint256);
function applySwapFee(uint256 newSwapFee) external;
function applyAdminFee(uint256 newAdminFee) external;
function getAdminBalance(uint256 index) external view returns (uint256);
function withdrawAdminFee(address receiver) external;
function rampA(uint256 _futureA, uint256 _futureTime) external;
function stopRampA() external;
}// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
interface IWrapper {
function bridgeOut(
address pTokenAddress,
uint256 amount,
uint64 toChainId,
bytes memory toAddress,
bytes memory callData
) external payable returns(bool);
function swapAndBridgeOut(
address poolAddress, address tokenFrom, address tokenTo, uint256 dx, uint256 minDy, uint256 deadline, // args for swap
uint64 toChainId, bytes memory toAddress, bytes memory callData // args for bridge
) external payable returns(bool);
function swapAndBridgeOutNativeToken(
address poolAddress, address tokenTo, uint256 dx, uint256 minDy, uint256 deadline, // args for swap
uint64 toChainId, bytes memory toAddress, bytes memory callData // args for bridge
) external payable returns(bool);
function depositAndBridgeOut(
address originalToken,
address pTokenAddress,
uint256 amount,
uint64 toChainId,
bytes memory toAddress,
bytes memory callData
) external payable returns(bool);
function depositAndBridgeOutNativeToken(
address pTokenAddress,
uint256 amount,
uint64 toChainId,
bytes memory toAddress,
bytes memory callData
) external payable returns(bool);
function bridgeOutAndWithdraw(
address pTokenAddress,
uint64 toChainId,
bytes memory toAddress,
uint256 amount
) external payable returns(bool);
}// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
interface IBridge {
function bridgeFeeRate() external view returns (uint256);
function bridgeFeeCollector() external view returns (address);
function bridgeOut(
address fromAssetHash,
uint64 toChainId,
bytes memory toAddress,
uint256 amount,
bytes memory callData
) external returns(bool);
function depositAndBridgeOut(
address originalTokenAddress,
address pTokenAddress,
uint64 toChainId,
bytes memory toAddress,
uint256 amount,
bytes memory callData
) external returns(bool);
function bridgeOutAndWithdraw(
address pTokenAddress,
uint64 toChainId,
bytes memory toAddress,
uint256 amount
) external returns(bool);
}// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
interface IWETH {
function deposit() external payable;
function withdraw(uint wad) external;
function transfer(address dst, uint wad) external returns (bool);
}// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
interface IPToken {
function mint(address to, uint256 amount) external;
function burn(uint256 amount) external;
function deposit(address to, uint256 amount) external;
function withdraw(address to, uint256 amount) external;
function tokenUnderlying() external view returns(address);
function checkAuthorizedCaller(address caller) external view returns (bool);
function checkIfDepositWithdrawEnabled() external view returns (bool);
}// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/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 Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev 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 v4.4.1 (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 substraction 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
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "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");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(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) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(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) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason 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 {
// 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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `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);
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 999999
},
"evmVersion": "istanbul",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromAsset","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint64","name":"toChainId","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"net","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"PolyWrapperLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bridge","type":"address"}],"name":"SetBridgeContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeCollector","type":"address"}],"name":"SetFeeCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wethAddress","type":"address"}],"name":"SetWETHAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pTokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"toAddress","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"bridgeOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pTokenAddress","type":"address"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"toAddress","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeOutAndWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"originalToken","type":"address"},{"internalType":"address","name":"pTokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"toAddress","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"depositAndBridgeOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pTokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"toAddress","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"depositAndBridgeOutNativeToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"extractFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridgeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"name":"setWETHAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolAddress","type":"address"},{"internalType":"address","name":"tokenFrom","type":"address"},{"internalType":"address","name":"tokenTo","type":"address"},{"internalType":"uint256","name":"dx","type":"uint256"},{"internalType":"uint256","name":"minDy","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"toAddress","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"swapAndBridgeOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"poolAddress","type":"address"},{"internalType":"address","name":"tokenTo","type":"address"},{"internalType":"uint256","name":"dx","type":"uint256"},{"internalType":"uint256","name":"minDy","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint64","name":"toChainId","type":"uint64"},{"internalType":"bytes","name":"toAddress","type":"bytes"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"swapAndBridgeOutNativeToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wethAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506200001d3362000034565b6000805460ff60a01b191690556001805562000084565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613cdd80620000946000396000f3fe6080604052600436106101445760003560e01c8063839b40f2116100c0578063b8c6fd8411610074578063e78cea9211610059578063e78cea9214610358578063f2fde38b14610385578063f62d33c2146103a557600080fd5b8063b8c6fd841461030b578063c415b95c1461032b57600080fd5b80638da5cb5b116100a55780638da5cb5b146102ad578063a42dce80146102d8578063ab4d4be8146102f857600080fd5b8063839b40f2146102835780638456cb591461029857600080fd5b80633f4ba83a116101175780634f0e0ef3116100fc5780634f0e0ef3146101e15780635c975abb146102335780636a4234eb1461026357600080fd5b80633f4ba83a146101b9578063479d29e5146101ce57600080fd5b80630b26cf661461014957806319ccecbe1461016b5780632425fa26146101935780633b8f599c146101a6575b600080fd5b34801561015557600080fd5b506101696101643660046135bf565b6103b8565b005b61017e6101793660046136ce565b6104b8565b60405190151581526020015b60405180910390f35b61017e6101a1366004613796565b610c31565b61017e6101b43660046137fe565b611016565b3480156101c557600080fd5b50610169611828565b61017e6101dc3660046138b5565b6118b3565b3480156101ed57600080fd5b5060045461020e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b34801561023f57600080fd5b5060005474010000000000000000000000000000000000000000900460ff1661017e565b34801561026f57600080fd5b5061016961027e3660046135bf565b611db0565b34801561028f57600080fd5b50610169611ea4565b3480156102a457600080fd5b50610169611f84565b3480156102b957600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661020e565b3480156102e457600080fd5b506101696102f33660046135bf565b61200d565b61017e610306366004613957565b612101565b34801561031757600080fd5b506101696103263660046135bf565b6124e9565b34801561033757600080fd5b5060035461020e9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561036457600080fd5b5060025461020e9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561039157600080fd5b506101696103a03660046135bf565b61262e565b61017e6103b3366004613957565b61275b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461043e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f449973c418c4a6a21741606c661bbe051913a2a2fb91a2ce79021a334475cfe5906020015b60405180910390a150565b600060026001541415610527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff16156105b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b15801561061957600080fd5b505afa15801561062d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065191906139e8565b90508351600014156106bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601484015173ffffffffffffffffffffffffffffffffffffffff8116610741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b5061076473ffffffffffffffffffffffffffffffffffffffff8b1633308b612d46565b61078673ffffffffffffffffffffffffffffffffffffffff8b168c6000612e28565b6107a773ffffffffffffffffffffffffffffffffffffffff8b168c8a612e28565b6040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b811660048301528c919082169063916955869082906366c0bd249060240160206040518083038186803b15801561081957600080fd5b505afa15801561082d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108519190613a01565b6040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e811660048301528516906366c0bd249060240160206040518083038186803b1580156108b857600080fd5b505afa1580156108cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f09190613a01565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604481018c9052606481018b9052608481018a905260a401602060405180830381600087803b15801561095f57600080fd5b505af1158015610973573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099791906139e8565b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090610a4690839073ffffffffffffffffffffffffffffffffffffffff8d16906370a08231906024015b60206040518083038186803b158015610a0857600080fd5b505afa158015610a1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4091906139e8565b90612fbe565b600254909150610a719073ffffffffffffffffffffffffffffffffffffffff8c811691166000612e28565b600254610a989073ffffffffffffffffffffffffffffffffffffffff8c8116911683612e28565b6002546040517f302e123900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063302e123990610af6908d908a908a9087908b90600401613a9a565b602060405180830381600087803b158015610b1057600080fd5b505af1158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b489190613afd565b610bae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6272696467654f7574206661696c0000000000000000000000000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e888885346002604051610c14959493929190613b1f565b60405180910390a3505060018080559a9950505050505050505050565b600060026001541415610ca0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff1615610d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b8251610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff8116610e14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b610e3673ffffffffffffffffffffffffffffffffffffffff8716333086612d46565b600254610e5e9073ffffffffffffffffffffffffffffffffffffffff88811691166000612e28565b600254610e859073ffffffffffffffffffffffffffffffffffffffff888116911685612e28565b6002546040517f2425fa2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632425fa2690610ee1908990899089908990600401613b5f565b602060405180830381600087803b158015610efb57600080fd5b505af1158015610f0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f339190613afd565b610f99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6272696467654f7574416e645769746864726177206661696c000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e878787346006604051610fff959493929190613b1f565b60405180910390a350506001808055949350505050565b600060026001541415611085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff161561110f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b86341015611179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f696e73756666696369656e742066756e640000000000000000000000000000006044820152606401610435565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b1580156111e157600080fd5b505afa1580156111f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121991906139e8565b9050835160001415611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601484015173ffffffffffffffffffffffffffffffffffffffff8116611309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b5060048054604080517fd0e30db0000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169263d0e30db0928c92808301926000929182900301818588803b15801561137557600080fd5b505af1158015611389573d6000803e3d6000fd5b50506004546113b5935073ffffffffffffffffffffffffffffffffffffffff1691508c90506000612e28565b6004546113d99073ffffffffffffffffffffffffffffffffffffffff168b8a612e28565b600480546040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216928101929092528b919082169063916955869082906366c0bd249060240160206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114899190613a01565b6040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e811660048301528516906366c0bd249060240160206040518083038186803b1580156114f057600080fd5b505afa158015611504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115289190613a01565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604481018c9052606481018b9052608481018a905260a401602060405180830381600087803b15801561159757600080fd5b505af11580156115ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cf91906139e8565b50506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009061162c90839073ffffffffffffffffffffffffffffffffffffffff8d16906370a08231906024016109f0565b6002549091506116579073ffffffffffffffffffffffffffffffffffffffff8c811691166000612e28565b60025461167e9073ffffffffffffffffffffffffffffffffffffffff8c8116911683612e28565b6002546040517f302e123900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063302e1239906116dc908d908a908a9087908b90600401613a9a565b602060405180830381600087803b1580156116f657600080fd5b505af115801561170a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172e9190613afd565b611794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6272696467654f7574206661696c0000000000000000000000000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e8888856117f98f34612fbe90919063ffffffff16565b600360405161180c959493929190613b1f565b60405180910390a3505060018080559998505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146118a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b6118b1612fd1565b565b600060026001541415611922576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff16156119ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b8673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1663db77e2b26040518163ffffffff1660e01b815260040160206040518083038186803b158015611a0957600080fd5b505afa158015611a1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a419190613baf565b73ffffffffffffffffffffffffffffffffffffffff1614611abe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f696e76616c69642070746f6b656e202f206f726967696e616c546f6b656e00006044820152606401610435565b8251611b26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff8116611ba8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b50611bcb73ffffffffffffffffffffffffffffffffffffffff8816333088612d46565b600254611bf39073ffffffffffffffffffffffffffffffffffffffff89811691166000612e28565b600254611c1a9073ffffffffffffffffffffffffffffffffffffffff898116911687612e28565b6002546040517f356683a900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063356683a990611c7a908a908a90899089908c908a90600401613bcc565b602060405180830381600087803b158015611c9457600080fd5b505af1158015611ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ccc9190613afd565b611d32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6465706f736974416e644272696467654f7574206661696c00000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e868689346004604051611d98959493929190613b1f565b60405180910390a35060018080559695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611e31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fd62b4f5dbbfa4083b3f7dd0a9bf3f444ab3dc97e475deba37a747b5b2631e567906020016104ad565b60035473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f742066656520636f6c6c6563746f720000000000000000000000000000006044820152606401610435565b60035460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015611f81573d6000803e3d6000fd5b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314612005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b6118b16130ca565b60005473ffffffffffffffffffffffffffffffffffffffff16331461208e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fd649da8f6092116f86ea4e5139de0b75ad371d823918d16368ba3ff09a5cbc9f906020016104ad565b600060026001541415612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff16156121fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b8251612262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff81166122e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b61230673ffffffffffffffffffffffffffffffffffffffff8816333089612d46565b60025461232e9073ffffffffffffffffffffffffffffffffffffffff89811691166000612e28565b6002546123559073ffffffffffffffffffffffffffffffffffffffff898116911688612e28565b6002546040517f302e123900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063302e1239906123b3908a90899089908c908a90600401613a9a565b602060405180830381600087803b1580156123cd57600080fd5b505af11580156123e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124059190613afd565b61246b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6272696467654f7574206661696c0000000000000000000000000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e87878a3460016040516124d1959493929190613b1f565b60405180910390a35050600180805595945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b8061262a336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b1580156125d457600080fd5b505afa1580156125e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061260c91906139e8565b73ffffffffffffffffffffffffffffffffffffffff841691906131b6565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146126af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b73ffffffffffffffffffffffffffffffffffffffff8116612752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610435565b611f818161320c565b6000600260015414156127ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff1615612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b843410156128be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f696e73756666696369656e742066756e640000000000000000000000000000006044820152606401610435565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1663db77e2b26040518163ffffffff1660e01b815260040160206040518083038186803b15801561293d57600080fd5b505afa158015612951573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129759190613baf565b73ffffffffffffffffffffffffffffffffffffffff16146129f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f696e76616c69642070746f6b656e0000000000000000000000000000000000006044820152606401610435565b8251612a5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff8116612adc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b5060048054604080517fd0e30db0000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169263d0e30db0928992808301926000929182900301818588803b158015612b4857600080fd5b505af1158015612b5c573d6000803e3d6000fd5b5050600254600454612b8d945073ffffffffffffffffffffffffffffffffffffffff90811693501690506000612e28565b600254600454612bb79173ffffffffffffffffffffffffffffffffffffffff918216911687612e28565b600254600480546040517f356683a900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9384169363356683a993612c1b93909116918b918a918a918d918b9101613bcc565b602060405180830381600087803b158015612c3557600080fd5b505af1158015612c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c6d9190613afd565b612cd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6465706f736974416e644272696467654f7574206661696c00000000000000006044820152606401610435565b600454339073ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e868689612d1c3482612fbe565b6005604051612d2f959493929190613b1f565b60405180910390a350600180805595945050505050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052612e229085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613281565b50505050565b801580612ed757506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b158015612e9d57600080fd5b505afa158015612eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed591906139e8565b155b612f63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610435565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fb99084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401612da0565b505050565b6000612fca8284613c3a565b9392505050565b60005474010000000000000000000000000000000000000000900460ff16613055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610435565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60005474010000000000000000000000000000000000000000900460ff161561314f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130a03390565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fb99084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401612da0565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006132e3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661338d9092919063ffffffff16565b805190915015612fb957808060200190518101906133019190613afd565b612fb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610435565b606061339c84846000856133a4565b949350505050565b606082471015613436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610435565b73ffffffffffffffffffffffffffffffffffffffff85163b6134b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610435565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516134dd9190613c78565b60006040518083038185875af1925050503d806000811461351a576040519150601f19603f3d011682016040523d82523d6000602084013e61351f565b606091505b509150915061352f82828661353a565b979650505050505050565b60608315613549575081612fca565b8251156135595782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104359190613c94565b73ffffffffffffffffffffffffffffffffffffffff81168114611f8157600080fd5b80356135ba8161358d565b919050565b6000602082840312156135d157600080fd5b8135612fca8161358d565b803567ffffffffffffffff811681146135ba57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261363457600080fd5b813567ffffffffffffffff8082111561364f5761364f6135f4565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613695576136956135f4565b816040528381528660208588010111156136ae57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060008060006101208a8c0312156136ed57600080fd5b89356136f88161358d565b985060208a01356137088161358d565b975061371660408b016135af565b965060608a0135955060808a0135945060a08a0135935061373960c08b016135dc565b925060e08a013567ffffffffffffffff8082111561375657600080fd5b6137628d838e01613623565b93506101008c013591508082111561377957600080fd5b506137868c828d01613623565b9150509295985092959850929598565b600080600080608085870312156137ac57600080fd5b84356137b78161358d565b93506137c5602086016135dc565b9250604085013567ffffffffffffffff8111156137e157600080fd5b6137ed87828801613623565b949793965093946060013593505050565b600080600080600080600080610100898b03121561381b57600080fd5b88356138268161358d565b975060208901356138368161358d565b965060408901359550606089013594506080890135935061385960a08a016135dc565b925060c089013567ffffffffffffffff8082111561387657600080fd5b6138828c838d01613623565b935060e08b013591508082111561389857600080fd5b506138a58b828c01613623565b9150509295985092959890939650565b60008060008060008060c087890312156138ce57600080fd5b86356138d98161358d565b955060208701356138e98161358d565b9450604087013593506138fe606088016135dc565b9250608087013567ffffffffffffffff8082111561391b57600080fd5b6139278a838b01613623565b935060a089013591508082111561393d57600080fd5b5061394a89828a01613623565b9150509295509295509295565b600080600080600060a0868803121561396f57600080fd5b853561397a8161358d565b94506020860135935061398f604087016135dc565b9250606086013567ffffffffffffffff808211156139ac57600080fd5b6139b889838a01613623565b935060808801359150808211156139ce57600080fd5b506139db88828901613623565b9150509295509295909350565b6000602082840312156139fa57600080fd5b5051919050565b600060208284031215613a1357600080fd5b815160ff81168114612fca57600080fd5b60005b83811015613a3f578181015183820152602001613a27565b83811115612e225750506000910152565b60008151808452613a68816020860160208601613a24565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff8616815267ffffffffffffffff8516602082015260a060408201526000613ad960a0830186613a50565b8460608401528281036080840152613af18185613a50565b98975050505050505050565b600060208284031215613b0f57600080fd5b81518015158114612fca57600080fd5b67ffffffffffffffff8616815260a060208201526000613b4260a0830187613a50565b604083019590955250606081019290925260809091015292915050565b73ffffffffffffffffffffffffffffffffffffffff8516815267ffffffffffffffff84166020820152608060408201526000613b9e6080830185613a50565b905082606083015295945050505050565b600060208284031215613bc157600080fd5b8151612fca8161358d565b600073ffffffffffffffffffffffffffffffffffffffff808916835280881660208401525067ffffffffffffffff8616604083015260c06060830152613c1560c0830186613a50565b84608084015282810360a0840152613c2d8185613a50565b9998505050505050505050565b600082821015613c73577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500390565b60008251613c8a818460208701613a24565b9190910192915050565b602081526000612fca6020830184613a5056fea26469706673582212206f845206896007a195a998b09540d327a543c55a3de7c030e1ad8d7bdbb9909264736f6c63430008080033
Deployed Bytecode
0x6080604052600436106101445760003560e01c8063839b40f2116100c0578063b8c6fd8411610074578063e78cea9211610059578063e78cea9214610358578063f2fde38b14610385578063f62d33c2146103a557600080fd5b8063b8c6fd841461030b578063c415b95c1461032b57600080fd5b80638da5cb5b116100a55780638da5cb5b146102ad578063a42dce80146102d8578063ab4d4be8146102f857600080fd5b8063839b40f2146102835780638456cb591461029857600080fd5b80633f4ba83a116101175780634f0e0ef3116100fc5780634f0e0ef3146101e15780635c975abb146102335780636a4234eb1461026357600080fd5b80633f4ba83a146101b9578063479d29e5146101ce57600080fd5b80630b26cf661461014957806319ccecbe1461016b5780632425fa26146101935780633b8f599c146101a6575b600080fd5b34801561015557600080fd5b506101696101643660046135bf565b6103b8565b005b61017e6101793660046136ce565b6104b8565b60405190151581526020015b60405180910390f35b61017e6101a1366004613796565b610c31565b61017e6101b43660046137fe565b611016565b3480156101c557600080fd5b50610169611828565b61017e6101dc3660046138b5565b6118b3565b3480156101ed57600080fd5b5060045461020e9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161018a565b34801561023f57600080fd5b5060005474010000000000000000000000000000000000000000900460ff1661017e565b34801561026f57600080fd5b5061016961027e3660046135bf565b611db0565b34801561028f57600080fd5b50610169611ea4565b3480156102a457600080fd5b50610169611f84565b3480156102b957600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661020e565b3480156102e457600080fd5b506101696102f33660046135bf565b61200d565b61017e610306366004613957565b612101565b34801561031757600080fd5b506101696103263660046135bf565b6124e9565b34801561033757600080fd5b5060035461020e9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561036457600080fd5b5060025461020e9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561039157600080fd5b506101696103a03660046135bf565b61262e565b61017e6103b3366004613957565b61275b565b60005473ffffffffffffffffffffffffffffffffffffffff16331461043e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f449973c418c4a6a21741606c661bbe051913a2a2fb91a2ce79021a334475cfe5906020015b60405180910390a150565b600060026001541415610527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff16156105b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b15801561061957600080fd5b505afa15801561062d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065191906139e8565b90508351600014156106bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601484015173ffffffffffffffffffffffffffffffffffffffff8116610741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b5061076473ffffffffffffffffffffffffffffffffffffffff8b1633308b612d46565b61078673ffffffffffffffffffffffffffffffffffffffff8b168c6000612e28565b6107a773ffffffffffffffffffffffffffffffffffffffff8b168c8a612e28565b6040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b811660048301528c919082169063916955869082906366c0bd249060240160206040518083038186803b15801561081957600080fd5b505afa15801561082d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108519190613a01565b6040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e811660048301528516906366c0bd249060240160206040518083038186803b1580156108b857600080fd5b505afa1580156108cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f09190613a01565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604481018c9052606481018b9052608481018a905260a401602060405180830381600087803b15801561095f57600080fd5b505af1158015610973573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099791906139e8565b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090610a4690839073ffffffffffffffffffffffffffffffffffffffff8d16906370a08231906024015b60206040518083038186803b158015610a0857600080fd5b505afa158015610a1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4091906139e8565b90612fbe565b600254909150610a719073ffffffffffffffffffffffffffffffffffffffff8c811691166000612e28565b600254610a989073ffffffffffffffffffffffffffffffffffffffff8c8116911683612e28565b6002546040517f302e123900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063302e123990610af6908d908a908a9087908b90600401613a9a565b602060405180830381600087803b158015610b1057600080fd5b505af1158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b489190613afd565b610bae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6272696467654f7574206661696c0000000000000000000000000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e888885346002604051610c14959493929190613b1f565b60405180910390a3505060018080559a9950505050505050505050565b600060026001541415610ca0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff1615610d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b8251610d92576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff8116610e14576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b610e3673ffffffffffffffffffffffffffffffffffffffff8716333086612d46565b600254610e5e9073ffffffffffffffffffffffffffffffffffffffff88811691166000612e28565b600254610e859073ffffffffffffffffffffffffffffffffffffffff888116911685612e28565b6002546040517f2425fa2600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632425fa2690610ee1908990899089908990600401613b5f565b602060405180830381600087803b158015610efb57600080fd5b505af1158015610f0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f339190613afd565b610f99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6272696467654f7574416e645769746864726177206661696c000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e878787346006604051610fff959493929190613b1f565b60405180910390a350506001808055949350505050565b600060026001541415611085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff161561110f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b86341015611179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f696e73756666696369656e742066756e640000000000000000000000000000006044820152606401610435565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8a16906370a082319060240160206040518083038186803b1580156111e157600080fd5b505afa1580156111f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121991906139e8565b9050835160001415611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601484015173ffffffffffffffffffffffffffffffffffffffff8116611309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b5060048054604080517fd0e30db0000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169263d0e30db0928c92808301926000929182900301818588803b15801561137557600080fd5b505af1158015611389573d6000803e3d6000fd5b50506004546113b5935073ffffffffffffffffffffffffffffffffffffffff1691508c90506000612e28565b6004546113d99073ffffffffffffffffffffffffffffffffffffffff168b8a612e28565b600480546040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff918216928101929092528b919082169063916955869082906366c0bd249060240160206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114899190613a01565b6040517f66c0bd2400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8e811660048301528516906366c0bd249060240160206040518083038186803b1580156114f057600080fd5b505afa158015611504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115289190613a01565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260ff928316600482015291166024820152604481018c9052606481018b9052608481018a905260a401602060405180830381600087803b15801561159757600080fd5b505af11580156115ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cf91906139e8565b50506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009061162c90839073ffffffffffffffffffffffffffffffffffffffff8d16906370a08231906024016109f0565b6002549091506116579073ffffffffffffffffffffffffffffffffffffffff8c811691166000612e28565b60025461167e9073ffffffffffffffffffffffffffffffffffffffff8c8116911683612e28565b6002546040517f302e123900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063302e1239906116dc908d908a908a9087908b90600401613a9a565b602060405180830381600087803b1580156116f657600080fd5b505af115801561170a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172e9190613afd565b611794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6272696467654f7574206661696c0000000000000000000000000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e8888856117f98f34612fbe90919063ffffffff16565b600360405161180c959493929190613b1f565b60405180910390a3505060018080559998505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146118a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b6118b1612fd1565b565b600060026001541415611922576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff16156119ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b8673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1663db77e2b26040518163ffffffff1660e01b815260040160206040518083038186803b158015611a0957600080fd5b505afa158015611a1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a419190613baf565b73ffffffffffffffffffffffffffffffffffffffff1614611abe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f696e76616c69642070746f6b656e202f206f726967696e616c546f6b656e00006044820152606401610435565b8251611b26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff8116611ba8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b50611bcb73ffffffffffffffffffffffffffffffffffffffff8816333088612d46565b600254611bf39073ffffffffffffffffffffffffffffffffffffffff89811691166000612e28565b600254611c1a9073ffffffffffffffffffffffffffffffffffffffff898116911687612e28565b6002546040517f356683a900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063356683a990611c7a908a908a90899089908c908a90600401613bcc565b602060405180830381600087803b158015611c9457600080fd5b505af1158015611ca8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ccc9190613afd565b611d32576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6465706f736974416e644272696467654f7574206661696c00000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e868689346004604051611d98959493929190613b1f565b60405180910390a35060018080559695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611e31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fd62b4f5dbbfa4083b3f7dd0a9bf3f444ab3dc97e475deba37a747b5b2631e567906020016104ad565b60035473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f742066656520636f6c6c6563746f720000000000000000000000000000006044820152606401610435565b60035460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015611f81573d6000803e3d6000fd5b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314612005576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b6118b16130ca565b60005473ffffffffffffffffffffffffffffffffffffffff16331461208e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fd649da8f6092116f86ea4e5139de0b75ad371d823918d16368ba3ff09a5cbc9f906020016104ad565b600060026001541415612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff16156121fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b8251612262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff81166122e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b61230673ffffffffffffffffffffffffffffffffffffffff8816333089612d46565b60025461232e9073ffffffffffffffffffffffffffffffffffffffff89811691166000612e28565b6002546123559073ffffffffffffffffffffffffffffffffffffffff898116911688612e28565b6002546040517f302e123900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063302e1239906123b3908a90899089908c908a90600401613a9a565b602060405180830381600087803b1580156123cd57600080fd5b505af11580156123e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124059190613afd565b61246b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6272696467654f7574206661696c0000000000000000000000000000000000006044820152606401610435565b3373ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e87878a3460016040516124d1959493929190613b1f565b60405180910390a35050600180805595945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b8061262a336040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8416906370a082319060240160206040518083038186803b1580156125d457600080fd5b505afa1580156125e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061260c91906139e8565b73ffffffffffffffffffffffffffffffffffffffff841691906131b6565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146126af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610435565b73ffffffffffffffffffffffffffffffffffffffff8116612752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610435565b611f818161320c565b6000600260015414156127ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610435565b600260015560005474010000000000000000000000000000000000000000900460ff1615612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b843410156128be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f696e73756666696369656e742066756e640000000000000000000000000000006044820152606401610435565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1663db77e2b26040518163ffffffff1660e01b815260040160206040518083038186803b15801561293d57600080fd5b505afa158015612951573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129759190613baf565b73ffffffffffffffffffffffffffffffffffffffff16146129f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f696e76616c69642070746f6b656e0000000000000000000000000000000000006044820152606401610435565b8251612a5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f656d70747920746f4164647265737300000000000000000000000000000000006044820152606401610435565b601483015173ffffffffffffffffffffffffffffffffffffffff8116612adc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f7a65726f20746f416464726573730000000000000000000000000000000000006044820152606401610435565b5060048054604080517fd0e30db0000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169263d0e30db0928992808301926000929182900301818588803b158015612b4857600080fd5b505af1158015612b5c573d6000803e3d6000fd5b5050600254600454612b8d945073ffffffffffffffffffffffffffffffffffffffff90811693501690506000612e28565b600254600454612bb79173ffffffffffffffffffffffffffffffffffffffff918216911687612e28565b600254600480546040517f356683a900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9384169363356683a993612c1b93909116918b918a918a918d918b9101613bcc565b602060405180830381600087803b158015612c3557600080fd5b505af1158015612c49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c6d9190613afd565b612cd3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6465706f736974416e644272696467654f7574206661696c00000000000000006044820152606401610435565b600454339073ffffffffffffffffffffffffffffffffffffffff167f2b0591052cc6602e870d3994f0a1b173fdac98c215cb3b0baf84eaca5a0aa81e868689612d1c3482612fbe565b6005604051612d2f959493929190613b1f565b60405180910390a350600180805595945050505050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052612e229085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613281565b50505050565b801580612ed757506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b158015612e9d57600080fd5b505afa158015612eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed591906139e8565b155b612f63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610435565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fb99084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401612da0565b505050565b6000612fca8284613c3a565b9392505050565b60005474010000000000000000000000000000000000000000900460ff16613055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610435565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60005474010000000000000000000000000000000000000000900460ff161561314f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610435565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130a03390565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052612fb99084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401612da0565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006132e3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661338d9092919063ffffffff16565b805190915015612fb957808060200190518101906133019190613afd565b612fb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610435565b606061339c84846000856133a4565b949350505050565b606082471015613436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610435565b73ffffffffffffffffffffffffffffffffffffffff85163b6134b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610435565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516134dd9190613c78565b60006040518083038185875af1925050503d806000811461351a576040519150601f19603f3d011682016040523d82523d6000602084013e61351f565b606091505b509150915061352f82828661353a565b979650505050505050565b60608315613549575081612fca565b8251156135595782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104359190613c94565b73ffffffffffffffffffffffffffffffffffffffff81168114611f8157600080fd5b80356135ba8161358d565b919050565b6000602082840312156135d157600080fd5b8135612fca8161358d565b803567ffffffffffffffff811681146135ba57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261363457600080fd5b813567ffffffffffffffff8082111561364f5761364f6135f4565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715613695576136956135f4565b816040528381528660208588010111156136ae57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060008060006101208a8c0312156136ed57600080fd5b89356136f88161358d565b985060208a01356137088161358d565b975061371660408b016135af565b965060608a0135955060808a0135945060a08a0135935061373960c08b016135dc565b925060e08a013567ffffffffffffffff8082111561375657600080fd5b6137628d838e01613623565b93506101008c013591508082111561377957600080fd5b506137868c828d01613623565b9150509295985092959850929598565b600080600080608085870312156137ac57600080fd5b84356137b78161358d565b93506137c5602086016135dc565b9250604085013567ffffffffffffffff8111156137e157600080fd5b6137ed87828801613623565b949793965093946060013593505050565b600080600080600080600080610100898b03121561381b57600080fd5b88356138268161358d565b975060208901356138368161358d565b965060408901359550606089013594506080890135935061385960a08a016135dc565b925060c089013567ffffffffffffffff8082111561387657600080fd5b6138828c838d01613623565b935060e08b013591508082111561389857600080fd5b506138a58b828c01613623565b9150509295985092959890939650565b60008060008060008060c087890312156138ce57600080fd5b86356138d98161358d565b955060208701356138e98161358d565b9450604087013593506138fe606088016135dc565b9250608087013567ffffffffffffffff8082111561391b57600080fd5b6139278a838b01613623565b935060a089013591508082111561393d57600080fd5b5061394a89828a01613623565b9150509295509295509295565b600080600080600060a0868803121561396f57600080fd5b853561397a8161358d565b94506020860135935061398f604087016135dc565b9250606086013567ffffffffffffffff808211156139ac57600080fd5b6139b889838a01613623565b935060808801359150808211156139ce57600080fd5b506139db88828901613623565b9150509295509295909350565b6000602082840312156139fa57600080fd5b5051919050565b600060208284031215613a1357600080fd5b815160ff81168114612fca57600080fd5b60005b83811015613a3f578181015183820152602001613a27565b83811115612e225750506000910152565b60008151808452613a68816020860160208601613a24565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff8616815267ffffffffffffffff8516602082015260a060408201526000613ad960a0830186613a50565b8460608401528281036080840152613af18185613a50565b98975050505050505050565b600060208284031215613b0f57600080fd5b81518015158114612fca57600080fd5b67ffffffffffffffff8616815260a060208201526000613b4260a0830187613a50565b604083019590955250606081019290925260809091015292915050565b73ffffffffffffffffffffffffffffffffffffffff8516815267ffffffffffffffff84166020820152608060408201526000613b9e6080830185613a50565b905082606083015295945050505050565b600060208284031215613bc157600080fd5b8151612fca8161358d565b600073ffffffffffffffffffffffffffffffffffffffff808916835280881660208401525067ffffffffffffffff8616604083015260c06060830152613c1560c0830186613a50565b84608084015282810360a0840152613c2d8185613a50565b9998505050505050505050565b600082821015613c73577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500390565b60008251613c8a818460208701613a24565b9190910192915050565b602081526000612fca6020830184613a5056fea26469706673582212206f845206896007a195a998b09540d327a543c55a3de7c030e1ad8d7bdbb9909264736f6c63430008080033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.