More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 588 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Fee | 19336231 | 306 days ago | IN | 0 ETH | 0.00369058 | ||||
Deposit | 19336000 | 306 days ago | IN | 0.005 ETH | 0.00758363 | ||||
Deposit | 19335425 | 306 days ago | IN | 0.005 ETH | 0.0059777 | ||||
Deposit | 19037187 | 348 days ago | IN | 0.005 ETH | 0.00245063 | ||||
Withdraw | 19027186 | 350 days ago | IN | 0 ETH | 0.00188654 | ||||
Withdraw | 18768612 | 386 days ago | IN | 0 ETH | 0.00202891 | ||||
Withdraw | 18751323 | 388 days ago | IN | 0 ETH | 0.00202891 | ||||
Withdraw | 18749871 | 388 days ago | IN | 0 ETH | 0.00301065 | ||||
Withdraw | 18711695 | 394 days ago | IN | 0 ETH | 0.0030761 | ||||
Withdraw | 18680854 | 398 days ago | IN | 0 ETH | 0.0029452 | ||||
Withdraw | 18671284 | 399 days ago | IN | 0 ETH | 0.00241685 | ||||
Deposit | 18671222 | 399 days ago | IN | 0.005 ETH | 0.00373126 | ||||
Deposit | 18671216 | 399 days ago | IN | 0.005 ETH | 0.00396634 | ||||
Withdraw | 18671194 | 399 days ago | IN | 0 ETH | 0.0029452 | ||||
Withdraw | 18667644 | 400 days ago | IN | 0 ETH | 0.00248706 | ||||
Withdraw | 18665177 | 400 days ago | IN | 0 ETH | 0.0029452 | ||||
Withdraw | 18657092 | 401 days ago | IN | 0 ETH | 0.00261796 | ||||
Deposit | 18647147 | 403 days ago | IN | 0.005 ETH | 0.00167325 | ||||
Withdraw | 18613278 | 408 days ago | IN | 0 ETH | 0.00135377 | ||||
Withdraw | 18579226 | 412 days ago | IN | 0 ETH | 0.002079 | ||||
Withdraw | 18531519 | 419 days ago | IN | 0 ETH | 0.00154716 | ||||
Withdraw | 18482423 | 426 days ago | IN | 0 ETH | 0.00091863 | ||||
Deposit | 18477062 | 427 days ago | IN | 0.005 ETH | 0.00141607 | ||||
Deposit | 18476921 | 427 days ago | IN | 0.005 ETH | 0.00194001 | ||||
Withdraw | 18469100 | 428 days ago | IN | 0 ETH | 0.00104718 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
19336000 | 306 days ago | 0.005 ETH | ||||
19335425 | 306 days ago | 0.005 ETH | ||||
19037187 | 348 days ago | 0.005 ETH | ||||
18671222 | 399 days ago | 0.005 ETH | ||||
18671216 | 399 days ago | 0.005 ETH | ||||
18647147 | 403 days ago | 0.005 ETH | ||||
18477062 | 427 days ago | 0.005 ETH | ||||
18476921 | 427 days ago | 0.005 ETH | ||||
18259425 | 457 days ago | 0.005 ETH | ||||
18257854 | 457 days ago | 0.005 ETH | ||||
18067854 | 484 days ago | 0.00606445 ETH | ||||
17786838 | 523 days ago | 0.00624998 ETH | ||||
17711309 | 534 days ago | 0.00620023 ETH | ||||
17683812 | 538 days ago | 0.02030662 ETH | ||||
17291772 | 593 days ago | 0.00664013 ETH | ||||
17242946 | 600 days ago | 0.00678562 ETH | ||||
17211179 | 604 days ago | 0.008701 ETH | ||||
16797392 | 663 days ago | 0.01893353 ETH | ||||
16793154 | 663 days ago | 0.01826003 ETH | ||||
16792879 | 663 days ago | 0.02069283 ETH | ||||
16790862 | 664 days ago | 0.01720074 ETH | ||||
16786612 | 664 days ago | 0.01648166 ETH | ||||
16769450 | 667 days ago | 0.01722065 ETH | ||||
16745039 | 670 days ago | 0.01538624 ETH | ||||
16744873 | 670 days ago | 0.01689739 ETH |
Loading...
Loading
Contract Name:
MainnetBridgePool
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// "SPDX-License-Identifier: MIT" pragma solidity ^0.8.3; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import './Uniswap.sol'; contract MainnetBridgePool is AccessControl, ReentrancyGuard { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public raini; event Deposited(address indexed spender, address recipient, uint256 amount, uint256 requestId); event Withdrawn(address indexed owner, uint256 amount, uint256 requestId); event EthWithdrawn(uint256 amount); event FeeSet(uint256 fee, uint256 percentFee, uint256 percentFeeDecimals); event AutoWithdrawFeeSet(bool autoWithdraw); event TreasuryAddressSet(address treasuryAddress); uint256 public requestId; uint256 public fee; uint256 public percentFee; uint public percentFeeDecimals; bool public autoWithdrawFee; address public treasuryAddress; address private constant UNIROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address private constant FACTORY = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f; address private WETHAddress = Uniswap(UNIROUTER).WETH(); constructor(address _raini) { require(_raini != address(0), "MainnetBridgePool: _raini is zero address"); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); treasuryAddress = _msgSender(); raini = IERC20(_raini); } modifier onlyMinter() { require(hasRole(MINTER_ROLE, _msgSender()), "MainnetBridgePool: caller is not a minter"); _; } modifier onlyOwner() { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "MainnetBridgePool: caller is not an owner"); _; } function getFee(uint _amount) public view returns (uint256) { address lp = Uniswap(FACTORY).getPair(address(raini), WETHAddress); (uint reserve0, uint reserve1, ) = Uniswap(lp).getReserves(); uint256 eth; if(Uniswap(lp).token0() == address(raini)) { eth = reserve1.mul(_amount).div(reserve0); } else { eth = reserve0.mul(_amount).div(reserve1); } return fee + eth.mul(percentFee).div(10 ** percentFeeDecimals); } function setFee(uint256 _fee, uint256 _percentFee, uint256 _percentFeeDecimals) external onlyOwner { fee = _fee; percentFee = _percentFee; percentFeeDecimals = _percentFeeDecimals; emit FeeSet(_fee, _percentFee, _percentFeeDecimals); } function setAutoWithdrawFee(bool _autoWithdrawFee) external onlyOwner { autoWithdrawFee = _autoWithdrawFee; emit AutoWithdrawFeeSet(autoWithdrawFee); } function setTreasuryAddress(address _treasuryAddress) external onlyOwner { treasuryAddress = _treasuryAddress; emit TreasuryAddressSet(_treasuryAddress); } function deposit(address _recipient, uint256 _amount) external payable nonReentrant { uint256 depositFee = getFee(_amount); require(msg.value >= depositFee, "MainnetBridgePool: not enough eth"); raini.safeTransferFrom(_msgSender(), address(this), _amount); uint256 refund = msg.value - depositFee; if(refund > 0) { (bool refundSuccess, ) = _msgSender().call{ value: refund }(""); require(refundSuccess, "MainnetBridgePool: refund transfer failed"); } if (autoWithdrawFee) { (bool withdrawSuccess, ) = treasuryAddress.call{ value: depositFee }(""); require(withdrawSuccess, "MainnetBridgePool: withdraw transfer failed"); } requestId++; emit Deposited(_msgSender(), _recipient, _amount, requestId); } function withdraw(address[] memory _owners, uint256[] memory _amounts, uint256[] memory _requestsIds) external onlyMinter { require(_owners.length == _amounts.length && _owners.length == _requestsIds.length, "MainnetBridgePool: Arrays length not equal"); for (uint256 i; i < _owners.length; i++) { raini.safeTransfer(_owners[i], _amounts[i]); emit Withdrawn(_owners[i], _amounts[i], _requestsIds[i]); } } function withdrawEth(uint256 _amount) external onlyOwner { require(_amount <= address(this).balance, "MainnetBridgePool: not enough balance"); (bool success, ) = _msgSender().call{ value: _amount }(""); require(success, "MainnetBridgePool: transfer failed"); emit EthWithdrawn(_amount); } }
// "SPDX-License-Identifier: MIT" pragma solidity ^0.8.3; interface Uniswap { function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external returns (uint256[] memory amounts); function swapExactETHForTokens(uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external payable returns (uint256[] memory amounts); function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function removeLiquidity(address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline) external returns (uint amountA, uint amountB); function getPair(address tokenA, address tokenB) external view returns (address pair); function WETH() external pure returns (address); function getAmountsOut(uint amountIn, address[] memory path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] memory path) external view returns (uint[] memory amounts); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function token0() external view returns (address); function token1() external view returns (address); function factory() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_raini","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"autoWithdraw","type":"bool"}],"name":"AutoWithdrawFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EthWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"percentFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"percentFeeDecimals","type":"uint256"}],"name":"FeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasuryAddress","type":"address"}],"name":"TreasuryAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoWithdrawFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percentFeeDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raini","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_autoWithdrawFee","type":"bool"}],"name":"setAutoWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_percentFee","type":"uint256"},{"internalType":"uint256","name":"_percentFeeDecimals","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"_requestsIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060408190526315ab88c960e31b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063ad5c46489060849060209060048186803b1580156200004557600080fd5b505afa1580156200005a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200008091906200023e565b600880546001600160a01b0319166001600160a01b0392909216919091179055348015620000ad57600080fd5b5060405162001ee038038062001ee0833981016040819052620000d0916200023e565b600180556001600160a01b038116620001415760405162461bcd60e51b815260206004820152602960248201527f4d61696e6e6574427269646765506f6f6c3a205f7261696e69206973207a65726044820152686f206164647265737360b81b606482015260840160405180910390fd5b6200014e6000336200018e565b3360078054610100600160a81b0319166101006001600160a01b0393841602179055600280546001600160a01b031916929091169190911790556200026e565b6200019a82826200019e565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200019a576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001fa3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006020828403121562000250578081fd5b81516001600160a01b038116811462000267578182fd5b9392505050565b611c62806200027e6000396000f3fe6080604052600436106101345760003560e01c80636605bfda116100ab578063c5f956af1161006f578063c5f956af1461034a578063d53913931461036f578063d547741f146103a3578063d55c2f49146103c3578063ddca3f43146103e3578063fcee45f4146103f957610134565b80636605bfda146102b557806391d14854146102d5578063a217fddf146102f5578063b8eabab01461030a578063c311d0491461032a57610134565b80632f2ff15d116100fd5780632f2ff15d146101f257806336568abe146102145780633d363a7b1461023457806347e7ef241461026c5780634c1a41151461027f5780635b65b9ab1461029557610134565b80626d6cae1461013957806301ffc9a71461016257806308cd77d814610192578063243df2e4146101a8578063248a9ca3146101c2575b600080fd5b34801561014557600080fd5b5061014f60035481565b6040519081526020015b60405180910390f35b34801561016e57600080fd5b5061018261017d3660046117f7565b610419565b6040519015158152602001610159565b34801561019e57600080fd5b5061014f60065481565b3480156101b457600080fd5b506007546101829060ff1681565b3480156101ce57600080fd5b5061014f6101dd3660046117b0565b60009081526020819052604090206001015490565b3480156101fe57600080fd5b5061021261020d3660046117c8565b610452565b005b34801561022057600080fd5b5061021261022f3660046117c8565b61047e565b34801561024057600080fd5b50600254610254906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61021261027a366004611667565b610501565b34801561028b57600080fd5b5061014f60055481565b3480156102a157600080fd5b506102126102b036600461186d565b6107db565b3480156102c157600080fd5b506102126102d036600461162f565b610857565b3480156102e157600080fd5b506101826102f03660046117c8565b6108db565b34801561030157600080fd5b5061014f600081565b34801561031657600080fd5b50610212610325366004611692565b610904565b34801561033657600080fd5b506102126103453660046117b0565b610b4b565b34801561035657600080fd5b506007546102549061010090046001600160a01b031681565b34801561037b57600080fd5b5061014f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156103af57600080fd5b506102126103be3660046117c8565b610caa565b3480156103cf57600080fd5b506102126103de366004611778565b610cd0565b3480156103ef57600080fd5b5061014f60045481565b34801561040557600080fd5b5061014f6104143660046117b0565b610d3e565b60006001600160e01b03198216637965db0b60e01b148061044a57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b60008281526020819052604090206001015461046f81335b610f6d565b6104798383610fd1565b505050565b6001600160a01b03811633146104f35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104fd8282611055565b5050565b600260015414156105545760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ea565b6002600155600061056482610d3e565b9050803410156105c05760405162461bcd60e51b815260206004820152602160248201527f4d61696e6e6574427269646765506f6f6c3a206e6f7420656e6f7567682065746044820152600d60fb1b60648201526084016104ea565b6105d8336002546001600160a01b03169030856110ba565b60006105e48234611b65565b9050801561069857604051600090339083908381818185875af1925050503d806000811461062e576040519150601f19603f3d011682016040523d82523d6000602084013e610633565b606091505b50509050806106965760405162461bcd60e51b815260206004820152602960248201527f4d61696e6e6574427269646765506f6f6c3a20726566756e64207472616e7366604482015268195c8819985a5b195960ba1b60648201526084016104ea565b505b60075460ff16156107615760075460405160009161010090046001600160a01b03169084908381818185875af1925050503d80600081146106f5576040519150601f19603f3d011682016040523d82523d6000602084013e6106fa565b606091505b505090508061075f5760405162461bcd60e51b815260206004820152602b60248201527f4d61696e6e6574427269646765506f6f6c3a207769746864726177207472616e60448201526a1cd9995c8819985a5b195960aa1b60648201526084016104ea565b505b6003805490600061077183611bbf565b919050555061077d3390565b600354604080516001600160a01b038881168252602082018890529181019290925291909116907ff5681f9d0db1b911ac18ee83d515a1cf1051853a9eae418316a2fdf7dea427c59060600160405180910390a25050600180555050565b6107e66000336102f0565b6108025760405162461bcd60e51b81526004016104ea9061195c565b60048390556005829055600681905560408051848152602081018490529081018290527f06e25a1e51b6a89981013a1ba25eb98a1dac5cea9a4e5acf9a1074334b31e93f9060600160405180910390a1505050565b6108626000336102f0565b61087e5760405162461bcd60e51b81526004016104ea9061195c565b60078054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce906020015b60405180910390a150565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61092e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336102f0565b61098c5760405162461bcd60e51b815260206004820152602960248201527f4d61696e6e6574427269646765506f6f6c3a2063616c6c6572206973206e6f7460448201526810309036b4b73a32b960b91b60648201526084016104ea565b8151835114801561099e575080518351145b6109fd5760405162461bcd60e51b815260206004820152602a60248201527f4d61696e6e6574427269646765506f6f6c3a20417272617973206c656e677468604482015269081b9bdd08195c5d585b60b21b60648201526084016104ea565b60005b8351811015610b4557610a72848281518110610a2c57634e487b7160e01b600052603260045260246000fd5b6020026020010151848381518110610a5457634e487b7160e01b600052603260045260246000fd5b60209081029190910101516002546001600160a01b03169190611125565b838181518110610a9257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03167f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6848381518110610ae457634e487b7160e01b600052603260045260246000fd5b6020026020010151848481518110610b0c57634e487b7160e01b600052603260045260246000fd5b6020026020010151604051610b2b929190918252602082015260400190565b60405180910390a280610b3d81611bbf565b915050610a00565b50505050565b610b566000336102f0565b610b725760405162461bcd60e51b81526004016104ea9061195c565b47811115610bd05760405162461bcd60e51b815260206004820152602560248201527f4d61696e6e6574427269646765506f6f6c3a206e6f7420656e6f7567682062616044820152646c616e636560d81b60648201526084016104ea565b604051600090339083908381818185875af1925050503d8060008114610c12576040519150601f19603f3d011682016040523d82523d6000602084013e610c17565b606091505b5050905080610c735760405162461bcd60e51b815260206004820152602260248201527f4d61696e6e6574427269646765506f6f6c3a207472616e73666572206661696c604482015261195960f21b60648201526084016104ea565b6040518281527f7909752b76037727fecfc6c1abb7264306fd284ff7be21e2aa09bf2fdc00579d9060200160405180910390a15050565b600082815260208190526040902060010154610cc6813361046a565b6104798383611055565b610cdb6000336102f0565b610cf75760405162461bcd60e51b81526004016104ea9061195c565b6007805460ff191682151590811790915560405160ff909116151581527f1ac4f136c9c0f6a6e4111b252c023a1e52e800b8c7a9990653a373cb2877e18b906020016108d0565b60025460085460405163e6a4390560e01b81526001600160a01b039283166004820152911660248201526000908190735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a439059060440160206040518083038186803b158015610da457600080fd5b505afa158015610db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddc919061164b565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e52919061181f565b506001600160701b031691506001600160701b031691506000600260009054906101000a90046001600160a01b03166001600160a01b0316846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610ec357600080fd5b505afa158015610ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efb919061164b565b6001600160a01b03161415610f2557610f1e83610f188489611155565b90611168565b9050610f36565b610f3382610f188589611155565b90505b610f56600654600a610f489190611a78565b600554610f18908490611155565b600454610f6391906119fa565b9695505050505050565b610f7782826108db565b6104fd57610f8f816001600160a01b03166014611174565b610f9a836020611174565b604051602001610fab9291906118b4565b60408051601f198184030181529082905262461bcd60e51b82526104ea91600401611929565b610fdb82826108db565b6104fd576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556110113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61105f82826108db565b156104fd576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0380851660248301528316604482015260648101829052610b459085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611356565b6040516001600160a01b03831660248201526044810182905261047990849063a9059cbb60e01b906064016110ee565b60006111618284611b46565b9392505050565b60006111618284611a12565b60606000611183836002611b46565b61118e9060026119fa565b67ffffffffffffffff8111156111b457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156111de576020820181803683370190505b509050600360fc1b8160008151811061120757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061124457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611268846002611b46565b6112739060016119fa565b90505b6001811115611307576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106112b557634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106112d957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361130081611ba8565b9050611276565b5083156111615760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104ea565b60006113ab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114289092919063ffffffff16565b80519091501561047957808060200190518101906113c99190611794565b6104795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104ea565b6060611437848460008561143f565b949350505050565b6060824710156114a05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104ea565b6001600160a01b0385163b6114f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104ea565b600080866001600160a01b031685876040516115139190611898565b60006040518083038185875af1925050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b5091509150611565828286611570565b979650505050505050565b6060831561157f575081611161565b82511561158f5782518084602001fd5b8160405162461bcd60e51b81526004016104ea9190611929565b600082601f8301126115b9578081fd5b813560206115ce6115c9836119d6565b6119a5565b80838252828201915082860187848660051b89010111156115ed578586fd5b855b8581101561160b578135845292840192908401906001016115ef565b5090979650505050505050565b80516001600160701b038116811461044d57600080fd5b600060208284031215611640578081fd5b813561116181611c06565b60006020828403121561165c578081fd5b815161116181611c06565b60008060408385031215611679578081fd5b823561168481611c06565b946020939093013593505050565b6000806000606084860312156116a6578081fd5b833567ffffffffffffffff808211156116bd578283fd5b818601915086601f8301126116d0578283fd5b813560206116e06115c9836119d6565b8083825282820191508286018b848660051b89010111156116ff578788fd5b8796505b8487101561172a57803561171681611c06565b835260019690960195918301918301611703565b5097505087013592505080821115611740578283fd5b61174c878388016115a9565b93506040860135915080821115611761578283fd5b5061176e868287016115a9565b9150509250925092565b600060208284031215611789578081fd5b813561116181611c1e565b6000602082840312156117a5578081fd5b815161116181611c1e565b6000602082840312156117c1578081fd5b5035919050565b600080604083850312156117da578182fd5b8235915060208301356117ec81611c06565b809150509250929050565b600060208284031215611808578081fd5b81356001600160e01b031981168114611161578182fd5b600080600060608486031215611833578283fd5b61183c84611618565b925061184a60208501611618565b9150604084015163ffffffff81168114611862578182fd5b809150509250925092565b600080600060608486031215611881578283fd5b505081359360208301359350604090920135919050565b600082516118aa818460208701611b7c565b9190910192915050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516118ec816017850160208801611b7c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161191d816028840160208801611b7c565b01602801949350505050565b6000602082528251806020840152611948816040850160208701611b7c565b601f01601f19169190910160400192915050565b60208082526029908201527f4d61696e6e6574427269646765506f6f6c3a2063616c6c6572206973206e6f746040820152681030b71037bbb732b960b91b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156119ce576119ce611bf0565b604052919050565b600067ffffffffffffffff8211156119f0576119f0611bf0565b5060051b60200190565b60008219821115611a0d57611a0d611bda565b500190565b600082611a2d57634e487b7160e01b81526012600452602481fd5b500490565b80825b6001808611611a445750611a6f565b818704821115611a5657611a56611bda565b80861615611a6357918102915b9490941c938002611a35565b94509492505050565b60006111616000198484600082611a9157506001611161565b81611a9e57506000611161565b8160018114611ab45760028114611abe57611aeb565b6001915050611161565b60ff841115611acf57611acf611bda565b6001841b915084821115611ae557611ae5611bda565b50611161565b5060208310610133831016604e8410600b8410161715611b1e575081810a83811115611b1957611b19611bda565b611161565b611b2b8484846001611a32565b808604821115611b3d57611b3d611bda565b02949350505050565b6000816000190483118215151615611b6057611b60611bda565b500290565b600082821015611b7757611b77611bda565b500390565b60005b83811015611b97578181015183820152602001611b7f565b83811115610b455750506000910152565b600081611bb757611bb7611bda565b506000190190565b6000600019821415611bd357611bd3611bda565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c1b57600080fd5b50565b8015158114611c1b57600080fdfea2646970667358221220bcb17bf84d0fce50e64cb6a4bcaf4c50509d45438acf5f8e357ef2d70f64caa264736f6c63430008030033000000000000000000000000eb953eda0dc65e3246f43dc8fa13f35623bdd5ed
Deployed Bytecode
0x6080604052600436106101345760003560e01c80636605bfda116100ab578063c5f956af1161006f578063c5f956af1461034a578063d53913931461036f578063d547741f146103a3578063d55c2f49146103c3578063ddca3f43146103e3578063fcee45f4146103f957610134565b80636605bfda146102b557806391d14854146102d5578063a217fddf146102f5578063b8eabab01461030a578063c311d0491461032a57610134565b80632f2ff15d116100fd5780632f2ff15d146101f257806336568abe146102145780633d363a7b1461023457806347e7ef241461026c5780634c1a41151461027f5780635b65b9ab1461029557610134565b80626d6cae1461013957806301ffc9a71461016257806308cd77d814610192578063243df2e4146101a8578063248a9ca3146101c2575b600080fd5b34801561014557600080fd5b5061014f60035481565b6040519081526020015b60405180910390f35b34801561016e57600080fd5b5061018261017d3660046117f7565b610419565b6040519015158152602001610159565b34801561019e57600080fd5b5061014f60065481565b3480156101b457600080fd5b506007546101829060ff1681565b3480156101ce57600080fd5b5061014f6101dd3660046117b0565b60009081526020819052604090206001015490565b3480156101fe57600080fd5b5061021261020d3660046117c8565b610452565b005b34801561022057600080fd5b5061021261022f3660046117c8565b61047e565b34801561024057600080fd5b50600254610254906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b61021261027a366004611667565b610501565b34801561028b57600080fd5b5061014f60055481565b3480156102a157600080fd5b506102126102b036600461186d565b6107db565b3480156102c157600080fd5b506102126102d036600461162f565b610857565b3480156102e157600080fd5b506101826102f03660046117c8565b6108db565b34801561030157600080fd5b5061014f600081565b34801561031657600080fd5b50610212610325366004611692565b610904565b34801561033657600080fd5b506102126103453660046117b0565b610b4b565b34801561035657600080fd5b506007546102549061010090046001600160a01b031681565b34801561037b57600080fd5b5061014f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156103af57600080fd5b506102126103be3660046117c8565b610caa565b3480156103cf57600080fd5b506102126103de366004611778565b610cd0565b3480156103ef57600080fd5b5061014f60045481565b34801561040557600080fd5b5061014f6104143660046117b0565b610d3e565b60006001600160e01b03198216637965db0b60e01b148061044a57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b60008281526020819052604090206001015461046f81335b610f6d565b6104798383610fd1565b505050565b6001600160a01b03811633146104f35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6104fd8282611055565b5050565b600260015414156105545760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104ea565b6002600155600061056482610d3e565b9050803410156105c05760405162461bcd60e51b815260206004820152602160248201527f4d61696e6e6574427269646765506f6f6c3a206e6f7420656e6f7567682065746044820152600d60fb1b60648201526084016104ea565b6105d8336002546001600160a01b03169030856110ba565b60006105e48234611b65565b9050801561069857604051600090339083908381818185875af1925050503d806000811461062e576040519150601f19603f3d011682016040523d82523d6000602084013e610633565b606091505b50509050806106965760405162461bcd60e51b815260206004820152602960248201527f4d61696e6e6574427269646765506f6f6c3a20726566756e64207472616e7366604482015268195c8819985a5b195960ba1b60648201526084016104ea565b505b60075460ff16156107615760075460405160009161010090046001600160a01b03169084908381818185875af1925050503d80600081146106f5576040519150601f19603f3d011682016040523d82523d6000602084013e6106fa565b606091505b505090508061075f5760405162461bcd60e51b815260206004820152602b60248201527f4d61696e6e6574427269646765506f6f6c3a207769746864726177207472616e60448201526a1cd9995c8819985a5b195960aa1b60648201526084016104ea565b505b6003805490600061077183611bbf565b919050555061077d3390565b600354604080516001600160a01b038881168252602082018890529181019290925291909116907ff5681f9d0db1b911ac18ee83d515a1cf1051853a9eae418316a2fdf7dea427c59060600160405180910390a25050600180555050565b6107e66000336102f0565b6108025760405162461bcd60e51b81526004016104ea9061195c565b60048390556005829055600681905560408051848152602081018490529081018290527f06e25a1e51b6a89981013a1ba25eb98a1dac5cea9a4e5acf9a1074334b31e93f9060600160405180910390a1505050565b6108626000336102f0565b61087e5760405162461bcd60e51b81526004016104ea9061195c565b60078054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce906020015b60405180910390a150565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61092e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336102f0565b61098c5760405162461bcd60e51b815260206004820152602960248201527f4d61696e6e6574427269646765506f6f6c3a2063616c6c6572206973206e6f7460448201526810309036b4b73a32b960b91b60648201526084016104ea565b8151835114801561099e575080518351145b6109fd5760405162461bcd60e51b815260206004820152602a60248201527f4d61696e6e6574427269646765506f6f6c3a20417272617973206c656e677468604482015269081b9bdd08195c5d585b60b21b60648201526084016104ea565b60005b8351811015610b4557610a72848281518110610a2c57634e487b7160e01b600052603260045260246000fd5b6020026020010151848381518110610a5457634e487b7160e01b600052603260045260246000fd5b60209081029190910101516002546001600160a01b03169190611125565b838181518110610a9257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03167f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6848381518110610ae457634e487b7160e01b600052603260045260246000fd5b6020026020010151848481518110610b0c57634e487b7160e01b600052603260045260246000fd5b6020026020010151604051610b2b929190918252602082015260400190565b60405180910390a280610b3d81611bbf565b915050610a00565b50505050565b610b566000336102f0565b610b725760405162461bcd60e51b81526004016104ea9061195c565b47811115610bd05760405162461bcd60e51b815260206004820152602560248201527f4d61696e6e6574427269646765506f6f6c3a206e6f7420656e6f7567682062616044820152646c616e636560d81b60648201526084016104ea565b604051600090339083908381818185875af1925050503d8060008114610c12576040519150601f19603f3d011682016040523d82523d6000602084013e610c17565b606091505b5050905080610c735760405162461bcd60e51b815260206004820152602260248201527f4d61696e6e6574427269646765506f6f6c3a207472616e73666572206661696c604482015261195960f21b60648201526084016104ea565b6040518281527f7909752b76037727fecfc6c1abb7264306fd284ff7be21e2aa09bf2fdc00579d9060200160405180910390a15050565b600082815260208190526040902060010154610cc6813361046a565b6104798383611055565b610cdb6000336102f0565b610cf75760405162461bcd60e51b81526004016104ea9061195c565b6007805460ff191682151590811790915560405160ff909116151581527f1ac4f136c9c0f6a6e4111b252c023a1e52e800b8c7a9990653a373cb2877e18b906020016108d0565b60025460085460405163e6a4390560e01b81526001600160a01b039283166004820152911660248201526000908190735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f9063e6a439059060440160206040518083038186803b158015610da457600080fd5b505afa158015610db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ddc919061164b565b9050600080826001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b158015610e1a57600080fd5b505afa158015610e2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e52919061181f565b506001600160701b031691506001600160701b031691506000600260009054906101000a90046001600160a01b03166001600160a01b0316846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015610ec357600080fd5b505afa158015610ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efb919061164b565b6001600160a01b03161415610f2557610f1e83610f188489611155565b90611168565b9050610f36565b610f3382610f188589611155565b90505b610f56600654600a610f489190611a78565b600554610f18908490611155565b600454610f6391906119fa565b9695505050505050565b610f7782826108db565b6104fd57610f8f816001600160a01b03166014611174565b610f9a836020611174565b604051602001610fab9291906118b4565b60408051601f198184030181529082905262461bcd60e51b82526104ea91600401611929565b610fdb82826108db565b6104fd576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556110113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61105f82826108db565b156104fd576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0380851660248301528316604482015260648101829052610b459085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611356565b6040516001600160a01b03831660248201526044810182905261047990849063a9059cbb60e01b906064016110ee565b60006111618284611b46565b9392505050565b60006111618284611a12565b60606000611183836002611b46565b61118e9060026119fa565b67ffffffffffffffff8111156111b457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156111de576020820181803683370190505b509050600360fc1b8160008151811061120757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061124457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000611268846002611b46565b6112739060016119fa565b90505b6001811115611307576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106112b557634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106112d957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361130081611ba8565b9050611276565b5083156111615760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104ea565b60006113ab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114289092919063ffffffff16565b80519091501561047957808060200190518101906113c99190611794565b6104795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104ea565b6060611437848460008561143f565b949350505050565b6060824710156114a05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104ea565b6001600160a01b0385163b6114f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104ea565b600080866001600160a01b031685876040516115139190611898565b60006040518083038185875af1925050503d8060008114611550576040519150601f19603f3d011682016040523d82523d6000602084013e611555565b606091505b5091509150611565828286611570565b979650505050505050565b6060831561157f575081611161565b82511561158f5782518084602001fd5b8160405162461bcd60e51b81526004016104ea9190611929565b600082601f8301126115b9578081fd5b813560206115ce6115c9836119d6565b6119a5565b80838252828201915082860187848660051b89010111156115ed578586fd5b855b8581101561160b578135845292840192908401906001016115ef565b5090979650505050505050565b80516001600160701b038116811461044d57600080fd5b600060208284031215611640578081fd5b813561116181611c06565b60006020828403121561165c578081fd5b815161116181611c06565b60008060408385031215611679578081fd5b823561168481611c06565b946020939093013593505050565b6000806000606084860312156116a6578081fd5b833567ffffffffffffffff808211156116bd578283fd5b818601915086601f8301126116d0578283fd5b813560206116e06115c9836119d6565b8083825282820191508286018b848660051b89010111156116ff578788fd5b8796505b8487101561172a57803561171681611c06565b835260019690960195918301918301611703565b5097505087013592505080821115611740578283fd5b61174c878388016115a9565b93506040860135915080821115611761578283fd5b5061176e868287016115a9565b9150509250925092565b600060208284031215611789578081fd5b813561116181611c1e565b6000602082840312156117a5578081fd5b815161116181611c1e565b6000602082840312156117c1578081fd5b5035919050565b600080604083850312156117da578182fd5b8235915060208301356117ec81611c06565b809150509250929050565b600060208284031215611808578081fd5b81356001600160e01b031981168114611161578182fd5b600080600060608486031215611833578283fd5b61183c84611618565b925061184a60208501611618565b9150604084015163ffffffff81168114611862578182fd5b809150509250925092565b600080600060608486031215611881578283fd5b505081359360208301359350604090920135919050565b600082516118aa818460208701611b7c565b9190910192915050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516118ec816017850160208801611b7c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161191d816028840160208801611b7c565b01602801949350505050565b6000602082528251806020840152611948816040850160208701611b7c565b601f01601f19169190910160400192915050565b60208082526029908201527f4d61696e6e6574427269646765506f6f6c3a2063616c6c6572206973206e6f746040820152681030b71037bbb732b960b91b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156119ce576119ce611bf0565b604052919050565b600067ffffffffffffffff8211156119f0576119f0611bf0565b5060051b60200190565b60008219821115611a0d57611a0d611bda565b500190565b600082611a2d57634e487b7160e01b81526012600452602481fd5b500490565b80825b6001808611611a445750611a6f565b818704821115611a5657611a56611bda565b80861615611a6357918102915b9490941c938002611a35565b94509492505050565b60006111616000198484600082611a9157506001611161565b81611a9e57506000611161565b8160018114611ab45760028114611abe57611aeb565b6001915050611161565b60ff841115611acf57611acf611bda565b6001841b915084821115611ae557611ae5611bda565b50611161565b5060208310610133831016604e8410600b8410161715611b1e575081810a83811115611b1957611b19611bda565b611161565b611b2b8484846001611a32565b808604821115611b3d57611b3d611bda565b02949350505050565b6000816000190483118215151615611b6057611b60611bda565b500290565b600082821015611b7757611b77611bda565b500390565b60005b83811015611b97578181015183820152602001611b7f565b83811115610b455750506000910152565b600081611bb757611bb7611bda565b506000190190565b6000600019821415611bd357611bd3611bda565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c1b57600080fd5b50565b8015158114611c1b57600080fdfea2646970667358221220bcb17bf84d0fce50e64cb6a4bcaf4c50509d45438acf5f8e357ef2d70f64caa264736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eb953eda0dc65e3246f43dc8fa13f35623bdd5ed
-----Decoded View---------------
Arg [0] : _raini (address): 0xeB953eDA0DC65e3246f43DC8fa13f35623bDd5eD
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb953eda0dc65e3246f43dc8fa13f35623bdd5ed
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.00065 | 8,246,082.8516 | $5,363.33 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.