Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
StargateReceiver
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "../helpers/Ownable.sol"; interface IStargateReceiver { function sgReceive( uint16 _srcChainId, // the remote chainId sending the tokens bytes memory _srcAddress, // the remote Bridge address uint256 _nonce, address _token, // the token contract on the local chain uint256 amountLD, // the qty of local _token contract tokens bytes memory payload ) external; } contract StargateReceiver is Ownable, Pausable, ReentrancyGuard, IStargateReceiver { using SafeERC20 for IERC20; address public stargateRouter; address public NATIVE_TOKEN_ADDRESS; uint256 public defaultGas; mapping(address => bool) public blockList; event UpdateStargateRouterAddress(address indexed stargateRouterAddress); event PayloadExecuted( address indexed toAddress, uint256 amount, address token ); event AddressBlocked(address indexed blockedAddress); event AddressUnblocked(address indexed unblockedAddress); error StargateRouterOnly(); error AddressBlockedError(); error PayloadExectionFailed(); constructor( address _stargateRouter, address _nativeTokenAddress, address _owner, uint256 _defaultGas ) Ownable(_owner) { stargateRouter = _stargateRouter; NATIVE_TOKEN_ADDRESS = _nativeTokenAddress; defaultGas = _defaultGas; } modifier onlyStargateRouter() { if(msg.sender != stargateRouter) revert StargateRouterOnly(); _; } modifier notBlocked(address _address) { if(blockList[_address]) revert AddressBlockedError(); _; } function blockAddress(address _address) external onlyOwner { blockList[_address] = true; emit AddressBlocked(_address); } function unblockAddress(address _address) external onlyOwner { blockList[_address] = false; emit AddressUnblocked(_address); } function setDefaultGas(uint256 _defaultGas) external onlyOwner { defaultGas = _defaultGas; } function setPause() public onlyOwner returns (bool) { _pause(); return paused(); } function setUnPause() public onlyOwner returns (bool) { _unpause(); return paused(); } function updateStargateRouterAddress(address newStargateRouter) external onlyOwner { stargateRouter = newStargateRouter; emit UpdateStargateRouterAddress(newStargateRouter); } function rescueFunds( address token, address userAddress, uint256 amount ) external onlyOwner { IERC20(token).safeTransfer(userAddress, amount); } function rescueEther(address payable userAddress, uint256 amount) external onlyOwner { userAddress.transfer(amount); } function sgReceive( uint16, // the remote chainId sending the tokens bytes memory, // the remote Bridge address uint256, address token, // the token contract on the local chain uint256 amountLD, // the qty of local _token contract tokens bytes memory payload ) external override onlyStargateRouter nonReentrant whenNotPaused { (address payable toAddress, bytes memory dataPayload) = abi.decode( payload, (address, bytes) ); perfomAction(token, amountLD, toAddress, dataPayload); } function perfomAction( address token, uint256 amountLD, address payable toAddress, bytes memory dataPayload ) private notBlocked(toAddress) { if (token == NATIVE_TOKEN_ADDRESS) { (bool success, ) = toAddress.call{ gas: gasleft() - defaultGas, value: amountLD }(dataPayload); if(!success) { revert PayloadExectionFailed(); } } else { IERC20(token).safeIncreaseAllowance(toAddress, amountLD); (bool success, ) = toAddress.call{gas: gasleft() - defaultGas}( dataPayload ); IERC20(token).safeDecreaseAllowance(toAddress, 0); if(!success) { revert PayloadExectionFailed(); } } emit PayloadExecuted(toAddress, amountLD, token); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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()); } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.4; abstract contract Ownable { address private _owner; address private _nominee; event OwnerNominated(address indexed nominee); event OwnerClaimed(address indexed claimer); error OnlyOwner(); error OnlyNominee(); constructor(address owner_) { _claimOwner(owner_); } modifier onlyOwner() { if (msg.sender != _owner) { revert OnlyOwner(); } _; } function owner() public view returns (address) { return _owner; } function nominee() public view returns (address) { return _nominee; } function nominateOwner(address nominee_) external { if (msg.sender != _owner) { revert OnlyOwner(); } _nominee = nominee_; emit OwnerNominated(_nominee); } function claimOwner() external { if (msg.sender != _nominee) { revert OnlyNominee(); } _claimOwner(msg.sender); } function _claimOwner(address claimer_) internal { _owner = claimer_; _nominee = address(0); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stargateRouter","type":"address"},{"internalType":"address","name":"_nativeTokenAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_defaultGas","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressBlockedError","type":"error"},{"inputs":[],"name":"OnlyNominee","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[],"name":"PayloadExectionFailed","type":"error"},{"inputs":[],"name":"StargateRouterOnly","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"blockedAddress","type":"address"}],"name":"AddressBlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"unblockedAddress","type":"address"}],"name":"AddressUnblocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"}],"name":"OwnerClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nominee","type":"address"}],"name":"OwnerNominated","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":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"PayloadExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"stargateRouterAddress","type":"address"}],"name":"UpdateStargateRouterAddress","type":"event"},{"inputs":[],"name":"NATIVE_TOKEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"blockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nominee_","type":"address"}],"name":"nominateOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominee","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"userAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultGas","type":"uint256"}],"name":"setDefaultGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUnPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"sgReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stargateRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"unblockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newStargateRouter","type":"address"}],"name":"updateStargateRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620014e1380380620014e18339810160408190526200003491620000ae565b600080546001600160a01b039384166001600160a01b031991821617909155600180546001600160a81b031916815560025560038054821695841695909517909455600480549094169290911691909117909155600555620000ff565b80516001600160a01b0381168114620000a957600080fd5b919050565b60008060008060808587031215620000c4578384fd5b620000cf8562000091565b9350620000df6020860162000091565b9250620000ef6040860162000091565b6060959095015193969295505050565b6113d2806200010f6000396000f3fe60806040526004361061012d5760003560e01c80638da5cb5b116100a5578063b539928311610074578063d431b1ac11610059578063d431b1ac14610339578063df2ebdbb1461034e578063e42e0ea91461036e57600080fd5b8063b5399283146102f4578063c537a1b11461032457600080fd5b80638da5cb5b14610276578063a9e56f3c14610294578063ab8236f3146102b4578063ad2bb1b3146102d457600080fd5b8063497e2938116100fc5780635c975abb116100e15780635c975abb146102075780636ccae0541461023257806384e9a9011461025257600080fd5b8063497e2938146101c75780635b94db27146101e757600080fd5b806307cfe4ad14610139578063186d9d881461015b57806320f99c0a1461017b5780633bd1adec146101b257600080fd5b3661013457005b600080fd5b34801561014557600080fd5b5061015961015436600461124e565b61038e565b005b34801561016757600080fd5b5061015961017636600461107e565b6103be565b34801561018757600080fd5b506001546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101be57600080fd5b50610159610432565b3480156101d357600080fd5b506101596101e236600461107e565b61048c565b3480156101f357600080fd5b5061015961020236600461107e565b61050e565b34801561021357600080fd5b50600154600160a01b900460ff165b60405190151581526020016101a9565b34801561023e57600080fd5b5061015961024d36600461114e565b610590565b34801561025e57600080fd5b5061026860055481565b6040519081526020016101a9565b34801561028257600080fd5b506000546001600160a01b0316610195565b3480156102a057600080fd5b50600354610195906001600160a01b031681565b3480156102c057600080fd5b506101596102cf3660046111ae565b6105d4565b3480156102e057600080fd5b506101596102ef36600461107e565b610698565b34801561030057600080fd5b5061022261030f36600461107e565b60066020526000908152604090205460ff1681565b34801561033057600080fd5b5061022261070f565b34801561034557600080fd5b50610222610755565b34801561035a57600080fd5b50600454610195906001600160a01b031681565b34801561037a57600080fd5b50610159610389366004611123565b610789565b6000546001600160a01b031633146103b957604051635fc483c560e01b815260040160405180910390fd5b600555565b6000546001600160a01b031633146103e957604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19169055517f385b21b54e2348e690dec29e9741026142b02eaabfcc2fcb676cebcb7cd165349190a250565b6001546001600160a01b0316331461045d57604051637c91ccdd60e01b815260040160405180910390fd5b6000805473ffffffffffffffffffffffffffffffffffffffff199081163317909155600180549091169055565b565b6000546001600160a01b031633146104b757604051635fc483c560e01b815260040160405180910390fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f8cc64bb5c8b79123d48ddb4899fbf94c9d8069977cb710cfc3d9a09b205da28690600090a250565b6000546001600160a01b0316331461053957604051635fc483c560e01b815260040160405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290600090a250565b6000546001600160a01b031633146105bb57604051635fc483c560e01b815260040160405180910390fd5b6105cf6001600160a01b03841683836107ea565b505050565b6003546001600160a01b031633146105ff5760405163b05ff39960e01b815260040160405180910390fd5b6002805414156106565760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002805561066261087a565b60008082806020019051810190610679919061109a565b91509150610689858584846108d4565b50506001600255505050505050565b6000546001600160a01b031633146106c357604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19166001179055517f71fa9c99da9552de60a9ccf693f5a91456cbb8c205c8e532b1f55339903543cf9190a250565b600080546001600160a01b0316331461073b57604051635fc483c560e01b815260040160405180910390fd5b610743610ac0565b600154600160a01b900460ff16905090565b600080546001600160a01b0316331461078157604051635fc483c560e01b815260040160405180910390fd5b610743610b15565b6000546001600160a01b031633146107b457604051635fc483c560e01b815260040160405180910390fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156105cf573d6000803e3d6000fd5b6040516001600160a01b0383166024820152604481018290526105cf90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610b58565b600154600160a01b900460ff161561048a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161064d565b6001600160a01b038216600090815260066020526040902054829060ff16156109105760405163477c8ea360e01b815260040160405180910390fd5b6004546001600160a01b03868116911614156109ba576000836001600160a01b03166005545a610940919061133e565b868560405161094f919061127e565b600060405180830381858888f193505050503d806000811461098d576040519150601f19603f3d011682016040523d82523d6000602084013e610992565b606091505b50509050806109b457604051631eb8bdfd60e21b815260040160405180910390fd5b50610a74565b6109ce6001600160a01b0386168486610c3d565b6000836001600160a01b03166005545a6109e8919061133e565b846040516109f6919061127e565b60006040518083038160008787f1925050503d8060008114610a34576040519150601f19603f3d011682016040523d82523d6000602084013e610a39565b606091505b50909150610a5490506001600160a01b038716856000610d04565b80610a7257604051631eb8bdfd60e21b815260040160405180910390fd5b505b604080518581526001600160a01b0387811660208301528516917f0b256cd8bface10b9eb001ce8039b92fc55cbfbede90663fcd3d9dfffa4245ff910160405180910390a25050505050565b610ac8610e3a565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610b1d61087a565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610af83390565b6000610bad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e939092919063ffffffff16565b8051909150156105cf5780806020019051810190610bcb919061118e565b6105cf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161064d565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015610c8957600080fd5b505afa158015610c9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc19190611266565b610ccb9190611326565b6040516001600160a01b038516602482015260448101829052909150610cfe90859063095ea7b360e01b90606401610816565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e9060440160206040518083038186803b158015610d4f57600080fd5b505afa158015610d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d879190611266565b905081811015610dff5760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e6365206260448201527f656c6f77207a65726f0000000000000000000000000000000000000000000000606482015260840161064d565b6040516001600160a01b03841660248201528282036044820181905290610e3390869063095ea7b360e01b90606401610816565b5050505050565b600154600160a01b900460ff1661048a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161064d565b6060610ea28484600085610eac565b90505b9392505050565b606082471015610f245760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161064d565b6001600160a01b0385163b610f7b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161064d565b600080866001600160a01b03168587604051610f97919061127e565b60006040518083038185875af1925050503d8060008114610fd4576040519150601f19603f3d011682016040523d82523d6000602084013e610fd9565b606091505b5091509150610fe9828286610ff4565b979650505050505050565b60608315611003575081610ea5565b8251156110135782518084602001fd5b8160405162461bcd60e51b815260040161064d919061129a565b600082601f83011261103d578081fd5b813561105061104b826112fe565b6112cd565b818152846020838601011115611064578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561108f578081fd5b8135610ea5816113ad565b600080604083850312156110ac578081fd5b82516110b7816113ad565b602084015190925067ffffffffffffffff8111156110d3578182fd5b8301601f810185136110e3578182fd5b80516110f161104b826112fe565b818152866020838501011115611105578384fd5b611116826020830160208601611355565b8093505050509250929050565b60008060408385031215611135578182fd5b8235611140816113ad565b946020939093013593505050565b600080600060608486031215611162578081fd5b833561116d816113ad565b9250602084013561117d816113ad565b929592945050506040919091013590565b60006020828403121561119f578081fd5b81518015158114610ea5578182fd5b60008060008060008060c087890312156111c6578182fd5b863561ffff811681146111d7578283fd5b9550602087013567ffffffffffffffff808211156111f3578384fd5b6111ff8a838b0161102d565b96506040890135955060608901359150611218826113ad565b9093506080880135925060a08801359080821115611234578283fd5b5061124189828a0161102d565b9150509295509295509295565b60006020828403121561125f578081fd5b5035919050565b600060208284031215611277578081fd5b5051919050565b60008251611290818460208701611355565b9190910192915050565b60208152600082518060208401526112b9816040850160208701611355565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff811182821017156112f6576112f6611397565b604052919050565b600067ffffffffffffffff82111561131857611318611397565b50601f01601f191660200190565b6000821982111561133957611339611381565b500190565b60008282101561135057611350611381565b500390565b60005b83811015611370578181015183820152602001611358565b83811115610cfe5750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113c257600080fd5b5056fea164736f6c6343000804000a0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e9800000000000000000000000072e2f4830b9e45d52f80ac08cb2bec0fef72ed9c00000000000000000000000086791c7b7ea5f77b1612ecc300dd44ba3a1c90830000000000000000000000000000000000000000000000000000000000007530
Deployed Bytecode
0x60806040526004361061012d5760003560e01c80638da5cb5b116100a5578063b539928311610074578063d431b1ac11610059578063d431b1ac14610339578063df2ebdbb1461034e578063e42e0ea91461036e57600080fd5b8063b5399283146102f4578063c537a1b11461032457600080fd5b80638da5cb5b14610276578063a9e56f3c14610294578063ab8236f3146102b4578063ad2bb1b3146102d457600080fd5b8063497e2938116100fc5780635c975abb116100e15780635c975abb146102075780636ccae0541461023257806384e9a9011461025257600080fd5b8063497e2938146101c75780635b94db27146101e757600080fd5b806307cfe4ad14610139578063186d9d881461015b57806320f99c0a1461017b5780633bd1adec146101b257600080fd5b3661013457005b600080fd5b34801561014557600080fd5b5061015961015436600461124e565b61038e565b005b34801561016757600080fd5b5061015961017636600461107e565b6103be565b34801561018757600080fd5b506001546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101be57600080fd5b50610159610432565b3480156101d357600080fd5b506101596101e236600461107e565b61048c565b3480156101f357600080fd5b5061015961020236600461107e565b61050e565b34801561021357600080fd5b50600154600160a01b900460ff165b60405190151581526020016101a9565b34801561023e57600080fd5b5061015961024d36600461114e565b610590565b34801561025e57600080fd5b5061026860055481565b6040519081526020016101a9565b34801561028257600080fd5b506000546001600160a01b0316610195565b3480156102a057600080fd5b50600354610195906001600160a01b031681565b3480156102c057600080fd5b506101596102cf3660046111ae565b6105d4565b3480156102e057600080fd5b506101596102ef36600461107e565b610698565b34801561030057600080fd5b5061022261030f36600461107e565b60066020526000908152604090205460ff1681565b34801561033057600080fd5b5061022261070f565b34801561034557600080fd5b50610222610755565b34801561035a57600080fd5b50600454610195906001600160a01b031681565b34801561037a57600080fd5b50610159610389366004611123565b610789565b6000546001600160a01b031633146103b957604051635fc483c560e01b815260040160405180910390fd5b600555565b6000546001600160a01b031633146103e957604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19169055517f385b21b54e2348e690dec29e9741026142b02eaabfcc2fcb676cebcb7cd165349190a250565b6001546001600160a01b0316331461045d57604051637c91ccdd60e01b815260040160405180910390fd5b6000805473ffffffffffffffffffffffffffffffffffffffff199081163317909155600180549091169055565b565b6000546001600160a01b031633146104b757604051635fc483c560e01b815260040160405180910390fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f8cc64bb5c8b79123d48ddb4899fbf94c9d8069977cb710cfc3d9a09b205da28690600090a250565b6000546001600160a01b0316331461053957604051635fc483c560e01b815260040160405180910390fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2290600090a250565b6000546001600160a01b031633146105bb57604051635fc483c560e01b815260040160405180910390fd5b6105cf6001600160a01b03841683836107ea565b505050565b6003546001600160a01b031633146105ff5760405163b05ff39960e01b815260040160405180910390fd5b6002805414156106565760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002805561066261087a565b60008082806020019051810190610679919061109a565b91509150610689858584846108d4565b50506001600255505050505050565b6000546001600160a01b031633146106c357604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b038116600081815260066020526040808220805460ff19166001179055517f71fa9c99da9552de60a9ccf693f5a91456cbb8c205c8e532b1f55339903543cf9190a250565b600080546001600160a01b0316331461073b57604051635fc483c560e01b815260040160405180910390fd5b610743610ac0565b600154600160a01b900460ff16905090565b600080546001600160a01b0316331461078157604051635fc483c560e01b815260040160405180910390fd5b610743610b15565b6000546001600160a01b031633146107b457604051635fc483c560e01b815260040160405180910390fd5b6040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156105cf573d6000803e3d6000fd5b6040516001600160a01b0383166024820152604481018290526105cf90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610b58565b600154600160a01b900460ff161561048a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161064d565b6001600160a01b038216600090815260066020526040902054829060ff16156109105760405163477c8ea360e01b815260040160405180910390fd5b6004546001600160a01b03868116911614156109ba576000836001600160a01b03166005545a610940919061133e565b868560405161094f919061127e565b600060405180830381858888f193505050503d806000811461098d576040519150601f19603f3d011682016040523d82523d6000602084013e610992565b606091505b50509050806109b457604051631eb8bdfd60e21b815260040160405180910390fd5b50610a74565b6109ce6001600160a01b0386168486610c3d565b6000836001600160a01b03166005545a6109e8919061133e565b846040516109f6919061127e565b60006040518083038160008787f1925050503d8060008114610a34576040519150601f19603f3d011682016040523d82523d6000602084013e610a39565b606091505b50909150610a5490506001600160a01b038716856000610d04565b80610a7257604051631eb8bdfd60e21b815260040160405180910390fd5b505b604080518581526001600160a01b0387811660208301528516917f0b256cd8bface10b9eb001ce8039b92fc55cbfbede90663fcd3d9dfffa4245ff910160405180910390a25050505050565b610ac8610e3a565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610b1d61087a565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610af83390565b6000610bad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e939092919063ffffffff16565b8051909150156105cf5780806020019051810190610bcb919061118e565b6105cf5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161064d565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015610c8957600080fd5b505afa158015610c9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc19190611266565b610ccb9190611326565b6040516001600160a01b038516602482015260448101829052909150610cfe90859063095ea7b360e01b90606401610816565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e9060440160206040518083038186803b158015610d4f57600080fd5b505afa158015610d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d879190611266565b905081811015610dff5760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e6365206260448201527f656c6f77207a65726f0000000000000000000000000000000000000000000000606482015260840161064d565b6040516001600160a01b03841660248201528282036044820181905290610e3390869063095ea7b360e01b90606401610816565b5050505050565b600154600160a01b900460ff1661048a5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161064d565b6060610ea28484600085610eac565b90505b9392505050565b606082471015610f245760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161064d565b6001600160a01b0385163b610f7b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161064d565b600080866001600160a01b03168587604051610f97919061127e565b60006040518083038185875af1925050503d8060008114610fd4576040519150601f19603f3d011682016040523d82523d6000602084013e610fd9565b606091505b5091509150610fe9828286610ff4565b979650505050505050565b60608315611003575081610ea5565b8251156110135782518084602001fd5b8160405162461bcd60e51b815260040161064d919061129a565b600082601f83011261103d578081fd5b813561105061104b826112fe565b6112cd565b818152846020838601011115611064578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561108f578081fd5b8135610ea5816113ad565b600080604083850312156110ac578081fd5b82516110b7816113ad565b602084015190925067ffffffffffffffff8111156110d3578182fd5b8301601f810185136110e3578182fd5b80516110f161104b826112fe565b818152866020838501011115611105578384fd5b611116826020830160208601611355565b8093505050509250929050565b60008060408385031215611135578182fd5b8235611140816113ad565b946020939093013593505050565b600080600060608486031215611162578081fd5b833561116d816113ad565b9250602084013561117d816113ad565b929592945050506040919091013590565b60006020828403121561119f578081fd5b81518015158114610ea5578182fd5b60008060008060008060c087890312156111c6578182fd5b863561ffff811681146111d7578283fd5b9550602087013567ffffffffffffffff808211156111f3578384fd5b6111ff8a838b0161102d565b96506040890135955060608901359150611218826113ad565b9093506080880135925060a08801359080821115611234578283fd5b5061124189828a0161102d565b9150509295509295509295565b60006020828403121561125f578081fd5b5035919050565b600060208284031215611277578081fd5b5051919050565b60008251611290818460208701611355565b9190910192915050565b60208152600082518060208401526112b9816040850160208701611355565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff811182821017156112f6576112f6611397565b604052919050565b600067ffffffffffffffff82111561131857611318611397565b50601f01601f191660200190565b6000821982111561133957611339611381565b500190565b60008282101561135057611350611381565b500390565b60005b83811015611370578181015183820152602001611358565b83811115610cfe5750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113c257600080fd5b5056fea164736f6c6343000804000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e9800000000000000000000000072e2f4830b9e45d52f80ac08cb2bec0fef72ed9c00000000000000000000000086791c7b7ea5f77b1612ecc300dd44ba3a1c90830000000000000000000000000000000000000000000000000000000000007530
-----Decoded View---------------
Arg [0] : _stargateRouter (address): 0x8731d54E9D02c286767d56ac03e8037C07e01e98
Arg [1] : _nativeTokenAddress (address): 0x72E2F4830b9E45d52F80aC08CB2bEC0FeF72eD9c
Arg [2] : _owner (address): 0x86791C7b7Ea5F77b1612eCc300dD44ba3A1C9083
Arg [3] : _defaultGas (uint256): 30000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008731d54e9d02c286767d56ac03e8037c07e01e98
Arg [1] : 00000000000000000000000072e2f4830b9e45d52f80ac08cb2bec0fef72ed9c
Arg [2] : 00000000000000000000000086791c7b7ea5f77b1612ecc300dd44ba3a1c9083
Arg [3] : 0000000000000000000000000000000000000000000000000000000000007530
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.