Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 188 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exit | 21295346 | 12 days ago | IN | 0 ETH | 0.00390833 | ||||
Initiate Exit | 21295340 | 12 days ago | IN | 0 ETH | 0.00655771 | ||||
Exit | 21295114 | 12 days ago | IN | 0 ETH | 0.03279476 | ||||
Initiate Exit | 21295109 | 12 days ago | IN | 0 ETH | 0.00737177 | ||||
Initiate Exit | 21295107 | 12 days ago | IN | 0 ETH | 0.00685791 | ||||
Initiate Exit | 21295106 | 12 days ago | IN | 0 ETH | 0.0070786 | ||||
Initiate Exit | 21295105 | 12 days ago | IN | 0 ETH | 0.00739957 | ||||
Initiate Exit | 21295103 | 12 days ago | IN | 0 ETH | 0.00737924 | ||||
Initiate Exit | 21295102 | 12 days ago | IN | 0 ETH | 0.0074015 | ||||
Initiate Exit | 21295101 | 12 days ago | IN | 0 ETH | 0.0073488 | ||||
Initiate Exit | 21295099 | 12 days ago | IN | 0 ETH | 0.00746909 | ||||
Initiate Exit | 21295095 | 12 days ago | IN | 0 ETH | 0.00689674 | ||||
Initiate Exit | 21295093 | 12 days ago | IN | 0 ETH | 0.00834129 | ||||
Initiate Exit | 21295092 | 12 days ago | IN | 0 ETH | 0.0074449 | ||||
Initiate Exit | 21295090 | 12 days ago | IN | 0 ETH | 0.00741969 | ||||
Initiate Exit | 21295089 | 12 days ago | IN | 0 ETH | 0.00717669 | ||||
Initiate Exit | 21295088 | 12 days ago | IN | 0 ETH | 0.00706114 | ||||
Initiate Exit | 21295087 | 12 days ago | IN | 0 ETH | 0.00670895 | ||||
Initiate Exit | 21295085 | 12 days ago | IN | 0 ETH | 0.00711822 | ||||
Initiate Exit | 21295083 | 13 days ago | IN | 0 ETH | 0.00689287 | ||||
Initiate Exit | 21295081 | 13 days ago | IN | 0 ETH | 0.00629721 | ||||
Initiate Exit | 21295077 | 13 days ago | IN | 0 ETH | 0.00694738 | ||||
Initiate Exit | 21295075 | 13 days ago | IN | 0 ETH | 0.00715465 | ||||
Initiate Exit | 21295074 | 13 days ago | IN | 0 ETH | 0.00655943 | ||||
Initiate Exit | 21295073 | 13 days ago | IN | 0 ETH | 0.00684811 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ShibBurn
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 5000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.24; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable2Step.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; // Extended interface for tokens with withdraw functionality interface IChildToken { function withdraw(uint256 amount) external payable; } // Interface to handle token burns through a predicate mechanism on a bridge. interface IERC20Predicate { function startExitWithBurntTokens(bytes calldata data) external; } // Interface for managing withdrawal processes for tokens, typically used with sidechain setups. interface IWithdrawManager { function processExits(address _token) external; } // Interface for the shibawap V2 Router to handle token swaps. interface IShibaswapV2Router { function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); } /// @title EIP1559 Token Burn Contract for burning Shiba Inu tokens /// @notice This contract facilitates the burning of a percentage of Shiba Inu tokens /// by swapping them through shibawap and then transferring them to the owner's address. /// @dev The contract uses OpenZeppelin's ReentrancyGuard for preventing reentrancy attacks /// and Ownable2Step for managing ownership. contract ShibBurn is ReentrancyGuard, Ownable2Step { using SafeERC20 for IERC20; IERC20 public immutable boneRootToken; IChildToken public immutable boneChildToken; IWithdrawManager public immutable withdrawManager; IShibaswapV2Router public shibaswapRouter; IERC20Predicate public erc20Predicate; address public immutable shibaInuTokenAddress; uint24 public immutable rootChainId; uint24 public immutable childChainId; uint256 public withdrawLimit; uint256 public totalShibBurn; uint8 public percentage; bool public exitFlag; address selfAddress = address(this); // Errors error WithdrawalLimitNotMet(); error ApprovalFailed(); error SameLimit(); error SameRouterAddress(); error SamePercentage(); event WithdrawInitiated(address indexed initiator, uint256 amount); event ExitInitiated(address indexed initiator); event TokensExitedAndBurned(address indexed executor, uint256 transferAmount, uint256 burnedAmount); event WithdrawLimitUpdated(uint256 newLimit); event RouterAddressUpdated(address newRouter); event PercentageUpdated(uint8 newPercentage); /// @dev Initializes contract with set parameters and transfers ownership to a predefined address. /// @param _boneRootToken Address of the bone token on the root chain. /// @param _withdrawManager Address of the withdraw manager for handling exits. /// @param _shibaswapRouterAddress Address of the shibawap V2 Router for token swaps. /// @param _shibaInuTokenAddress Address of the Shiba Inu token. /// @param _erc20Predicate Address of the ERC20 Predicate for token exits. /// @param ownerAddress Address to which ownership of the contract will be transferred. /// @param _initialPercentage Initial percentage of tokens to be transferred to the owner. constructor( IERC20 _boneRootToken, IWithdrawManager _withdrawManager, uint24 _rootChainId, uint24 _childChainId, address _shibaswapRouterAddress, address _shibaInuTokenAddress, IERC20Predicate _erc20Predicate, address ownerAddress, uint8 _initialPercentage ) Ownable(ownerAddress) { boneRootToken = _boneRootToken; withdrawManager = _withdrawManager; rootChainId = _rootChainId; childChainId = _childChainId; shibaswapRouter = IShibaswapV2Router(_shibaswapRouterAddress); shibaInuTokenAddress = _shibaInuTokenAddress; erc20Predicate = _erc20Predicate; boneChildToken = IChildToken(0x0000000000000000000000000000000000001010); percentage = _initialPercentage; } /// @dev Modifier to ensure function is called only on the root chain modifier onlyRootChain() { require(block.chainid == rootChainId, "ONLY_ROOT"); _; } /// @dev Modifier to ensure function is called only on the child chain modifier onlyChildChain() { require(block.chainid == childChainId, "ONLY_CHILD"); _; } /// @notice Updates the minimum balance required for withdrawals /// @param _limit The new withdrawal limit function updateWithdrawLimit(uint256 _limit) external onlyOwner { if (_limit == withdrawLimit) revert SameLimit(); withdrawLimit = _limit; emit WithdrawLimitUpdated(_limit); } /// @notice Sets a new address for the shibawap V2 Router /// @param _newshibaswapRouter The address of the new shibawap V2 Router function updateRouterAddress( IShibaswapV2Router _newshibaswapRouter ) external onlyOwner { if (address(_newshibaswapRouter) == address(shibaswapRouter)) revert SameRouterAddress(); shibaswapRouter = _newshibaswapRouter; emit RouterAddressUpdated(address(_newshibaswapRouter)); } /// @notice Changes the percentage of tokens to transfer before burning /// @param _per The new percentage function updatePercentage(uint8 _per) external onlyOwner { if (_per == percentage) revert SamePercentage(); percentage = _per; emit PercentageUpdated(_per); } /// @notice Withdraws tokens from the child chain if the balance is above the set limit /// @dev Protected against reentrancy attacks function withdraw() external nonReentrant onlyChildChain { uint256 amount = selfAddress.balance; if (amount < withdrawLimit) revert WithdrawalLimitNotMet(); boneChildToken.withdraw{value: amount}(amount); emit WithdrawInitiated(msg.sender, amount); } /// @notice Initiates the process of token exit on the root chain /// @param data The data required for the exit process function initiateExit(bytes calldata data) external onlyRootChain { erc20Predicate.startExitWithBurntTokens(data); exitFlag = true; emit ExitInitiated(msg.sender); } /// @notice Processes token exits and burns a percentage of the tokens function exit() external onlyRootChain nonReentrant { withdrawManager.processExits(address(boneRootToken)); uint256 tokenBalance = boneRootToken.balanceOf(selfAddress); if (tokenBalance > 0) { uint256 transferAmount = (tokenBalance * percentage) / 100; uint256 convertAmount = tokenBalance - transferAmount; boneRootToken.safeTransfer(owner(), transferAmount); bool approved = boneRootToken.approve(address(shibaswapRouter), convertAmount); if (!approved) revert ApprovalFailed(); address[] memory path = new address[](2); path[0] = address(boneRootToken); path[1] = shibaInuTokenAddress; uint256[] memory amounts = shibaswapRouter.swapExactTokensForTokens( convertAmount, 0, path, selfAddress, block.timestamp + 600 ); uint256 shibaInuBalance = amounts[amounts.length - 1]; totalShibBurn += shibaInuBalance; IERC20(shibaInuTokenAddress).safeTransfer(0x000000000000000000000000000000000000dEaD, shibaInuBalance); // Use SafeERC20 for transfer exitFlag = false; emit TokensExitedAndBurned(msg.sender, transferAmount, shibaInuBalance); } } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol) pragma solidity ^0.8.20; import {Ownable} from "./Ownable.sol"; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is specified at deployment time in the constructor for `Ownable`. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); if (pendingOwner() != sender) { revert OwnableUnauthorizedAccount(sender); } _transferOwnership(sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
{ "optimizer": { "enabled": true, "runs": 5000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_boneRootToken","type":"address"},{"internalType":"contract IWithdrawManager","name":"_withdrawManager","type":"address"},{"internalType":"uint24","name":"_rootChainId","type":"uint24"},{"internalType":"uint24","name":"_childChainId","type":"uint24"},{"internalType":"address","name":"_shibaswapRouterAddress","type":"address"},{"internalType":"address","name":"_shibaInuTokenAddress","type":"address"},{"internalType":"contract IERC20Predicate","name":"_erc20Predicate","type":"address"},{"internalType":"address","name":"ownerAddress","type":"address"},{"internalType":"uint8","name":"_initialPercentage","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"ApprovalFailed","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"SameLimit","type":"error"},{"inputs":[],"name":"SamePercentage","type":"error"},{"inputs":[],"name":"SameRouterAddress","type":"error"},{"inputs":[],"name":"WithdrawalLimitNotMet","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"}],"name":"ExitInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newPercentage","type":"uint8"}],"name":"PercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRouter","type":"address"}],"name":"RouterAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"transferAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnedAmount","type":"uint256"}],"name":"TokensExitedAndBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"WithdrawLimitUpdated","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"boneChildToken","outputs":[{"internalType":"contract IChildToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boneRootToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"childChainId","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20Predicate","outputs":[{"internalType":"contract IERC20Predicate","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exitFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"initiateExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rootChainId","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shibaInuTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shibaswapRouter","outputs":[{"internalType":"contract IShibaswapV2Router","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShibBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_per","type":"uint8"}],"name":"updatePercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IShibaswapV2Router","name":"_newshibaswapRouter","type":"address"}],"name":"updateRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"updateWithdrawLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawManager","outputs":[{"internalType":"contract IWithdrawManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101406040526007805462010000600160b01b0319163062010000021790553480156200002b57600080fd5b5060405162001b4f38038062001b4f8339810160408190526200004e91620001a1565b6001600055816001600160a01b0381166200008357604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200008e8162000102565b506001600160a01b0398891660805296881660c0525062ffffff948516610100529290931661012052600380549186166001600160a01b031992831617905591841660e052600480549190941691161790915561101060a0526007805460ff90921660ff1990921691909117905562000276565b600280546001600160a01b03191690556200011d8162000120565b50565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811681146200011d57600080fd5b805162ffffff811681146200019c57600080fd5b919050565b60008060008060008060008060006101208a8c031215620001c157600080fd5b8951620001ce8162000172565b60208b0151909950620001e18162000172565b9750620001f160408b0162000188565b96506200020160608b0162000188565b955060808a0151620002138162000172565b60a08b0151909550620002268162000172565b60c08b0151909450620002398162000172565b60e08b01519093506200024c8162000172565b6101008b015190925060ff811681146200026557600080fd5b809150509295985092959850929598565b60805160a05160c05160e05161010051610120516118356200031a6000396000818161034801526105c6015260008181610243015281816108690152610a7801526000818161040c01528181610e500152610f7e0152600081816104a70152610b6401526000818161044001526106d70152600081816101f701528181610b3c01528181610c0401528181610cc701528181610d330152610dfc01526118356000f3fe6080604052600436106101835760003560e01c8063b14b0f56116100d6578063df53a3531161007f578063ec3e9da511610059578063ec3e9da514610495578063f2fde38b146104c9578063f848d541146104e957600080fd5b8063df53a3531461042e578063e30c397814610462578063e9fad8ee1461048057600080fd5b8063c78ad77f116100b0578063c78ad77f146103aa578063cbb41cc3146103d6578063d43d2609146103fa57600080fd5b8063b14b0f5614610336578063b68649761461036a578063c24611e31461038a57600080fd5b8063715018a6116101385780637b8eaae8116101125780637b8eaae8146102d857806386dd6d34146102f85780638da5cb5b1461031857600080fd5b8063715018a61461028e57806379932301146102a357806379ba5097146102c357600080fd5b806329c92dba1161016957806329c92dba146101e55780632f6a1e14146102315780633ccfd60b1461027957600080fd5b8062e6be7b1461018f57806322e6e055146101b157600080fd5b3661018a57005b600080fd5b34801561019b57600080fd5b506101af6101aa366004611465565b6104ff565b005b3480156101bd57600080fd5b506007546101d090610100900460ff1681565b60405190151581526020015b60405180910390f35b3480156101f157600080fd5b506102197f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101dc565b34801561023d57600080fd5b506102657f000000000000000000000000000000000000000000000000000000000000000081565b60405162ffffff90911681526020016101dc565b34801561028557600080fd5b506101af6105bc565b34801561029a57600080fd5b506101af610780565b3480156102af57600080fd5b506101af6102be366004611482565b610792565b3480156102cf57600080fd5b506101af61080a565b3480156102e457600080fd5b50600354610219906001600160a01b031681565b34801561030457600080fd5b506101af61031336600461149b565b610867565b34801561032457600080fd5b506001546001600160a01b0316610219565b34801561034257600080fd5b506102657f000000000000000000000000000000000000000000000000000000000000000081565b34801561037657600080fd5b50600454610219906001600160a01b031681565b34801561039657600080fd5b506101af6103a536600461150d565b6109cc565b3480156103b657600080fd5b506007546103c49060ff1681565b60405160ff90911681526020016101dc565b3480156103e257600080fd5b506103ec60065481565b6040519081526020016101dc565b34801561040657600080fd5b506102197f000000000000000000000000000000000000000000000000000000000000000081565b34801561043a57600080fd5b506102197f000000000000000000000000000000000000000000000000000000000000000081565b34801561046e57600080fd5b506002546001600160a01b0316610219565b34801561048c57600080fd5b506101af610a76565b3480156104a157600080fd5b506102197f000000000000000000000000000000000000000000000000000000000000000081565b3480156104d557600080fd5b506101af6104e4366004611465565b61101c565b3480156104f557600080fd5b506103ec60055481565b6105076110a5565b6003546001600160a01b039081169082160361054f576040517f23b920b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527fafec26814d7c5e0716cdb68343bdf123509d8bae8a1a877de1c3869411985c55906020015b60405180910390a150565b6105c46110eb565b7f000000000000000000000000000000000000000000000000000000000000000062ffffff164614610657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f4e4c595f4348494c440000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600754600554620100009091046001600160a01b031631908110156106a8576040517fee8cdad600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d9083906024016000604051808303818588803b15801561072457600080fd5b505af1158015610738573d6000803e3d6000fd5b50506040518481523393507f15e1f18cd8cc91e09c1a1a056f1d8e61884aec50ad8502f88defaa64820e8fc29250602001905060405180910390a25061077e6001600055565b565b6107886110a5565b61077e600061112e565b61079a6110a5565b60055481036107d5576040517fe1c7efdc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60058190556040518181527f0969f79b044617688492c7c9b226129947037ca88c450002a7561ed78aa549ac906020016105b1565b60025433906001600160a01b0316811461085b576040517f118cdaa70000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260240161064e565b6108648161112e565b50565b7f000000000000000000000000000000000000000000000000000000000000000062ffffff1646146108f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4f4e4c595f524f4f540000000000000000000000000000000000000000000000604482015260640161064e565b600480546040517f7c5264b40000000000000000000000000000000000000000000000000000000081526001600160a01b0390911691637c5264b49161093f918691869101611530565b600060405180830381600087803b15801561095957600080fd5b505af115801561096d573d6000803e3d6000fd5b5050600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055505060405133907f26a5c0c1a56c8be9d5002880ff4401b9b5bbe8773ef2e3633c46fdeb7b228e6190600090a25050565b6109d46110a5565b60075460ff90811690821603610a16576040517f3b4fcf0e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff83169081179091556040519081527f9e75146cdab32a88ae82fcb06f2b8557134c743ec3fd64deb090eddab53f8b8d906020016105b1565b7f000000000000000000000000000000000000000000000000000000000000000062ffffff164614610b04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4f4e4c595f524f4f540000000000000000000000000000000000000000000000604482015260640161064e565b610b0c6110eb565b6040517f0f6795f20000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000001690630f6795f290602401600060405180830381600087803b158015610ba857600080fd5b505af1158015610bbc573d6000803e3d6000fd5b50506007546040517f70a08231000000000000000000000000000000000000000000000000000000008152620100009091046001600160a01b039081166004830152600093507f00000000000000000000000000000000000000000000000000000000000000001691506370a0823190602401602060405180830381865afa158015610c4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c70919061155f565b9050801561101157600754600090606490610c8e9060ff16846115a7565b610c9891906115be565b90506000610ca682846115f9565b9050610cee610cbd6001546001600160a01b031690565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016908461115f565b6003546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018390526000917f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044016020604051808303816000875af1158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da0919061160c565b905080610dd9576040517f8164f84200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610e2e57610e2e61165d565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610e8257610e8261165d565b6001600160a01b039283166020918202929092010152600354600754600092918216916338ed1739918791859187916201000090910416610ec54261025861168c565b6040518663ffffffff1660e01b8152600401610ee595949392919061169f565b6000604051808303816000875af1158015610f04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f2c9190810190611712565b905060008160018351610f3f91906115f9565b81518110610f4f57610f4f61165d565b602002602001015190508060066000828254610f6b919061168c565b90915550610fa790506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661dead8361115f565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604080518781526020810183905233917f458de0e62d0c6d31751406968f082c99e7f1f27b996bfd79b28321bcdb16c811910160405180910390a25050505050505b5061077e6001600055565b6110246110a5565b600280546001600160a01b0383167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561106d6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6001546001600160a01b0316331461077e576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161064e565b600260005403611127576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610864816111e4565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526111df90849061124e565b505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006112636001600160a01b038416836112ca565b90508051600014158015611288575080806020019051810190611286919061160c565b155b156111df576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260240161064e565b60606112d8838360006112e1565b90505b92915050565b60608147101561131f576040517fcd78605900000000000000000000000000000000000000000000000000000000815230600482015260240161064e565b600080856001600160a01b0316848660405161133b91906117d0565b60006040518083038185875af1925050503d8060008114611378576040519150601f19603f3d011682016040523d82523d6000602084013e61137d565b606091505b509150915061138d868383611399565b925050505b9392505050565b6060826113ae576113a98261140e565b611392565b81511580156113c557506001600160a01b0384163b155b15611407576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260240161064e565b5080611392565b80511561141e5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038116811461086457600080fd5b60006020828403121561147757600080fd5b813561139281611450565b60006020828403121561149457600080fd5b5035919050565b600080602083850312156114ae57600080fd5b823567ffffffffffffffff808211156114c657600080fd5b818501915085601f8301126114da57600080fd5b8135818111156114e957600080fd5b8660208285010111156114fb57600080fd5b60209290920196919550909350505050565b60006020828403121561151f57600080fd5b813560ff8116811461139257600080fd5b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60006020828403121561157157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176112db576112db611578565b6000826115f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b818103818111156112db576112db611578565b60006020828403121561161e57600080fd5b8151801515811461139257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b808201808211156112db576112db611578565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156116f15784516001600160a01b0316835293830193918301916001016116cc565b50506001600160a01b03969096166060850152505050608001529392505050565b6000602080838503121561172557600080fd5b825167ffffffffffffffff8082111561173d57600080fd5b818501915085601f83011261175157600080fd5b8151818111156117635761176361162e565b8060051b604051601f19603f830116810181811085821117156117885761178861162e565b6040529182528482019250838101850191888311156117a657600080fd5b938501935b828510156117c4578451845293850193928501926117ab565b98975050505050505050565b6000825160005b818110156117f157602081860181015185830152016117d7565b50600092019182525091905056fea2646970667358221220b9e0f7534d73a445fbfd25f42ad6837c44d611c741c82befaf04351ea55a92ac64736f6c634300081800330000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d90000000000000000000000005f683665ca87dbc3d1358913da80e3c71c328fb00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000003f7724180aa6b939894b5ca4314783b0b36b32900000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce000000000000000000000000a700bcc4e31bfe9375f5f55cd6fd133323f911d600000000000000000000000080cc222ea02f4334f67e9e55e7412fed62599004000000000000000000000000000000000000000000000000000000000000001e
Deployed Bytecode
0x6080604052600436106101835760003560e01c8063b14b0f56116100d6578063df53a3531161007f578063ec3e9da511610059578063ec3e9da514610495578063f2fde38b146104c9578063f848d541146104e957600080fd5b8063df53a3531461042e578063e30c397814610462578063e9fad8ee1461048057600080fd5b8063c78ad77f116100b0578063c78ad77f146103aa578063cbb41cc3146103d6578063d43d2609146103fa57600080fd5b8063b14b0f5614610336578063b68649761461036a578063c24611e31461038a57600080fd5b8063715018a6116101385780637b8eaae8116101125780637b8eaae8146102d857806386dd6d34146102f85780638da5cb5b1461031857600080fd5b8063715018a61461028e57806379932301146102a357806379ba5097146102c357600080fd5b806329c92dba1161016957806329c92dba146101e55780632f6a1e14146102315780633ccfd60b1461027957600080fd5b8062e6be7b1461018f57806322e6e055146101b157600080fd5b3661018a57005b600080fd5b34801561019b57600080fd5b506101af6101aa366004611465565b6104ff565b005b3480156101bd57600080fd5b506007546101d090610100900460ff1681565b60405190151581526020015b60405180910390f35b3480156101f157600080fd5b506102197f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d981565b6040516001600160a01b0390911681526020016101dc565b34801561023d57600080fd5b506102657f000000000000000000000000000000000000000000000000000000000000000181565b60405162ffffff90911681526020016101dc565b34801561028557600080fd5b506101af6105bc565b34801561029a57600080fd5b506101af610780565b3480156102af57600080fd5b506101af6102be366004611482565b610792565b3480156102cf57600080fd5b506101af61080a565b3480156102e457600080fd5b50600354610219906001600160a01b031681565b34801561030457600080fd5b506101af61031336600461149b565b610867565b34801561032457600080fd5b506001546001600160a01b0316610219565b34801561034257600080fd5b506102657f000000000000000000000000000000000000000000000000000000000000006d81565b34801561037657600080fd5b50600454610219906001600160a01b031681565b34801561039657600080fd5b506101af6103a536600461150d565b6109cc565b3480156103b657600080fd5b506007546103c49060ff1681565b60405160ff90911681526020016101dc565b3480156103e257600080fd5b506103ec60065481565b6040519081526020016101dc565b34801561040657600080fd5b506102197f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce81565b34801561043a57600080fd5b506102197f000000000000000000000000000000000000000000000000000000000000101081565b34801561046e57600080fd5b506002546001600160a01b0316610219565b34801561048c57600080fd5b506101af610a76565b3480156104a157600080fd5b506102197f0000000000000000000000005f683665ca87dbc3d1358913da80e3c71c328fb081565b3480156104d557600080fd5b506101af6104e4366004611465565b61101c565b3480156104f557600080fd5b506103ec60055481565b6105076110a5565b6003546001600160a01b039081169082160361054f576040517f23b920b600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527fafec26814d7c5e0716cdb68343bdf123509d8bae8a1a877de1c3869411985c55906020015b60405180910390a150565b6105c46110eb565b7f000000000000000000000000000000000000000000000000000000000000006d62ffffff164614610657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f4f4e4c595f4348494c440000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b600754600554620100009091046001600160a01b031631908110156106a8576040517fee8cdad600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f00000000000000000000000000000000000000000000000000000000000010106001600160a01b031690632e1a7d4d9083906024016000604051808303818588803b15801561072457600080fd5b505af1158015610738573d6000803e3d6000fd5b50506040518481523393507f15e1f18cd8cc91e09c1a1a056f1d8e61884aec50ad8502f88defaa64820e8fc29250602001905060405180910390a25061077e6001600055565b565b6107886110a5565b61077e600061112e565b61079a6110a5565b60055481036107d5576040517fe1c7efdc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60058190556040518181527f0969f79b044617688492c7c9b226129947037ca88c450002a7561ed78aa549ac906020016105b1565b60025433906001600160a01b0316811461085b576040517f118cdaa70000000000000000000000000000000000000000000000000000000081526001600160a01b038216600482015260240161064e565b6108648161112e565b50565b7f000000000000000000000000000000000000000000000000000000000000000162ffffff1646146108f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4f4e4c595f524f4f540000000000000000000000000000000000000000000000604482015260640161064e565b600480546040517f7c5264b40000000000000000000000000000000000000000000000000000000081526001600160a01b0390911691637c5264b49161093f918691869101611530565b600060405180830381600087803b15801561095957600080fd5b505af115801561096d573d6000803e3d6000fd5b5050600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055505060405133907f26a5c0c1a56c8be9d5002880ff4401b9b5bbe8773ef2e3633c46fdeb7b228e6190600090a25050565b6109d46110a5565b60075460ff90811690821603610a16576040517f3b4fcf0e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff83169081179091556040519081527f9e75146cdab32a88ae82fcb06f2b8557134c743ec3fd64deb090eddab53f8b8d906020016105b1565b7f000000000000000000000000000000000000000000000000000000000000000162ffffff164614610b04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4f4e4c595f524f4f540000000000000000000000000000000000000000000000604482015260640161064e565b610b0c6110eb565b6040517f0f6795f20000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9811660048301527f0000000000000000000000005f683665ca87dbc3d1358913da80e3c71c328fb01690630f6795f290602401600060405180830381600087803b158015610ba857600080fd5b505af1158015610bbc573d6000803e3d6000fd5b50506007546040517f70a08231000000000000000000000000000000000000000000000000000000008152620100009091046001600160a01b039081166004830152600093507f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d91691506370a0823190602401602060405180830381865afa158015610c4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c70919061155f565b9050801561101157600754600090606490610c8e9060ff16846115a7565b610c9891906115be565b90506000610ca682846115f9565b9050610cee610cbd6001546001600160a01b031690565b6001600160a01b037f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d916908461115f565b6003546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152602481018390526000917f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9169063095ea7b3906044016020604051808303816000875af1158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da0919061160c565b905080610dd9576040517f8164f84200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160028082526060820183526000926020830190803683370190505090507f0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d981600081518110610e2e57610e2e61165d565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce81600181518110610e8257610e8261165d565b6001600160a01b039283166020918202929092010152600354600754600092918216916338ed1739918791859187916201000090910416610ec54261025861168c565b6040518663ffffffff1660e01b8152600401610ee595949392919061169f565b6000604051808303816000875af1158015610f04573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f2c9190810190611712565b905060008160018351610f3f91906115f9565b81518110610f4f57610f4f61165d565b602002602001015190508060066000828254610f6b919061168c565b90915550610fa790506001600160a01b037f00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce1661dead8361115f565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604080518781526020810183905233917f458de0e62d0c6d31751406968f082c99e7f1f27b996bfd79b28321bcdb16c811910160405180910390a25050505050505b5061077e6001600055565b6110246110a5565b600280546001600160a01b0383167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561106d6001546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6001546001600160a01b0316331461077e576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161064e565b600260005403611127576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610864816111e4565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526111df90849061124e565b505050565b600180546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006112636001600160a01b038416836112ca565b90508051600014158015611288575080806020019051810190611286919061160c565b155b156111df576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260240161064e565b60606112d8838360006112e1565b90505b92915050565b60608147101561131f576040517fcd78605900000000000000000000000000000000000000000000000000000000815230600482015260240161064e565b600080856001600160a01b0316848660405161133b91906117d0565b60006040518083038185875af1925050503d8060008114611378576040519150601f19603f3d011682016040523d82523d6000602084013e61137d565b606091505b509150915061138d868383611399565b925050505b9392505050565b6060826113ae576113a98261140e565b611392565b81511580156113c557506001600160a01b0384163b155b15611407576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260240161064e565b5080611392565b80511561141e5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038116811461086457600080fd5b60006020828403121561147757600080fd5b813561139281611450565b60006020828403121561149457600080fd5b5035919050565b600080602083850312156114ae57600080fd5b823567ffffffffffffffff808211156114c657600080fd5b818501915085601f8301126114da57600080fd5b8135818111156114e957600080fd5b8660208285010111156114fb57600080fd5b60209290920196919550909350505050565b60006020828403121561151f57600080fd5b813560ff8116811461139257600080fd5b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60006020828403121561157157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176112db576112db611578565b6000826115f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b818103818111156112db576112db611578565b60006020828403121561161e57600080fd5b8151801515811461139257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b808201808211156112db576112db611578565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156116f15784516001600160a01b0316835293830193918301916001016116cc565b50506001600160a01b03969096166060850152505050608001529392505050565b6000602080838503121561172557600080fd5b825167ffffffffffffffff8082111561173d57600080fd5b818501915085601f83011261175157600080fd5b8151818111156117635761176361162e565b8060051b604051601f19603f830116810181811085821117156117885761178861162e565b6040529182528482019250838101850191888311156117a657600080fd5b938501935b828510156117c4578451845293850193928501926117ab565b98975050505050505050565b6000825160005b818110156117f157602081860181015185830152016117d7565b50600092019182525091905056fea2646970667358221220b9e0f7534d73a445fbfd25f42ad6837c44d611c741c82befaf04351ea55a92ac64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d90000000000000000000000005f683665ca87dbc3d1358913da80e3c71c328fb00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006d00000000000000000000000003f7724180aa6b939894b5ca4314783b0b36b32900000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce000000000000000000000000a700bcc4e31bfe9375f5f55cd6fd133323f911d600000000000000000000000080cc222ea02f4334f67e9e55e7412fed62599004000000000000000000000000000000000000000000000000000000000000001e
-----Decoded View---------------
Arg [0] : _boneRootToken (address): 0x9813037ee2218799597d83D4a5B6F3b6778218d9
Arg [1] : _withdrawManager (address): 0x5F683665ca87dbC3D1358913da80e3C71c328Fb0
Arg [2] : _rootChainId (uint24): 1
Arg [3] : _childChainId (uint24): 109
Arg [4] : _shibaswapRouterAddress (address): 0x03f7724180AA6b939894B5Ca4314783B0b36b329
Arg [5] : _shibaInuTokenAddress (address): 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE
Arg [6] : _erc20Predicate (address): 0xa700BCC4E31BFE9375f5f55cD6fD133323F911D6
Arg [7] : ownerAddress (address): 0x80Cc222EA02F4334F67e9E55E7412fed62599004
Arg [8] : _initialPercentage (uint8): 30
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9
Arg [1] : 0000000000000000000000005f683665ca87dbc3d1358913da80e3c71c328fb0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 000000000000000000000000000000000000000000000000000000000000006d
Arg [4] : 00000000000000000000000003f7724180aa6b939894b5ca4314783b0b36b329
Arg [5] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Arg [6] : 000000000000000000000000a700bcc4e31bfe9375f5f55cd6fd133323f911d6
Arg [7] : 00000000000000000000000080cc222ea02f4334f67e9e55e7412fed62599004
Arg [8] : 000000000000000000000000000000000000000000000000000000000000001e
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.