Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 925 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw From Br... | 18071502 | 594 days ago | IN | 0 ETH | 0.00256276 | ||||
Set Operator | 18071485 | 594 days ago | IN | 0 ETH | 0.00068519 | ||||
Deposit To Bridg... | 17931236 | 613 days ago | IN | 0 ETH | 0.00369944 | ||||
Deposit To Bridg... | 17929402 | 613 days ago | IN | 0 ETH | 0.00417762 | ||||
Deposit To Bridg... | 17924396 | 614 days ago | IN | 0 ETH | 0.00295888 | ||||
Deposit To Bridg... | 17918388 | 615 days ago | IN | 0 ETH | 0.00208112 | ||||
Deposit To Bridg... | 17917699 | 615 days ago | IN | 0 ETH | 0.0018102 | ||||
Deposit To Bridg... | 17917456 | 615 days ago | IN | 0 ETH | 0.00204787 | ||||
Deposit To Bridg... | 17915590 | 615 days ago | IN | 0 ETH | 0.00455053 | ||||
Deposit To Bridg... | 17914824 | 616 days ago | IN | 0 ETH | 0.00482674 | ||||
Withdraw From Br... | 17913618 | 616 days ago | IN | 0 ETH | 0.0091182 | ||||
Withdraw From Br... | 17912862 | 616 days ago | IN | 0 ETH | 0.02713675 | ||||
Deposit To Bridg... | 17907503 | 617 days ago | IN | 0 ETH | 0.00108907 | ||||
Deposit To Bridg... | 17905687 | 617 days ago | IN | 0 ETH | 0.00042368 | ||||
Deposit To Bridg... | 17905648 | 617 days ago | IN | 0 ETH | 0.00114413 | ||||
Deposit To Bridg... | 17905644 | 617 days ago | IN | 0 ETH | 0.00103298 | ||||
Deposit To Bridg... | 17905633 | 617 days ago | IN | 0 ETH | 0.00045249 | ||||
Deposit To Bridg... | 17905626 | 617 days ago | IN | 0 ETH | 0.00040921 | ||||
Deposit To Bridg... | 17905163 | 617 days ago | IN | 0 ETH | 0.00178791 | ||||
Deposit To Bridg... | 17905118 | 617 days ago | IN | 0 ETH | 0.00097168 | ||||
Deposit To Bridg... | 17905118 | 617 days ago | IN | 0 ETH | 0.00160157 | ||||
Deposit To Bridg... | 17904671 | 617 days ago | IN | 0 ETH | 0.00143947 | ||||
Deposit To Bridg... | 17904636 | 617 days ago | IN | 0 ETH | 0.00147895 | ||||
Deposit To Bridg... | 17904584 | 617 days ago | IN | 0 ETH | 0.0110316 | ||||
Deposit To Bridg... | 17904583 | 617 days ago | IN | 0 ETH | 0.0110316 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Bridge
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-16 */ /** *Submitted for verification at Etherscan.io on 2023-03-12 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ 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) { 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) { 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) { // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @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. 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) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { 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) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol pragma solidity >=0.6.0 <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() internal { _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 make 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; } } // File: bsc-library/contracts/IBEP20.sol pragma solidity >=0.4.0; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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); } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: bsc-library/contracts/SafeBEP20.sol pragma solidity ^0.6.0; /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 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 * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 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' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: decreased allowance below zero"); _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(IBEP20 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, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } } pragma solidity 0.6.12; contract Bridge is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; IBEP20 public token; uint256 public deposits; uint256 public minDeposit = 6000000000000000000000000; // 6000000 PEPE or $10 at current rate uint256 public tax = 20; // 0.2% uint256 public outterTax = 20; // 0.2% address public bridgeOperator; event Deposit(address user, uint256 amount, uint256 time); event Withdraw(address user, uint256 amount, uint256 time); constructor(IBEP20 _token) public { token = _token; } struct TxInfo{ uint256 deposit; address depositor; } uint256 public lastId = 0; uint256 public depositorsId = 0; mapping(uint256 => TxInfo) public depositMaps; mapping(uint256 => TxInfo) public withdrawMaps; function depositToBridge(uint256 _amount) public nonReentrant { require(_amount >= minDeposit, 'bad rate'); uint256 taxesBridge = _amount.mul(tax).div(10000); token.safeTransferFrom(msg.sender, owner(), taxesBridge); token.safeTransferFrom(msg.sender, address(this), _amount.sub(taxesBridge)); deposits = deposits + _amount.sub(taxesBridge); depositMaps[lastId].deposit = _amount.sub(taxesBridge); depositMaps[lastId].depositor = msg.sender; lastId = lastId+1; emit Deposit(msg.sender, _amount.sub(taxesBridge), block.timestamp); } function withdrawFromBridge(uint256 _amount, address user) public { require(msg.sender == bridgeOperator, 'bad call'); uint256 taxesBridge = _amount.mul(outterTax).div(10000); token.safeTransfer(user, _amount.sub(taxesBridge)); token.safeTransfer(owner(), taxesBridge); withdrawMaps[lastId].deposit = _amount.sub(taxesBridge); withdrawMaps[lastId].depositor = user; depositorsId = depositorsId+1; emit Withdraw(msg.sender, _amount.sub(taxesBridge), block.timestamp); } function withdrawFromBridgeMultiple(uint256[] memory _amount, address[] memory user) public { require(msg.sender == bridgeOperator, 'bad call'); require(user.length == _amount.length, 'user amounts mismatch'); for(uint i=0; i<user.length; i++){ uint256 taxesBridge = _amount[i].mul(outterTax).div(10000); token.safeTransfer(user[i], _amount[i].sub(taxesBridge)); token.safeTransfer(owner(), taxesBridge); withdrawMaps[lastId].deposit = _amount[i].sub(taxesBridge); withdrawMaps[lastId].depositor = user[i]; depositorsId = depositorsId+1; emit Withdraw(user[i], _amount[i].sub(taxesBridge), block.timestamp); } } function setOperator(address _operator) public onlyOwner { bridgeOperator = _operator; } function changeMinDeposit(uint256 _value) public onlyOwner { minDeposit = _value; } function changeTax(uint256 _newTax, uint256 _newOuterTax) public onlyOwner { require(_newTax <= 200, 'too large'); // 2% tax bridge max require(outterTax <= 200, 'too large'); // 2% tax bridge max tax = _newTax; outterTax = _newOuterTax; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IBEP20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"Deposit","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":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"bridgeOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"changeMinDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTax","type":"uint256"},{"internalType":"uint256","name":"_newOuterTax","type":"uint256"}],"name":"changeTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositMaps","outputs":[{"internalType":"uint256","name":"deposit","type":"uint256"},{"internalType":"address","name":"depositor","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositToBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositorsId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"outterTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"withdrawFromBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"address[]","name":"user","type":"address[]"}],"name":"withdrawFromBridgeMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawMaps","outputs":[{"internalType":"uint256","name":"deposit","type":"uint256"},{"internalType":"address","name":"depositor","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526a04f68ca6d8cd91c6000000600455601460055560146006556000600855600060095534801561003357600080fd5b506040516113873803806113878339818101604052602081101561005657600080fd5b505160006100626100d5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b0319166001600160a01b03929092169190911790556100d9565b3390565b61129f806100e86000396000f3fe608060405234801561001057600080fd5b50600436106100f15760003560e01c80631e1149cb146100f65780632b5634e514610134578063323a5e0b1461014e57806341b3d185146101565780634b2a12da1461015e57806356703f411461017d578063590665c2146101a9578063715018a6146101cd5780638da5cb5b146101d55780639036ed4d146101dd57806399c8d55614610200578063b3ab15fb14610208578063b3ccb30e1461022e578063c1292cc314610236578063cd1545f01461023e578063e4f7627f1461025b578063f2fde38b14610278578063fc0c546a1461029e578063fda3e9fa146102a6575b600080fd5b6101136004803603602081101561010c57600080fd5b50356103c9565b604080519283526001600160a01b0390911660208301528051918290030190f35b61013c6103eb565b60408051918252519081900360200190f35b61013c6103f1565b61013c6103f7565b61017b6004803603602081101561017457600080fd5b50356103fd565b005b61017b6004803603604081101561019357600080fd5b50803590602001356001600160a01b0316610464565b6101b16105a6565b604080516001600160a01b039092168252519081900360200190f35b61017b6105b5565b6101b161064f565b61017b600480360360408110156101f357600080fd5b508035906020013561065e565b61013c610751565b61017b6004803603602081101561021e57600080fd5b50356001600160a01b0316610757565b61013c6107db565b61013c6107e1565b61017b6004803603602081101561025457600080fd5b50356107e7565b6101136004803603602081101561027157600080fd5b50356109a1565b61017b6004803603602081101561028e57600080fd5b50356001600160a01b03166109c3565b6101b1610ab3565b61017b600480360360408110156102bc57600080fd5b810190602081018135600160201b8111156102d657600080fd5b8201836020820111156102e857600080fd5b803590602001918460208302840111600160201b8311171561030957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561035857600080fd5b82018360208201111561036a57600080fd5b803590602001918460208302840111600160201b8311171561038b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610ac2945050505050565b600b60205260009081526040902080546001909101546001600160a01b031682565b60095481565b60035481565b60045481565b610405610cc9565b6001600160a01b031661041661064f565b6001600160a01b03161461045f576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b600455565b6007546001600160a01b031633146104ae576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b60006104d16127106104cb60065486610ccd90919063ffffffff16565b90610d2f565b90506104f4826104e18584610d93565b6002546001600160a01b03169190610df0565b6105126104ff61064f565b6002546001600160a01b03169083610df0565b61051c8382610d93565b600880546000908152600b6020526040808220939093559054815220600190810180546001600160a01b0319166001600160a01b03851617905560098054909101905560008051602061124a833981519152336105798584610d93565b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a1505050565b6007546001600160a01b031681565b6105bd610cc9565b6001600160a01b03166105ce61064f565b6001600160a01b031614610617576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b039091169060008051602061122a833981519152908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610666610cc9565b6001600160a01b031661067761064f565b6001600160a01b0316146106c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b60c8821115610702576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b60c86006541115610746576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b600591909155600655565b60055481565b61075f610cc9565b6001600160a01b031661077061064f565b6001600160a01b0316146107b9576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60065481565b60085481565b6002600154141561083f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155600454811015610886576040805162461bcd60e51b8152602060048201526008602482015267626164207261746560c01b604482015290519081900360640190fd5b60006108a36127106104cb60055485610ccd90919063ffffffff16565b90506108c5336108b161064f565b6002546001600160a01b0316919084610e42565b6108e833306108d48585610d93565b6002546001600160a01b0316929190610e42565b6108f28282610d93565b600380549190910190556109068282610d93565b600880546000908152600a6020526040808220939093558154815291909120600190810180546001600160a01b0319163390811790915582549091019091557f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15906109718484610d93565b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a1505060018055565b600a60205260009081526040902080546001909101546001600160a01b031682565b6109cb610cc9565b6001600160a01b03166109dc61064f565b6001600160a01b031614610a25576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b6001600160a01b038116610a6a5760405162461bcd60e51b815260040180806020018281038252602681526020018061119d6026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602061122a83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6007546001600160a01b03163314610b0c576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b8151815114610b5a576040805162461bcd60e51b81526020600482015260156024820152740eae6cae440c2dadeeadce8e640dad2e6dac2e8c6d605b1b604482015290519081900360640190fd5b60005b8151811015610cc4576000610b966127106104cb600654878681518110610b8057fe5b6020026020010151610ccd90919063ffffffff16565b9050610bd5838381518110610ba757fe5b60200260200101516104e183878681518110610bbf57fe5b6020026020010151610d9390919063ffffffff16565b610be06104ff61064f565b610bf081858481518110610bbf57fe5b6008546000908152600b60205260409020558251839083908110610c1057fe5b6020026020010151600b6000600854815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060095460010160098190555060008051602061124a833981519152838381518110610c7b57fe5b6020026020010151610c9383878681518110610bbf57fe5b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a150600101610b5d565b505050565b3390565b600082610cdc57506000610d29565b82820282848281610ce957fe5b0414610d265760405162461bcd60e51b81526004018080602001828103825260218152602001806111e96021913960400191505060405180910390fd5b90505b92915050565b6000808211610d82576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381610d8b57fe5b049392505050565b600082821115610dea576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610cc4908490610ea2565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610e9c908590610ea2565b50505050565b6060610ef7826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f539092919063ffffffff16565b805190915015610cc457808060200190516020811015610f1657600080fd5b5051610cc45760405162461bcd60e51b815260040180806020018281038252602a815260200180611173602a913960400191505060405180910390fd5b6060610f628484600085610f6c565b90505b9392505050565b606082471015610fad5760405162461bcd60e51b81526004018080602001828103825260268152602001806111c36026913960400191505060405180910390fd5b610fb6856110c8565b611007576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106110465780518252601f199092019160209182019101611027565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146110a8576040519150601f19603f3d011682016040523d82523d6000602084013e6110ad565b606091505b50915091506110bd8282866110ce565b979650505050505050565b3b151590565b606083156110dd575081610f65565b8251156110ed5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561113757818101518382015260200161111f565b50505050905090810190601f1680156111645780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0f279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568a264697066735822122005ff7c7cbc633339344131a1c35342845d3aa9607969baf23cac1dabc1bcd69a64736f6c634300060c00330000000000000000000000006982508145454ce325ddbe47a25d4ec3d2311933
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f15760003560e01c80631e1149cb146100f65780632b5634e514610134578063323a5e0b1461014e57806341b3d185146101565780634b2a12da1461015e57806356703f411461017d578063590665c2146101a9578063715018a6146101cd5780638da5cb5b146101d55780639036ed4d146101dd57806399c8d55614610200578063b3ab15fb14610208578063b3ccb30e1461022e578063c1292cc314610236578063cd1545f01461023e578063e4f7627f1461025b578063f2fde38b14610278578063fc0c546a1461029e578063fda3e9fa146102a6575b600080fd5b6101136004803603602081101561010c57600080fd5b50356103c9565b604080519283526001600160a01b0390911660208301528051918290030190f35b61013c6103eb565b60408051918252519081900360200190f35b61013c6103f1565b61013c6103f7565b61017b6004803603602081101561017457600080fd5b50356103fd565b005b61017b6004803603604081101561019357600080fd5b50803590602001356001600160a01b0316610464565b6101b16105a6565b604080516001600160a01b039092168252519081900360200190f35b61017b6105b5565b6101b161064f565b61017b600480360360408110156101f357600080fd5b508035906020013561065e565b61013c610751565b61017b6004803603602081101561021e57600080fd5b50356001600160a01b0316610757565b61013c6107db565b61013c6107e1565b61017b6004803603602081101561025457600080fd5b50356107e7565b6101136004803603602081101561027157600080fd5b50356109a1565b61017b6004803603602081101561028e57600080fd5b50356001600160a01b03166109c3565b6101b1610ab3565b61017b600480360360408110156102bc57600080fd5b810190602081018135600160201b8111156102d657600080fd5b8201836020820111156102e857600080fd5b803590602001918460208302840111600160201b8311171561030957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561035857600080fd5b82018360208201111561036a57600080fd5b803590602001918460208302840111600160201b8311171561038b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610ac2945050505050565b600b60205260009081526040902080546001909101546001600160a01b031682565b60095481565b60035481565b60045481565b610405610cc9565b6001600160a01b031661041661064f565b6001600160a01b03161461045f576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b600455565b6007546001600160a01b031633146104ae576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b60006104d16127106104cb60065486610ccd90919063ffffffff16565b90610d2f565b90506104f4826104e18584610d93565b6002546001600160a01b03169190610df0565b6105126104ff61064f565b6002546001600160a01b03169083610df0565b61051c8382610d93565b600880546000908152600b6020526040808220939093559054815220600190810180546001600160a01b0319166001600160a01b03851617905560098054909101905560008051602061124a833981519152336105798584610d93565b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a1505050565b6007546001600160a01b031681565b6105bd610cc9565b6001600160a01b03166105ce61064f565b6001600160a01b031614610617576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b039091169060008051602061122a833981519152908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b610666610cc9565b6001600160a01b031661067761064f565b6001600160a01b0316146106c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b60c8821115610702576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b60c86006541115610746576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b600591909155600655565b60055481565b61075f610cc9565b6001600160a01b031661077061064f565b6001600160a01b0316146107b9576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60065481565b60085481565b6002600154141561083f576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155600454811015610886576040805162461bcd60e51b8152602060048201526008602482015267626164207261746560c01b604482015290519081900360640190fd5b60006108a36127106104cb60055485610ccd90919063ffffffff16565b90506108c5336108b161064f565b6002546001600160a01b0316919084610e42565b6108e833306108d48585610d93565b6002546001600160a01b0316929190610e42565b6108f28282610d93565b600380549190910190556109068282610d93565b600880546000908152600a6020526040808220939093558154815291909120600190810180546001600160a01b0319163390811790915582549091019091557f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15906109718484610d93565b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a1505060018055565b600a60205260009081526040902080546001909101546001600160a01b031682565b6109cb610cc9565b6001600160a01b03166109dc61064f565b6001600160a01b031614610a25576040805162461bcd60e51b8152602060048201819052602482015260008051602061120a833981519152604482015290519081900360640190fd5b6001600160a01b038116610a6a5760405162461bcd60e51b815260040180806020018281038252602681526020018061119d6026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602061122a83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6007546001600160a01b03163314610b0c576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b8151815114610b5a576040805162461bcd60e51b81526020600482015260156024820152740eae6cae440c2dadeeadce8e640dad2e6dac2e8c6d605b1b604482015290519081900360640190fd5b60005b8151811015610cc4576000610b966127106104cb600654878681518110610b8057fe5b6020026020010151610ccd90919063ffffffff16565b9050610bd5838381518110610ba757fe5b60200260200101516104e183878681518110610bbf57fe5b6020026020010151610d9390919063ffffffff16565b610be06104ff61064f565b610bf081858481518110610bbf57fe5b6008546000908152600b60205260409020558251839083908110610c1057fe5b6020026020010151600b6000600854815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060095460010160098190555060008051602061124a833981519152838381518110610c7b57fe5b6020026020010151610c9383878681518110610bbf57fe5b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a150600101610b5d565b505050565b3390565b600082610cdc57506000610d29565b82820282848281610ce957fe5b0414610d265760405162461bcd60e51b81526004018080602001828103825260218152602001806111e96021913960400191505060405180910390fd5b90505b92915050565b6000808211610d82576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381610d8b57fe5b049392505050565b600082821115610dea576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610cc4908490610ea2565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610e9c908590610ea2565b50505050565b6060610ef7826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f539092919063ffffffff16565b805190915015610cc457808060200190516020811015610f1657600080fd5b5051610cc45760405162461bcd60e51b815260040180806020018281038252602a815260200180611173602a913960400191505060405180910390fd5b6060610f628484600085610f6c565b90505b9392505050565b606082471015610fad5760405162461bcd60e51b81526004018080602001828103825260268152602001806111c36026913960400191505060405180910390fd5b610fb6856110c8565b611007576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106110465780518252601f199092019160209182019101611027565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146110a8576040519150601f19603f3d011682016040523d82523d6000602084013e6110ad565b606091505b50915091506110bd8282866110ce565b979650505050505050565b3b151590565b606083156110dd575081610f65565b8251156110ed5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561113757818101518382015260200161111f565b50505050905090810190601f1680156111645780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0f279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568a264697066735822122005ff7c7cbc633339344131a1c35342845d3aa9607969baf23cac1dabc1bcd69a64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006982508145454ce325ddbe47a25d4ec3d2311933
-----Decoded View---------------
Arg [0] : _token (address): 0x6982508145454Ce325dDbE47a25d4ec3d2311933
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006982508145454ce325ddbe47a25d4ec3d2311933
Deployed Bytecode Sourcemap
29105:3307:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29918:46;;;;;;;;;;;;;;;;-1:-1:-1;29918:46:0;;:::i;:::-;;;;;;;-1:-1:-1;;;;;29918:46:0;;;;;;;;;;;;;;;;29827:31;;;:::i;:::-;;;;;;;;;;;;;;;;29253:23;;;:::i;29283:53::-;;;:::i;32021:98::-;;;;;;;;;;;;;;;;-1:-1:-1;32021:98:0;;:::i;:::-;;30601:546;;;;;;;;;;;;;;;;-1:-1:-1;30601:546:0;;;;;;-1:-1:-1;;;;;30601:546:0;;:::i;29464:29::-;;;:::i;:::-;;;;-1:-1:-1;;;;;29464:29:0;;;;;;;;;;;;;;2849:148;;;:::i;2198:87::-;;;:::i;32127:280::-;;;;;;;;;;;;;;;;-1:-1:-1;32127:280:0;;;;;;;:::i;29382:23::-;;;:::i;31911:102::-;;;;;;;;;;;;;;;;-1:-1:-1;31911:102:0;-1:-1:-1;;;;;31911:102:0;;:::i;29420:29::-;;;:::i;29795:25::-;;;:::i;29974:619::-;;;;;;;;;;;;;;;;-1:-1:-1;29974:619:0;;:::i;29865:45::-;;;;;;;;;;;;;;;;-1:-1:-1;29865:45:0;;:::i;3152:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3152:244:0;-1:-1:-1;;;;;3152:244:0;;:::i;29224:19::-;;;:::i;31155:748::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31155:748:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31155:748:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31155:748:0;;;;;;;;-1:-1:-1;31155:748:0;;-1:-1:-1;;;;;31155:748:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;31155:748:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31155:748:0;;-1:-1:-1;31155:748:0;;-1:-1:-1;;;;;31155:748:0:i;29918:46::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29918:46:0;;:::o;29827:31::-;;;;:::o;29253:23::-;;;;:::o;29283:53::-;;;;:::o;32021:98::-;2429:12;:10;:12::i;:::-;-1:-1:-1;;;;;2418:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2418:23:0;;2410:68;;;;;-1:-1:-1;;;2410:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2410:68:0;;;;;;;;;;;;;;;32091:10:::1;:19:::0;32021:98::o;30601:546::-;30700:14;;-1:-1:-1;;;;;30700:14:0;30686:10;:28;30678:49;;;;;-1:-1:-1;;;30678:49:0;;;;;;;;;;;;-1:-1:-1;;;30678:49:0;;;;;;;;;;;;;;;30738:19;30760:33;30787:5;30760:22;30772:9;;30760:7;:11;;:22;;;;:::i;:::-;:26;;:33::i;:::-;30738:55;-1:-1:-1;30804:50:0;30823:4;30829:24;:7;30738:55;30829:11;:24::i;:::-;30804:5;;-1:-1:-1;;;;;30804:5:0;;:50;:18;:50::i;:::-;30865:40;30884:7;:5;:7::i;:::-;30865:5;;-1:-1:-1;;;;;30865:5:0;;30893:11;30865:18;:40::i;:::-;30947:24;:7;30959:11;30947;:24::i;:::-;30929:6;;;30916:20;;;;:12;:20;;;;;;:55;;;;30996:6;;30983:20;;;:30;;;;:37;;-1:-1:-1;;;;;;30983:37:0;-1:-1:-1;;;;;30983:37:0;;;;;31046:12;;;:14;;;31031:29;;-1:-1:-1;;;;;;;;;;;31085:10:0;31097:24;:7;31109:11;31097;:24::i;:::-;31076:63;;;-1:-1:-1;;;;;31076:63:0;;;;;;;;;;;;31123:15;31076:63;;;;;;;;;;;;;30601:546;;;:::o;29464:29::-;;;-1:-1:-1;;;;;29464:29:0;;:::o;2849:148::-;2429:12;:10;:12::i;:::-;-1:-1:-1;;;;;2418:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2418:23:0;;2410:68;;;;;-1:-1:-1;;;2410:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2410:68:0;;;;;;;;;;;;;;;2956:1:::1;2940:6:::0;;2919:40:::1;::::0;-1:-1:-1;;;;;2940:6:0;;::::1;::::0;-1:-1:-1;;;;;;;;;;;2919:40:0;2956:1;;2919:40:::1;2987:1;2970:19:::0;;-1:-1:-1;;;;;;2970:19:0::1;::::0;;2849:148::o;2198:87::-;2244:7;2271:6;-1:-1:-1;;;;;2271:6:0;2198:87;:::o;32127:280::-;2429:12;:10;:12::i;:::-;-1:-1:-1;;;;;2418:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2418:23:0;;2410:68;;;;;-1:-1:-1;;;2410:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2410:68:0;;;;;;;;;;;;;;;32232:3:::1;32221:7;:14;;32213:36;;;::::0;;-1:-1:-1;;;32213:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32213:36:0;;;;;;;;;;;;;::::1;;32302:3;32289:9;;:16;;32281:38;;;::::0;;-1:-1:-1;;;32281:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32281:38:0;;;;;;;;;;;;;::::1;;32351:3;:13:::0;;;;32375:9:::1;:24:::0;32127:280::o;29382:23::-;;;;:::o;31911:102::-;2429:12;:10;:12::i;:::-;-1:-1:-1;;;;;2418:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2418:23:0;;2410:68;;;;;-1:-1:-1;;;2410:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2410:68:0;;;;;;;;;;;;;;;31979:14:::1;:26:::0;;-1:-1:-1;;;;;;31979:26:0::1;-1:-1:-1::0;;;;;31979:26:0;;;::::1;::::0;;;::::1;::::0;;31911:102::o;29420:29::-;;;;:::o;29795:25::-;;;;:::o;29974:619::-;12713:1;13318:7;;:19;;13310:63;;;;;-1:-1:-1;;;13310:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12713:1;13451:7;:18;30066:10:::1;::::0;30055:21;::::1;;30047:42;;;::::0;;-1:-1:-1;;;30047:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30047:42:0;;;;;;;;;;;;;::::1;;30100:19;30122:27;30143:5;30122:16;30134:3;;30122:7;:11;;:16;;;;:::i;:27::-;30100:49;;30160:56;30183:10;30195:7;:5;:7::i;:::-;30160:5;::::0;-1:-1:-1;;;;;30160:5:0::1;::::0;:56;30204:11;30160:22:::1;:56::i;:::-;30227:75;30250:10;30270:4;30277:24;:7:::0;30289:11;30277::::1;:24::i;:::-;30227:5;::::0;-1:-1:-1;;;;;30227:5:0::1;::::0;:75;;:22:::1;:75::i;:::-;30335:24;:7:::0;30347:11;30335::::1;:24::i;:::-;30324:8;::::0;;:35;;;::::1;30313:46:::0;;30400:24:::1;:7:::0;30412:11;30400::::1;:24::i;:::-;30382:6;::::0;;30370:19:::1;::::0;;;:11:::1;:19;::::0;;;;;:54;;;;30447:6;;30435:19;;;;;;:29:::1;::::0;;::::1;:42:::0;;-1:-1:-1;;;;;;30435:42:0::1;30467:10;30435:42:::0;;::::1;::::0;;;30498:6;;:8;;::::1;30489:17:::0;;;30523:62:::1;::::0;30543:24:::1;:7:::0;30555:11;30543::::1;:24::i;:::-;30523:62;::::0;;-1:-1:-1;;;;;30523:62:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;30569:15:::1;30523:62:::0;;;;;;;;;;;;::::1;-1:-1:-1::0;;12669:1:0;13630:22;;29974:619::o;29865:45::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29865:45:0;;:::o;3152:244::-;2429:12;:10;:12::i;:::-;-1:-1:-1;;;;;2418:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2418:23:0;;2410:68;;;;;-1:-1:-1;;;2410:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2410:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3241:22:0;::::1;3233:73;;;;-1:-1:-1::0;;;3233:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3343:6;::::0;;3322:38:::1;::::0;-1:-1:-1;;;;;3322:38:0;;::::1;::::0;3343:6;::::1;::::0;-1:-1:-1;;;;;;;;;;;3322:38:0;::::1;3371:6;:17:::0;;-1:-1:-1;;;;;;3371:17:0::1;-1:-1:-1::0;;;;;3371:17:0;;;::::1;::::0;;;::::1;::::0;;3152:244::o;29224:19::-;;;-1:-1:-1;;;;;29224:19:0;;:::o;31155:748::-;31280:14;;-1:-1:-1;;;;;31280:14:0;31266:10;:28;31258:49;;;;;-1:-1:-1;;;31258:49:0;;;;;;;;;;;;-1:-1:-1;;;31258:49:0;;;;;;;;;;;;;;;31341:7;:14;31326:4;:11;:29;31318:63;;;;;-1:-1:-1;;;31318:63:0;;;;;;;;;;;;-1:-1:-1;;;31318:63:0;;;;;;;;;;;;;;;31398:6;31394:500;31410:4;:11;31408:1;:13;31394:500;;;31442:19;31464:36;31494:5;31464:25;31479:9;;31464:7;31472:1;31464:10;;;;;;;;;;;;;;:14;;:25;;;;:::i;:36::-;31442:58;;31515:56;31534:4;31539:1;31534:7;;;;;;;;;;;;;;31543:27;31558:11;31543:7;31551:1;31543:10;;;;;;;;;;;;;;:14;;:27;;;;:::i;31515:56::-;31586:40;31605:7;:5;:7::i;31586:40::-;31672:27;31687:11;31672:7;31680:1;31672:10;;;;;;;:27;31654:6;;31641:20;;;;:12;:20;;;;;:58;31748:7;;:4;;31753:1;;31748:7;;;;;;;;;;;;31715:12;:20;31728:6;;31715:20;;;;;;;;;;;:30;;;:40;;;;;-1:-1:-1;;;;;31715:40:0;;;;;-1:-1:-1;;;;;31715:40:0;;;;;;31785:12;;31798:1;31785:14;31770:12;:29;;;;-1:-1:-1;;;;;;;;;;;31828:4:0;31833:1;31828:7;;;;;;;;;;;;;;31837:27;31852:11;31837:7;31845:1;31837:10;;;;;;;:27;31819:63;;;-1:-1:-1;;;;;31819:63:0;;;;;;;;;;;;31866:15;31819:63;;;;;;;;;;;;;-1:-1:-1;31423:3:0;;31394:500;;;;31155:748;;:::o;738:106::-;826:10;738:106;:::o;7075:220::-;7133:7;7157:6;7153:20;;-1:-1:-1;7172:1:0;7165:8;;7153:20;7196:5;;;7200:1;7196;:5;:1;7220:5;;;;;:10;7212:56;;;;-1:-1:-1;;;7212:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7286:1;-1:-1:-1;7075:220:0;;;;;:::o;7773:153::-;7831:7;7863:1;7859;:5;7851:44;;;;;-1:-1:-1;;;7851:44:0;;;;;;;;;;;;-1:-1:-1;;;7851:44:0;;;;;;;;;;;;;;;7917:1;7913;:5;;;;;;;7773:153;-1:-1:-1;;;7773:153:0:o;6658:158::-;6716:7;6749:1;6744;:6;;6736:49;;;;;-1:-1:-1;;;6736:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6803:5:0;;;6658:158::o;25786:211::-;25930:58;;;-1:-1:-1;;;;;25930:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25930:58:0;-1:-1:-1;;;25930:58:0;;;25903:86;;25923:5;;25903:19;:86::i;26005:248::-;26176:68;;;-1:-1:-1;;;;;26176:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26176:68:0;-1:-1:-1;;;26176:68:0;;;26149:96;;26169:5;;26149:19;:96::i;:::-;26005:248;;;;:::o;28297:774::-;28721:23;28747:69;28775:4;28747:69;;;;;;;;;;;;;;;;;28755:5;-1:-1:-1;;;;;28747:27:0;;;:69;;;;;:::i;:::-;28831:17;;28721:95;;-1:-1:-1;28831:21:0;28827:237;;28986:10;28975:30;;;;;;;;;;;;;;;-1:-1:-1;28975:30:0;28967:85;;;;-1:-1:-1;;;28967:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20599:229;20736:12;20768:52;20790:6;20798:4;20804:1;20807:12;20768:21;:52::i;:::-;20761:59;;20599:229;;;;;;:::o;21719:571::-;21889:12;21947:5;21922:21;:30;;21914:81;;;;-1:-1:-1;;;21914:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22014:18;22025:6;22014:10;:18::i;:::-;22006:60;;;;;-1:-1:-1;;;22006:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22140:12;22154:23;22181:6;-1:-1:-1;;;;;22181:11:0;22200:5;22207:4;22181:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22181:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22139:73;;;;22230:52;22248:7;22257:10;22269:12;22230:17;:52::i;:::-;22223:59;21719:571;-1:-1:-1;;;;;;;21719:571:0:o;17659:444::-;18039:20;18087:8;;;17659:444::o;24368:777::-;24518:12;24547:7;24543:595;;;-1:-1:-1;24578:10:0;24571:17;;24543:595;24692:17;;:21;24688:439;;24955:10;24949:17;25016:15;25003:10;24999:2;24995:19;24988:44;24903:148;25098:12;25091:20;;-1:-1:-1;;;25091:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://05ff7c7cbc633339344131a1c35342845d3aa9607969baf23cac1dabc1bcd69a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.