Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 150 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw From Br... | 17935584 | 392 days ago | IN | 0 ETH | 0.04813129 | ||||
Withdraw From Br... | 17935568 | 392 days ago | IN | 0 ETH | 0.08437471 | ||||
Deposit To Bridg... | 17935318 | 392 days ago | IN | 0 ETH | 0.00613518 | ||||
Deposit To Bridg... | 17933051 | 393 days ago | IN | 0 ETH | 0.0022118 | ||||
Deposit To Bridg... | 17932556 | 393 days ago | IN | 0 ETH | 0.00195986 | ||||
Deposit To Bridg... | 17932455 | 393 days ago | IN | 0 ETH | 0.00185864 | ||||
Deposit To Bridg... | 17932200 | 393 days ago | IN | 0 ETH | 0.0021593 | ||||
Deposit To Bridg... | 17931886 | 393 days ago | IN | 0 ETH | 0.00286389 | ||||
Deposit To Bridg... | 17931778 | 393 days ago | IN | 0 ETH | 0.00281106 | ||||
Deposit To Bridg... | 17931702 | 393 days ago | IN | 0 ETH | 0.00281241 | ||||
Deposit To Bridg... | 17931303 | 393 days ago | IN | 0 ETH | 0.00309473 | ||||
Deposit To Bridg... | 17930916 | 393 days ago | IN | 0 ETH | 0.00308977 | ||||
Deposit To Bridg... | 17930191 | 393 days ago | IN | 0 ETH | 0.00836451 | ||||
Deposit To Bridg... | 17929836 | 393 days ago | IN | 0 ETH | 0.00567109 | ||||
Deposit To Bridg... | 17929538 | 393 days ago | IN | 0 ETH | 0.00430207 | ||||
Deposit To Bridg... | 17929492 | 393 days ago | IN | 0 ETH | 0.00438674 | ||||
Deposit To Bridg... | 17929491 | 393 days ago | IN | 0 ETH | 0.00718938 | ||||
Deposit To Bridg... | 17929399 | 393 days ago | IN | 0 ETH | 0.00398888 | ||||
Deposit To Bridg... | 17929376 | 393 days ago | IN | 0 ETH | 0.00349252 | ||||
Deposit To Bridg... | 17928998 | 393 days ago | IN | 0 ETH | 0.00318299 | ||||
Deposit To Bridg... | 17928985 | 393 days ago | IN | 0 ETH | 0.00368526 | ||||
Deposit To Bridg... | 17928920 | 393 days ago | IN | 0 ETH | 0.00357202 | ||||
Deposit To Bridg... | 17928904 | 393 days ago | IN | 0 ETH | 0.00547142 | ||||
Deposit To Bridg... | 17928773 | 393 days ago | IN | 0 ETH | 0.00610905 | ||||
Deposit To Bridg... | 17928763 | 393 days ago | IN | 0 ETH | 0.00722157 |
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-08-10 */ /** *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 = 35564000000000; // $10 of PC at current rate uint256 public tax = 100; // 1% uint256 public outterTax = 100; // 1% 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'); token.safeTransfer(user, _amount); withdrawMaps[lastId].deposit = _amount; withdrawMaps[lastId].depositor = user; depositorsId = depositorsId+1; emit Withdraw(msg.sender, _amount, 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++){ token.safeTransfer(user[i], _amount[i]); withdrawMaps[lastId].deposit = _amount[i]; withdrawMaps[lastId].depositor = user[i]; depositorsId = depositorsId+1; emit Withdraw(user[i], _amount[i], 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
[{"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
608060405265205863963800600455606460055560646006556000600855600060095534801561002e57600080fd5b506040516112f33803806112f38339818101604052602081101561005157600080fd5b5051600061005d6100d0565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b0319166001600160a01b03929092169190911790556100d4565b3390565b611210806100e36000396000f3fe608060405234801561001057600080fd5b50600436106100f15760003560e01c80631e1149cb146100f65780632b5634e514610134578063323a5e0b1461014e57806341b3d185146101565780634b2a12da1461015e57806356703f411461017d578063590665c2146101a9578063715018a6146101cd5780638da5cb5b146101d55780639036ed4d146101dd57806399c8d55614610200578063b3ab15fb14610208578063b3ccb30e1461022e578063c1292cc314610236578063cd1545f01461023e578063e4f7627f1461025b578063f2fde38b14610278578063fc0c546a1461029e578063fda3e9fa146102a6575b600080fd5b6101136004803603602081101561010c57600080fd5b50356103c9565b604080519283526001600160a01b0390911660208301528051918290030190f35b61013c6103eb565b60408051918252519081900360200190f35b61013c6103f1565b61013c6103f7565b61017b6004803603602081101561017457600080fd5b50356103fd565b005b61017b6004803603604081101561019357600080fd5b50803590602001356001600160a01b0316610464565b6101b161053b565b604080516001600160a01b039092168252519081900360200190f35b61017b61054a565b6101b16105e4565b61017b600480360360408110156101f357600080fd5b50803590602001356105f3565b61013c6106e6565b61017b6004803603602081101561021e57600080fd5b50356001600160a01b03166106ec565b61013c610770565b61013c610776565b61017b6004803603602081101561025457600080fd5b503561077c565b6101136004803603602081101561027157600080fd5b503561093c565b61017b6004803603602081101561028e57600080fd5b50356001600160a01b031661095e565b6101b1610a4e565b61017b600480360360408110156102bc57600080fd5b810190602081018135600160201b8111156102d657600080fd5b8201836020820111156102e857600080fd5b803590602001918460208302840111600160201b8311171561030957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561035857600080fd5b82018360208201111561036a57600080fd5b803590602001918460208302840111600160201b8311171561038b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a5d945050505050565b600b60205260009081526040902080546001909101546001600160a01b031682565b60095481565b60035481565b60045481565b610405610c3a565b6001600160a01b03166104166105e4565b6001600160a01b03161461045f576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b600455565b6007546001600160a01b031633146104ae576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b6002546104c5906001600160a01b03168284610c3e565b600880546000908152600b602090815260408083208690559254825290829020600190810180546001600160a01b0319166001600160a01b0386161790556009805490910190558151338152908101849052428183015290516000805160206111bb833981519152916060908290030190a15050565b6007546001600160a01b031681565b610552610c3a565b6001600160a01b03166105636105e4565b6001600160a01b0316146105ac576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b039091169060008051602061119b833981519152908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6105fb610c3a565b6001600160a01b031661060c6105e4565b6001600160a01b031614610655576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b60c8821115610697576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b60c860065411156106db576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b600591909155600655565b60055481565b6106f4610c3a565b6001600160a01b03166107056105e4565b6001600160a01b03161461074e576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60065481565b60085481565b600260015414156107d4576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560045481101561081b576040805162461bcd60e51b8152602060048201526008602482015267626164207261746560c01b604482015290519081900360640190fd5b600061083e61271061083860055485610c9090919063ffffffff16565b90610cf2565b90506108603361084c6105e4565b6002546001600160a01b0316919084610d56565b610883333061086f8585610db6565b6002546001600160a01b0316929190610d56565b61088d8282610db6565b600380549190910190556108a18282610db6565b600880546000908152600a6020526040808220939093558154815291909120600190810180546001600160a01b0319163390811790915582549091019091557f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159061090c8484610db6565b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a1505060018055565b600a60205260009081526040902080546001909101546001600160a01b031682565b610966610c3a565b6001600160a01b03166109776105e4565b6001600160a01b0316146109c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b6001600160a01b038116610a055760405162461bcd60e51b815260040180806020018281038252602681526020018061110e6026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602061119b83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6007546001600160a01b03163314610aa7576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b8151815114610af5576040805162461bcd60e51b81526020600482015260156024820152740eae6cae440c2dadeeadce8e640dad2e6dac2e8c6d605b1b604482015290519081900360640190fd5b60005b8151811015610c3557610b42828281518110610b1057fe5b6020026020010151848381518110610b2457fe5b60209081029190910101516002546001600160a01b03169190610c3e565b828181518110610b4e57fe5b6020026020010151600b6000600854815260200190815260200160002060000181905550818181518110610b7e57fe5b6020026020010151600b6000600854815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506009546001016009819055506000805160206111bb833981519152828281518110610be957fe5b6020026020010151848381518110610bfd57fe5b602090810291909101810151604080516001600160a01b039094168452918301524282820152519081900360600190a1600101610af8565b505050565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c35908490610e13565b600082610c9f57506000610cec565b82820282848281610cac57fe5b0414610ce95760405162461bcd60e51b815260040180806020018281038252602181526020018061115a6021913960400191505060405180910390fd5b90505b92915050565b6000808211610d45576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381610d4e57fe5b049392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610db0908590610e13565b50505050565b600082821115610e0d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6060610e68826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ec49092919063ffffffff16565b805190915015610c3557808060200190516020811015610e8757600080fd5b5051610c355760405162461bcd60e51b815260040180806020018281038252602a8152602001806110e4602a913960400191505060405180910390fd5b6060610ed38484600085610edd565b90505b9392505050565b606082471015610f1e5760405162461bcd60e51b81526004018080602001828103825260268152602001806111346026913960400191505060405180910390fd5b610f2785611039565b610f78576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610fb75780518252601f199092019160209182019101610f98565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611019576040519150601f19603f3d011682016040523d82523d6000602084013e61101e565b606091505b509150915061102e82828661103f565b979650505050505050565b3b151590565b6060831561104e575081610ed6565b82511561105e5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110a8578181015183820152602001611090565b50505050905090810190601f1680156110d55780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0f279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568a2646970667358221220b1299ae0e5a40c8daf89f6e27334409015b7a5abee15761cda190549f50f924364736f6c634300060c00330000000000000000000000004f311c430540db1d64e635eb55f969f1660b2016
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f15760003560e01c80631e1149cb146100f65780632b5634e514610134578063323a5e0b1461014e57806341b3d185146101565780634b2a12da1461015e57806356703f411461017d578063590665c2146101a9578063715018a6146101cd5780638da5cb5b146101d55780639036ed4d146101dd57806399c8d55614610200578063b3ab15fb14610208578063b3ccb30e1461022e578063c1292cc314610236578063cd1545f01461023e578063e4f7627f1461025b578063f2fde38b14610278578063fc0c546a1461029e578063fda3e9fa146102a6575b600080fd5b6101136004803603602081101561010c57600080fd5b50356103c9565b604080519283526001600160a01b0390911660208301528051918290030190f35b61013c6103eb565b60408051918252519081900360200190f35b61013c6103f1565b61013c6103f7565b61017b6004803603602081101561017457600080fd5b50356103fd565b005b61017b6004803603604081101561019357600080fd5b50803590602001356001600160a01b0316610464565b6101b161053b565b604080516001600160a01b039092168252519081900360200190f35b61017b61054a565b6101b16105e4565b61017b600480360360408110156101f357600080fd5b50803590602001356105f3565b61013c6106e6565b61017b6004803603602081101561021e57600080fd5b50356001600160a01b03166106ec565b61013c610770565b61013c610776565b61017b6004803603602081101561025457600080fd5b503561077c565b6101136004803603602081101561027157600080fd5b503561093c565b61017b6004803603602081101561028e57600080fd5b50356001600160a01b031661095e565b6101b1610a4e565b61017b600480360360408110156102bc57600080fd5b810190602081018135600160201b8111156102d657600080fd5b8201836020820111156102e857600080fd5b803590602001918460208302840111600160201b8311171561030957600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561035857600080fd5b82018360208201111561036a57600080fd5b803590602001918460208302840111600160201b8311171561038b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a5d945050505050565b600b60205260009081526040902080546001909101546001600160a01b031682565b60095481565b60035481565b60045481565b610405610c3a565b6001600160a01b03166104166105e4565b6001600160a01b03161461045f576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b600455565b6007546001600160a01b031633146104ae576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b6002546104c5906001600160a01b03168284610c3e565b600880546000908152600b602090815260408083208690559254825290829020600190810180546001600160a01b0319166001600160a01b0386161790556009805490910190558151338152908101849052428183015290516000805160206111bb833981519152916060908290030190a15050565b6007546001600160a01b031681565b610552610c3a565b6001600160a01b03166105636105e4565b6001600160a01b0316146105ac576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b039091169060008051602061119b833981519152908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6105fb610c3a565b6001600160a01b031661060c6105e4565b6001600160a01b031614610655576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b60c8821115610697576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b60c860065411156106db576040805162461bcd60e51b8152602060048201526009602482015268746f6f206c6172676560b81b604482015290519081900360640190fd5b600591909155600655565b60055481565b6106f4610c3a565b6001600160a01b03166107056105e4565b6001600160a01b03161461074e576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60065481565b60085481565b600260015414156107d4576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560045481101561081b576040805162461bcd60e51b8152602060048201526008602482015267626164207261746560c01b604482015290519081900360640190fd5b600061083e61271061083860055485610c9090919063ffffffff16565b90610cf2565b90506108603361084c6105e4565b6002546001600160a01b0316919084610d56565b610883333061086f8585610db6565b6002546001600160a01b0316929190610d56565b61088d8282610db6565b600380549190910190556108a18282610db6565b600880546000908152600a6020526040808220939093558154815291909120600190810180546001600160a01b0319163390811790915582549091019091557f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159061090c8484610db6565b604080516001600160a01b03909316835260208301919091524282820152519081900360600190a1505060018055565b600a60205260009081526040902080546001909101546001600160a01b031682565b610966610c3a565b6001600160a01b03166109776105e4565b6001600160a01b0316146109c0576040805162461bcd60e51b8152602060048201819052602482015260008051602061117b833981519152604482015290519081900360640190fd5b6001600160a01b038116610a055760405162461bcd60e51b815260040180806020018281038252602681526020018061110e6026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602061119b83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6007546001600160a01b03163314610aa7576040805162461bcd60e51b81526020600482015260086024820152671898590818d85b1b60c21b604482015290519081900360640190fd5b8151815114610af5576040805162461bcd60e51b81526020600482015260156024820152740eae6cae440c2dadeeadce8e640dad2e6dac2e8c6d605b1b604482015290519081900360640190fd5b60005b8151811015610c3557610b42828281518110610b1057fe5b6020026020010151848381518110610b2457fe5b60209081029190910101516002546001600160a01b03169190610c3e565b828181518110610b4e57fe5b6020026020010151600b6000600854815260200190815260200160002060000181905550818181518110610b7e57fe5b6020026020010151600b6000600854815260200190815260200160002060010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506009546001016009819055506000805160206111bb833981519152828281518110610be957fe5b6020026020010151848381518110610bfd57fe5b602090810291909101810151604080516001600160a01b039094168452918301524282820152519081900360600190a1600101610af8565b505050565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610c35908490610e13565b600082610c9f57506000610cec565b82820282848281610cac57fe5b0414610ce95760405162461bcd60e51b815260040180806020018281038252602181526020018061115a6021913960400191505060405180910390fd5b90505b92915050565b6000808211610d45576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b818381610d4e57fe5b049392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610db0908590610e13565b50505050565b600082821115610e0d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6060610e68826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ec49092919063ffffffff16565b805190915015610c3557808060200190516020811015610e8757600080fd5b5051610c355760405162461bcd60e51b815260040180806020018281038252602a8152602001806110e4602a913960400191505060405180910390fd5b6060610ed38484600085610edd565b90505b9392505050565b606082471015610f1e5760405162461bcd60e51b81526004018080602001828103825260268152602001806111346026913960400191505060405180910390fd5b610f2785611039565b610f78576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610fb75780518252601f199092019160209182019101610f98565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611019576040519150601f19603f3d011682016040523d82523d6000602084013e61101e565b606091505b509150915061102e82828661103f565b979650505050505050565b3b151590565b6060831561104e575081610ed6565b82511561105e5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156110a8578181015183820152602001611090565b50505050905090810190601f1680156110d55780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0f279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568a2646970667358221220b1299ae0e5a40c8daf89f6e27334409015b7a5abee15761cda190549f50f924364736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004f311c430540db1d64e635eb55f969f1660b2016
-----Decoded View---------------
Arg [0] : _token (address): 0x4F311C430540db1d64e635EB55f969F1660B2016
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004f311c430540db1d64e635eb55f969f1660b2016
Deployed Bytecode Sourcemap
29105:2937:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29895:46;;;;;;;;;;;;;;;;-1:-1:-1;29895:46:0;;:::i;:::-;;;;;;;-1:-1:-1;;;;;29895:46:0;;;;;;;;;;;;;;;;29804:31;;;:::i;:::-;;;;;;;;;;;;;;;;29253:23;;;:::i;29283:42::-;;;:::i;31651:98::-;;;;;;;;;;;;;;;;-1:-1:-1;31651:98:0;;:::i;:::-;;30578:378;;;;;;;;;;;;;;;;-1:-1:-1;30578:378:0;;;;;;-1:-1:-1;;;;;30578:378:0;;:::i;29441:29::-;;;:::i;:::-;;;;-1:-1:-1;;;;;29441:29:0;;;;;;;;;;;;;;2849:148;;;:::i;2198:87::-;;;:::i;31757:280::-;;;;;;;;;;;;;;;;-1:-1:-1;31757:280:0;;;;;;;:::i;29361:24::-;;;:::i;31541:102::-;;;;;;;;;;;;;;;;-1:-1:-1;31541:102:0;-1:-1:-1;;;;;31541:102:0;;:::i;29398:30::-;;;:::i;29772:25::-;;;:::i;29951:619::-;;;;;;;;;;;;;;;;-1:-1:-1;29951:619:0;;:::i;29842:45::-;;;;;;;;;;;;;;;;-1:-1:-1;29842:45:0;;:::i;3152:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3152:244:0;-1:-1:-1;;;;;3152:244:0;;:::i;29224:19::-;;;:::i;30964:569::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30964:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30964:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30964:569:0;;;;;;;;-1:-1:-1;30964:569:0;;-1:-1:-1;;;;;30964:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30964:569:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30964:569:0;;-1:-1:-1;30964:569:0;;-1:-1:-1;;;;;30964:569:0:i;29895:46::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29895:46:0;;:::o;29804:31::-;;;;:::o;29253:23::-;;;;:::o;29283:42::-;;;;:::o;31651: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;;;;;;;;;;;;;;;31721:10:::1;:19:::0;31651:98::o;30578:378::-;30677:14;;-1:-1:-1;;;;;30677:14:0;30663:10;:28;30655:49;;;;;-1:-1:-1;;;30655:49:0;;;;;;;;;;;;-1:-1:-1;;;30655:49:0;;;;;;;;;;;;;;;30715:5;;:33;;-1:-1:-1;;;;;30715:5:0;30734:4;30740:7;30715:18;:33::i;:::-;30772:6;;;30759:20;;;;:12;:20;;;;;;;;:38;;;30822:6;;30809:20;;;;;;:30;;;;:37;;-1:-1:-1;;;;;;30809:37:0;-1:-1:-1;;;;;30809:37:0;;;;;30872:12;;;:14;;;30857:29;;30902:46;;30911:10;30902:46;;;;;;;;30932:15;30902:46;;;;;;-1:-1:-1;;;;;;;;;;;30902:46:0;;;;;;;;;30578:378;;:::o;29441:29::-;;;-1:-1:-1;;;;;29441: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;31757: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;;;;;;;;;;;;;;;31862:3:::1;31851:7;:14;;31843:36;;;::::0;;-1:-1:-1;;;31843:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31843:36:0;;;;;;;;;;;;;::::1;;31932:3;31919:9;;:16;;31911:38;;;::::0;;-1:-1:-1;;;31911:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31911:38:0;;;;;;;;;;;;;::::1;;31981:3;:13:::0;;;;32005:9:::1;:24:::0;31757:280::o;29361:24::-;;;;:::o;31541: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;;;;;;;;;;;;;;;31609:14:::1;:26:::0;;-1:-1:-1;;;;;;31609:26:0::1;-1:-1:-1::0;;;;;31609:26:0;;;::::1;::::0;;;::::1;::::0;;31541:102::o;29398:30::-;;;;:::o;29772:25::-;;;;:::o;29951:619::-;12713:1;13318:7;;:19;;13310:63;;;;;-1:-1:-1;;;13310:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;12713:1;13451:7;:18;30043:10:::1;::::0;30032:21;::::1;;30024:42;;;::::0;;-1:-1:-1;;;30024:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30024:42:0;;;;;;;;;;;;;::::1;;30077:19;30099:27;30120:5;30099:16;30111:3;;30099:7;:11;;:16;;;;:::i;:::-;:20:::0;::::1;:27::i;:::-;30077:49;;30137:56;30160:10;30172:7;:5;:7::i;:::-;30137:5;::::0;-1:-1:-1;;;;;30137:5:0::1;::::0;:56;30181:11;30137:22:::1;:56::i;:::-;30204:75;30227:10;30247:4;30254:24;:7:::0;30266:11;30254::::1;:24::i;:::-;30204:5;::::0;-1:-1:-1;;;;;30204:5:0::1;::::0;:75;;:22:::1;:75::i;:::-;30312:24;:7:::0;30324:11;30312::::1;:24::i;:::-;30301:8;::::0;;:35;;;::::1;30290:46:::0;;30377:24:::1;:7:::0;30389:11;30377::::1;:24::i;:::-;30359:6;::::0;;30347:19:::1;::::0;;;:11:::1;:19;::::0;;;;;:54;;;;30424:6;;30412:19;;;;;;:29:::1;::::0;;::::1;:42:::0;;-1:-1:-1;;;;;;30412:42:0::1;30444:10;30412:42:::0;;::::1;::::0;;;30475:6;;:8;;::::1;30466:17:::0;;;30500:62:::1;::::0;30520:24:::1;:7:::0;30532:11;30520::::1;:24::i;:::-;30500:62;::::0;;-1:-1:-1;;;;;30500:62:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;30546:15:::1;30500:62:::0;;;;;;;;;;;;::::1;-1:-1:-1::0;;12669:1:0;13630:22;;29951:619::o;29842:45::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29842: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;30964:569::-;31089:14;;-1:-1:-1;;;;;31089:14:0;31075:10;:28;31067:49;;;;;-1:-1:-1;;;31067:49:0;;;;;;;;;;;;-1:-1:-1;;;31067:49:0;;;;;;;;;;;;;;;31150:7;:14;31135:4;:11;:29;31127:63;;;;;-1:-1:-1;;;31127:63:0;;;;;;;;;;;;-1:-1:-1;;;31127:63:0;;;;;;;;;;;;;;;31207:6;31203:321;31219:4;:11;31217:1;:13;31203:321;;;31251:39;31270:4;31275:1;31270:7;;;;;;;;;;;;;;31279;31287:1;31279:10;;;;;;;;;;;;;;;;;;31251:5;;-1:-1:-1;;;;;31251:5:0;;:39;:18;:39::i;:::-;31336:7;31344:1;31336:10;;;;;;;;;;;;;;31305:12;:20;31318:6;;31305:20;;;;;;;;;;;:28;;:41;;;;31395:4;31400:1;31395:7;;;;;;;;;;;;;;31362:12;:20;31375:6;;31362:20;;;;;;;;;;;:30;;;:40;;;;;-1:-1:-1;;;;;31362:40:0;;;;;-1:-1:-1;;;;;31362:40:0;;;;;;31432:12;;31445:1;31432:14;31417:12;:29;;;;-1:-1:-1;;;;;;;;;;;31475:4:0;31480:1;31475:7;;;;;;;;;;;;;;31484;31492:1;31484:10;;;;;;;;;;;;;;;;;;;31466:46;;;-1:-1:-1;;;;;31466:46:0;;;;;;;;;31496:15;31466:46;;;;;;;;;;;;;31232:3;;31203:321;;;;30964:569;;:::o;738:106::-;826:10;738:106;:::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;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;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;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;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://b1299ae0e5a40c8daf89f6e27334409015b7a5abee15761cda190549f50f9243
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.