Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 32,013 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Signed | 21278913 | 5 hrs ago | IN | 0 ETH | 0.00134724 | ||||
Withdraw Signed | 21278896 | 5 hrs ago | IN | 0 ETH | 0.00118626 | ||||
Withdraw Signed | 21278716 | 6 hrs ago | IN | 0 ETH | 0.00153776 | ||||
Withdraw Signed | 21278193 | 7 hrs ago | IN | 0 ETH | 0.00096176 | ||||
Withdraw Signed | 21277287 | 10 hrs ago | IN | 0 ETH | 0.00089471 | ||||
Withdraw Signed | 21274778 | 19 hrs ago | IN | 0 ETH | 0.00072327 | ||||
Withdraw Signed | 21274774 | 19 hrs ago | IN | 0 ETH | 0.00072275 | ||||
Withdraw Signed | 21274739 | 19 hrs ago | IN | 0 ETH | 0.00092235 | ||||
Withdraw Signed | 21273814 | 22 hrs ago | IN | 0 ETH | 0.00243874 | ||||
Withdraw Signed | 21269131 | 38 hrs ago | IN | 0 ETH | 0.00088905 | ||||
Withdraw Signed | 21268103 | 41 hrs ago | IN | 0 ETH | 0.00073926 | ||||
Withdraw Signed | 21268069 | 41 hrs ago | IN | 0 ETH | 0.00096201 | ||||
Withdraw Signed | 21267721 | 42 hrs ago | IN | 0 ETH | 0.00082304 | ||||
Withdraw Signed | 21266857 | 45 hrs ago | IN | 0 ETH | 0.0019024 | ||||
Withdraw Signed | 21265437 | 2 days ago | IN | 0 ETH | 0.00259741 | ||||
Withdraw Signed | 21265136 | 2 days ago | IN | 0 ETH | 0.00127706 | ||||
Withdraw Signed | 21264761 | 2 days ago | IN | 0 ETH | 0.00132259 | ||||
Withdraw Signed | 21263908 | 2 days ago | IN | 0 ETH | 0.00153423 | ||||
Withdraw Signed | 21263750 | 2 days ago | IN | 0 ETH | 0.00085148 | ||||
Withdraw Signed | 21263058 | 2 days ago | IN | 0 ETH | 0.00096182 | ||||
Withdraw Signed | 21262821 | 2 days ago | IN | 0 ETH | 0.00059308 | ||||
Withdraw Signed | 21261663 | 2 days ago | IN | 0 ETH | 0.00075135 | ||||
Withdraw Signed | 21261628 | 2 days ago | IN | 0 ETH | 0.00078887 | ||||
Withdraw Signed | 21261157 | 2 days ago | IN | 0 ETH | 0.00118829 | ||||
Withdraw Signed | 21260659 | 2 days ago | IN | 0 ETH | 0.00086242 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
12700238 | 1251 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
BridgePool
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../common/signature/SigCheckable.sol"; import "../common/SafeAmount.sol"; import "../common/WithAdmin.sol"; import "../taxing/IGeneralTaxDistributor.sol"; contract BridgePool is SigCheckable, WithAdmin { using SafeMath for uint256; using SafeERC20 for IERC20; event TransferBySignature(address signer, address receiver, address token, uint256 amount, uint256 fee); event BridgeLiquidityAdded(address actor, address token, uint256 amount); event BridgeLiquidityRemoved(address actor, address token, uint256 amount); event BridgeSwap(address from, address indexed token, uint256 targetNetwork, address targetToken, address targetAddrdess, uint256 amount); string constant NAME = "FERRUM_TOKEN_BRIDGE_POOL"; string constant VERSION = "000.003"; bytes32 constant WITHDRAW_SIGNED_METHOD = keccak256("WithdrawSigned(address token,address payee,uint256 amount,bytes32 salt)"); mapping(address => bool) public signers; mapping(address=>mapping(address=>uint256)) private liquidities; mapping(address=>uint256) public fees; mapping(address=>mapping(uint256=>address)) public allowedTargets; address public feeDistributor; constructor () EIP712(NAME, VERSION) { } /** *************** Owner only operations *************** */ function addSigner(address _signer) external onlyOwner() { require(_signer != address(0), "Bad signer"); signers[_signer] = true; } function removeSigner(address _signer) external onlyOwner() { require(_signer != address(0), "Bad signer"); delete signers[_signer]; } function setFeeDistributor(address _feeDistributor) external onlyOwner() { feeDistributor = _feeDistributor; } /** *************** Admin operations *************** */ function setFee(address token, uint256 fee10000) external onlyAdmin() { require(token != address(0), "Bad token"); fees[token] = fee10000; } function allowTarget(address token, uint256 chainId, address targetToken) external onlyAdmin() { allowedTargets[token][chainId] = targetToken; } function disallowTarget(address token, uint256 chainId) external onlyAdmin() { delete allowedTargets[token][chainId]; } /** *************** Public operations *************** */ function swap(address token, uint256 amount, uint256 targetNetwork, address targetToken) external returns(uint256) { return _swap(msg.sender, token, amount, targetNetwork, targetToken, msg.sender); } function swapToAddress(address token, uint256 amount, uint256 targetNetwork, address targetToken, address targetAddress) external returns(uint256) { require(targetAddress != address(0), "BridgePool: targetAddress is required"); return _swap(msg.sender, token, amount, targetNetwork, targetToken, targetAddress); } function _swap(address from, address token, uint256 amount, uint256 targetNetwork, address targetToken, address targetAddress) internal returns(uint256) { require(targetNetwork != 0, "BP: targetNetwork is requried"); require(allowedTargets[token][targetNetwork] == targetToken, "BP: target not allowed"); amount = SafeAmount.safeTransferFrom(token, from, address(this), amount); emit BridgeSwap(from, token, targetNetwork, targetToken, targetAddress, amount); return amount; } function withdrawSigned( address token, address payee, uint256 amount, bytes32 salt, bytes memory signature) external returns(uint256) { bytes32 message = withdrawSignedMessage(token, payee, amount, salt); address _signer = signerUnique(message, signature); require(signers[_signer], "BridgePool: Invalid signer"); uint256 fee = 0; address _feeDistributor = feeDistributor; if (_feeDistributor != address(0)) { fee = amount.mul(fees[token]).div(10000); amount = amount.sub(fee); if (fee != 0) { IERC20(token).safeTransfer(_feeDistributor, fee); IGeneralTaxDistributor(_feeDistributor).distributeTax(token, msg.sender); } } IERC20(token).safeTransfer(payee, amount); emit TransferBySignature(_signer, payee, token, amount, fee); return amount; } function withdrawSignedVerify( address token, address payee, uint256 amount, bytes32 salt, bytes calldata signature) external view returns (bytes32, address) { bytes32 message = withdrawSignedMessage(token, payee, amount, salt); (bytes32 digest, address _signer) = signer(message, signature); return (digest, _signer); } function withdrawSignedMessage( address token, address payee, uint256 amount, bytes32 salt) internal pure returns (bytes32) { return keccak256(abi.encode( WITHDRAW_SIGNED_METHOD, token, payee, amount, salt )); } function addLiquidity(address token, uint256 amount) external { require(amount != 0, "Amount must be positive"); require(token != address(0), "Bad token"); amount = SafeAmount.safeTransferFrom(token, msg.sender, address(this), amount); liquidities[token][msg.sender] = liquidities[token][msg.sender].add(amount); emit BridgeLiquidityAdded(msg.sender, token, amount); } function removeLiquidityIfPossible(address token, uint256 amount) external returns (uint256) { require(amount != 0, "Amount must be positive"); require(token != address(0), "Bad token"); uint256 liq = liquidities[token][msg.sender]; require(liq >= amount, "Not enough liquidity"); uint256 balance = IERC20(token).balanceOf(address(this)); uint256 actualLiq = balance > amount ? amount : balance; liquidities[token][msg.sender] = liquidities[token][msg.sender].sub(actualLiq); if (actualLiq != 0) { IERC20(token).safeTransfer(msg.sender, actualLiq); emit BridgeLiquidityRemoved(msg.sender, token, amount); } return actualLiq; } function liquidity(address token, address liquidityAdder) public view returns (uint256) { return liquidities[token][liquidityAdder]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** @dev Make sure to define method signatures */ abstract contract SigCheckable is EIP712 { mapping(bytes32=>bool) public usedHashes; function signerUnique( bytes32 message, bytes memory signature) internal returns (address _signer) { bytes32 digest; (digest, _signer) = signer(message, signature); require(!usedHashes[digest], "Message already used"); usedHashes[digest] = true; } /* @dev example message; bytes32 constant METHOD_SIG = keccak256("WithdrawSigned(address token,address payee,uint256 amount,bytes32 salt)"); bytes32 message = keccak256(abi.encode( METHOD_SIG, token, payee, amount, salt */ function signer( bytes32 message, bytes memory signature) internal view returns (bytes32 digest, address _signer) { digest = _hashTypedDataV4(message); _signer = ECDSA.recover(digest, signature); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; library SafeAmount { using SafeMath for uint256; using SafeERC20 for IERC20; function safeTransferFrom( address token, address from, address to, uint256 amount) internal returns (uint256) { uint256 preBalance = IERC20(token).balanceOf(to); IERC20(token).transferFrom(from, to, amount); uint256 postBalance = IERC20(token).balanceOf(to); return postBalance.sub(preBalance); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract WithAdmin is Ownable { address public admin; event AdminSet(address admin); function setAdmin(address _admin) external onlyOwner { admin = _admin; emit AdminSet(_admin); } modifier onlyAdmin() { require(msg.sender == admin || msg.sender == owner(), "WA: not admin"); _; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.8.0; interface IGeneralTaxDistributor { function distributeTax(address token, address origSender) external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); }
// SPDX-License-Identifier: MIT pragma solidity ^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); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) { return keccak256( abi.encode( typeHash, name, version, block.chainid, address(this) ) ); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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 () { 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"AdminSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"actor","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeLiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"actor","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeLiquidityRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"targetNetwork","type":"uint256"},{"indexed":false,"internalType":"address","name":"targetToken","type":"address"},{"indexed":false,"internalType":"address","name":"targetAddrdess","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BridgeSwap","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":"signer","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"TransferBySignature","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"addSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"targetToken","type":"address"}],"name":"allowTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedTargets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"disallowTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDistributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"liquidityAdder","type":"address"}],"name":"liquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"removeLiquidityIfPossible","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"removeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"fee10000","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDistributor","type":"address"}],"name":"setFeeDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"targetNetwork","type":"uint256"},{"internalType":"address","name":"targetToken","type":"address"}],"name":"swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"targetNetwork","type":"uint256"},{"internalType":"address","name":"targetToken","type":"address"},{"internalType":"address","name":"targetAddress","type":"address"}],"name":"swapToAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"payee","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawSigned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"payee","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"withdrawSignedVerify","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101206040523480156200001257600080fd5b50604080518082018252601881527f46455252554d5f544f4b454e5f4252494447455f504f4f4c00000000000000006020808301918252835180850190945260078452663030302e30303360c81b908401528151902060c08190527fc9a7ffe3828b1f12496df3253dac749a6de004a8e0f8ac9b562ea96452e8e87660e08190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000c881848462000135565b608052610100525060009250620000e191505062000171565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001a1565b600083838346306040516020016200015295949392919062000175565b6040516020818303038152906040528051906020012090509392505050565b3390565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b60805160a05160c05160e05161010051612019620001e660003960006113440152600061138601526000611365015260006112f20152600061131b01526120196000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063aa36acfb116100c3578063e91b79bc1161007c578063e91b79bc146102b4578063eb12d61e146102c7578063f2fde38b146102da578063f3e6ea8a146102ed578063f851a44014610300578063faaebd21146103085761014d565b8063aa36acfb14610234578063aef18bf714610255578063b221728114610268578063ccfc2e8d1461027b578063dcb0f2d31461028e578063e55156b5146102a15761014d565b8063566887001161011557806356688700146101cb578063704b6c02146101de578063715018a6146101f1578063736c0d5b146101f95780638d6e9291146102195780638da5cb5b1461022c5761014d565b80630d43e8ad146101525780630e316ab714610170578063278c13fe1461018557806344da82711461019857806352f9567d146101ab575b600080fd5b61015a61031b565b6040516101679190611958565b60405180910390f35b61018361017e366004611616565b61032a565b005b61015a6101933660046117d2565b6103b9565b6101836101a63660046117fb565b6103df565b6101be6101b936600461187b565b610467565b6040516101679190611f10565b6101836101d93660046117d2565b6104a7565b6101836101ec366004611616565b61058c565b610183610621565b61020c610207366004611616565b6106aa565b6040516101679190611a2a565b6101be6102273660046116fa565b6106bf565b61015a610869565b610247610242366004611659565b610879565b604051610167929190611a35565b61020c6102633660046118f1565b6108e1565b6101be610276366004611630565b6108f6565b610183610289366004611616565b610921565b61018361029c3660046117d2565b610982565b6101836102af3660046117d2565b610a02565b6101be6102c23660046117d2565b610a91565b6101836102d5366004611616565b610c60565b6101836102e8366004611616565b610ce9565b6101be6102fb366004611836565b610daa565b61015a610dba565b6101be610316366004611616565b610dc9565b6007546001600160a01b031681565b610332610ddb565b6001600160a01b0316610343610869565b6001600160a01b0316146103725760405162461bcd60e51b815260040161036990611d22565b60405180910390fd5b6001600160a01b0381166103985760405162461bcd60e51b815260040161036990611cfe565b6001600160a01b03166000908152600360205260409020805460ff19169055565b60066020908152600092835260408084209091529082529020546001600160a01b031681565b6002546001600160a01b031633148061041057506103fb610869565b6001600160a01b0316336001600160a01b0316145b61042c5760405162461bcd60e51b815260040161036990611d57565b6001600160a01b0392831660009081526006602090815260408083209483529390529190912080546001600160a01b03191691909216179055565b60006001600160a01b03821661048f5760405162461bcd60e51b815260040161036990611de5565b61049d338787878787610ddf565b9695505050505050565b806104c45760405162461bcd60e51b815260040161036990611ed9565b6001600160a01b0382166104ea5760405162461bcd60e51b815260040161036990611bda565b6104f682333084610ea7565b6001600160a01b03831660009081526004602090815260408083203384529091529020549091506105279082611042565b6001600160a01b03831660009081526004602090815260408083203380855292529182902092909255517fef3f81f7842dc4087d754ab30e98bb596b7345a806ff6db3c82f0c7d77b749609161058091859085906119ba565b60405180910390a15050565b610594610ddb565b6001600160a01b03166105a5610869565b6001600160a01b0316146105cb5760405162461bcd60e51b815260040161036990611d22565b600280546001600160a01b0319166001600160a01b0383161790556040517f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c90610616908390611958565b60405180910390a150565b610629610ddb565b6001600160a01b031661063a610869565b6001600160a01b0316146106605760405162461bcd60e51b815260040161036990611d22565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b60036020526000908152604090205460ff1681565b6000806106ce87878787611055565b905060006106dc82856110b0565b6001600160a01b03811660009081526003602052604090205490915060ff166107175760405162461bcd60e51b815260040161036990611d7e565b6007546000906001600160a01b03168015610808576001600160a01b038a1660009081526005602052604090205461075e9061271090610758908b90611111565b9061111d565b915061076a8883611129565b97508115610808576107866001600160a01b038b168284611135565b60405163ae4fb45b60e01b81526001600160a01b0382169063ae4fb45b906107b4908d90339060040161196c565b602060405180830381600087803b1580156107ce57600080fd5b505af11580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611909565b505b61081c6001600160a01b038b168a8a611135565b7fc9fbf9f295770004fd3f75553aff7c914cfda0e68ae990146b01fcfa48a27635838a8c8b86604051610853959493929190611986565b60405180910390a1509598975050505050505050565b6001546001600160a01b03165b90565b600080600061088a89898989611055565b90506000806108cf8388888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061119092505050565b909c909b509950505050505050505050565b60006020819052908152604090205460ff1681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b610929610ddb565b6001600160a01b031661093a610869565b6001600160a01b0316146109605760405162461bcd60e51b815260040161036990611d22565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03163314806109b3575061099e610869565b6001600160a01b0316336001600160a01b0316145b6109cf5760405162461bcd60e51b815260040161036990611d57565b6001600160a01b0390911660009081526006602090815260408083209383529290522080546001600160a01b0319169055565b6002546001600160a01b0316331480610a335750610a1e610869565b6001600160a01b0316336001600160a01b0316145b610a4f5760405162461bcd60e51b815260040161036990611d57565b6001600160a01b038216610a755760405162461bcd60e51b815260040161036990611bda565b6001600160a01b03909116600090815260056020526040902055565b600081610ab05760405162461bcd60e51b815260040161036990611ed9565b6001600160a01b038316610ad65760405162461bcd60e51b815260040161036990611bda565b6001600160a01b038316600090815260046020908152604080832033845290915290205482811015610b1a5760405162461bcd60e51b815260040161036990611e61565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190610b49903090600401611958565b60206040518083038186803b158015610b6157600080fd5b505afa158015610b75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b999190611909565b90506000848211610baa5781610bac565b845b6001600160a01b0387166000908152600460209081526040808320338452909152902054909150610bdd9082611129565b6001600160a01b03871660009081526004602090815260408083203384529091529020558015610c5757610c1b6001600160a01b0387163383611135565b7f5204091f3aba3d16dbb7fcc090386ce24245ac12f57ae5bf9785e0ab9a79be73338787604051610c4e939291906119ba565b60405180910390a15b95945050505050565b610c68610ddb565b6001600160a01b0316610c79610869565b6001600160a01b031614610c9f5760405162461bcd60e51b815260040161036990611d22565b6001600160a01b038116610cc55760405162461bcd60e51b815260040161036990611cfe565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b610cf1610ddb565b6001600160a01b0316610d02610869565b6001600160a01b031614610d285760405162461bcd60e51b815260040161036990611d22565b6001600160a01b038116610d4e5760405162461bcd60e51b815260040161036990611b94565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000610c57338686868633610ddf565b6002546001600160a01b031681565b60056020526000908152604090205481565b3390565b600083610dfe5760405162461bcd60e51b815260040161036990611c85565b6001600160a01b038681166000908152600660209081526040808320888452909152902054811690841614610e455760405162461bcd60e51b815260040161036990611db5565b610e5186883088610ea7565b9450856001600160a01b03167f0752ea9a96cdaf45ba08b0e73e0bbecc3d4a19e96da74d1ac80edea784d4c62c888686868a604051610e949594939291906119f7565b60405180910390a2509295945050505050565b600080856001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401610ed69190611958565b60206040518083038186803b158015610eee57600080fd5b505afa158015610f02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f269190611909565b6040516323b872dd60e01b81529091506001600160a01b038716906323b872dd90610f59908890889088906004016119ba565b602060405180830381600087803b158015610f7357600080fd5b505af1158015610f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fab91906118d1565b506040516370a0823160e01b81526000906001600160a01b038816906370a0823190610fdb908890600401611958565b60206040518083038186803b158015610ff357600080fd5b505afa158015611007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102b9190611909565b90506110378183611129565b979650505050505050565b600061104e8284611f19565b9392505050565b60007fbf78e0e468a2675e8ce0f0c1c79b1d9da1bf9cdef7cb74b324d5f733249250c785858585604051602001611090959493929190611a4c565b604051602081830303815290604052805190602001209050949350505050565b6000806110bd8484611190565b60008281526020819052604090205490935090915060ff16156110f25760405162461bcd60e51b815260040161036990611b2f565b6000908152602081905260409020805460ff1916600117905592915050565b600061104e8284611f51565b600061104e8284611f31565b600061104e8284611f70565b61118b8363a9059cbb60e01b84846040516024016111549291906119de565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111b1565b505050565b60008061119c84611240565b91506111a8828461125b565b90509250929050565b6000611206826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112d79092919063ffffffff16565b80519091501561118b578080602001905181019061122491906118d1565b61118b5760405162461bcd60e51b815260040161036990611e8f565b600061125361124d6112ee565b836113b1565b90505b919050565b6000806000808451604114156112855750505060208201516040830151606084015160001a6112cb565b8451604014156112b35750505060408201516020830151906001600160ff1b0381169060ff1c601b016112cb565b60405162461bcd60e51b815260040161036990611b5d565b61049d868285856113e4565b60606112e684846000856114d1565b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046141561133f57507f0000000000000000000000000000000000000000000000000000000000000000610876565b6113aa7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611586565b9050610876565b600082826040516020016113c692919061193d565b60405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114265760405162461bcd60e51b815260040161036990611bfd565b8360ff16601b148061143b57508360ff16601c145b6114575760405162461bcd60e51b815260040161036990611cbc565b60006001868686866040516000815260200160405260405161147c9493929190611aa7565b6020604051602081039080840390855afa15801561149e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c575760405162461bcd60e51b815260040161036990611af8565b6060824710156114f35760405162461bcd60e51b815260040161036990611c3f565b6114fc856115c0565b6115185760405162461bcd60e51b815260040161036990611e2a565b600080866001600160a01b031685876040516115349190611921565b60006040518083038185875af1925050503d8060008114611571576040519150601f19603f3d011682016040523d82523d6000602084013e611576565b606091505b50915091506110378282866115c6565b600083838346306040516020016115a1959493929190611a7b565b6040516020818303038152906040528051906020012090509392505050565b3b151590565b606083156115d557508161104e565b8251156115e55782518084602001fd5b8160405162461bcd60e51b81526004016103699190611ac5565b80356001600160a01b038116811461125657600080fd5b600060208284031215611627578081fd5b61104e826115ff565b60008060408385031215611642578081fd5b61164b836115ff565b91506111a8602084016115ff565b60008060008060008060a08789031215611671578182fd5b61167a876115ff565b9550611688602088016115ff565b94506040870135935060608701359250608087013567ffffffffffffffff808211156116b2578384fd5b818901915089601f8301126116c5578384fd5b8135818111156116d3578485fd5b8a60208285010111156116e4578485fd5b6020830194508093505050509295509295509295565b600080600080600060a08688031215611711578081fd5b61171a866115ff565b945060206117298188016115ff565b94506040870135935060608701359250608087013567ffffffffffffffff80821115611753578384fd5b818901915089601f830112611766578384fd5b81358181111561177857611778611fcd565b604051601f8201601f191681018501838111828210171561179b5761179b611fcd565b60405281815283820185018c10156117b1578586fd5b81858501868301378585838301015280955050505050509295509295909350565b600080604083850312156117e4578182fd5b6117ed836115ff565b946020939093013593505050565b60008060006060848603121561180f578283fd5b611818846115ff565b92506020840135915061182d604085016115ff565b90509250925092565b6000806000806080858703121561184b578384fd5b611854856115ff565b93506020850135925060408501359150611870606086016115ff565b905092959194509250565b600080600080600060a08688031215611892578081fd5b61189b866115ff565b945060208601359350604086013592506118b7606087016115ff565b91506118c5608087016115ff565b90509295509295909350565b6000602082840312156118e2578081fd5b8151801515811461104e578182fd5b600060208284031215611902578081fd5b5035919050565b60006020828403121561191a578081fd5b5051919050565b60008251611933818460208701611f87565b9190910192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039586168152602081019490945291841660408401529092166060820152608081019190915260a00190565b901515815260200190565b9182526001600160a01b0316602082015260400190565b9485526001600160a01b0393841660208601529190921660408401526060830191909152608082015260a00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082528251806020840152611ae4816040850160208701611f87565b601f01601f19169190910160400192915050565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526014908201527313595cdcd859d948185b1c9958591e481d5cd95960621b604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600990820152682130b2103a37b5b2b760b91b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601d908201527f42503a207461726765744e6574776f726b206973207265717572696564000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252600a90820152692130b21039b4b3b732b960b11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c2ba09d103737ba1030b236b4b760991b604082015260600190565b6020808252601a908201527f427269646765506f6f6c3a20496e76616c6964207369676e6572000000000000604082015260600190565b60208082526016908201527510940e881d185c99d95d081b9bdd08185b1b1bddd95960521b604082015260600190565b60208082526025908201527f427269646765506f6f6c3a2074617267657441646472657373206973207265716040820152641d5a5c995960da1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601490820152734e6f7420656e6f756768206c697175696469747960601b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526017908201527f416d6f756e74206d75737420626520706f736974697665000000000000000000604082015260600190565b90815260200190565b60008219821115611f2c57611f2c611fb7565b500190565b600082611f4c57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f6b57611f6b611fb7565b500290565b600082821015611f8257611f82611fb7565b500390565b60005b83811015611fa2578181015183820152602001611f8a565b83811115611fb1576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220ae1f6c6c937afbe68adce043c03c57d6e0311f70b274c058c6d634cd08976b1364736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c8063aa36acfb116100c3578063e91b79bc1161007c578063e91b79bc146102b4578063eb12d61e146102c7578063f2fde38b146102da578063f3e6ea8a146102ed578063f851a44014610300578063faaebd21146103085761014d565b8063aa36acfb14610234578063aef18bf714610255578063b221728114610268578063ccfc2e8d1461027b578063dcb0f2d31461028e578063e55156b5146102a15761014d565b8063566887001161011557806356688700146101cb578063704b6c02146101de578063715018a6146101f1578063736c0d5b146101f95780638d6e9291146102195780638da5cb5b1461022c5761014d565b80630d43e8ad146101525780630e316ab714610170578063278c13fe1461018557806344da82711461019857806352f9567d146101ab575b600080fd5b61015a61031b565b6040516101679190611958565b60405180910390f35b61018361017e366004611616565b61032a565b005b61015a6101933660046117d2565b6103b9565b6101836101a63660046117fb565b6103df565b6101be6101b936600461187b565b610467565b6040516101679190611f10565b6101836101d93660046117d2565b6104a7565b6101836101ec366004611616565b61058c565b610183610621565b61020c610207366004611616565b6106aa565b6040516101679190611a2a565b6101be6102273660046116fa565b6106bf565b61015a610869565b610247610242366004611659565b610879565b604051610167929190611a35565b61020c6102633660046118f1565b6108e1565b6101be610276366004611630565b6108f6565b610183610289366004611616565b610921565b61018361029c3660046117d2565b610982565b6101836102af3660046117d2565b610a02565b6101be6102c23660046117d2565b610a91565b6101836102d5366004611616565b610c60565b6101836102e8366004611616565b610ce9565b6101be6102fb366004611836565b610daa565b61015a610dba565b6101be610316366004611616565b610dc9565b6007546001600160a01b031681565b610332610ddb565b6001600160a01b0316610343610869565b6001600160a01b0316146103725760405162461bcd60e51b815260040161036990611d22565b60405180910390fd5b6001600160a01b0381166103985760405162461bcd60e51b815260040161036990611cfe565b6001600160a01b03166000908152600360205260409020805460ff19169055565b60066020908152600092835260408084209091529082529020546001600160a01b031681565b6002546001600160a01b031633148061041057506103fb610869565b6001600160a01b0316336001600160a01b0316145b61042c5760405162461bcd60e51b815260040161036990611d57565b6001600160a01b0392831660009081526006602090815260408083209483529390529190912080546001600160a01b03191691909216179055565b60006001600160a01b03821661048f5760405162461bcd60e51b815260040161036990611de5565b61049d338787878787610ddf565b9695505050505050565b806104c45760405162461bcd60e51b815260040161036990611ed9565b6001600160a01b0382166104ea5760405162461bcd60e51b815260040161036990611bda565b6104f682333084610ea7565b6001600160a01b03831660009081526004602090815260408083203384529091529020549091506105279082611042565b6001600160a01b03831660009081526004602090815260408083203380855292529182902092909255517fef3f81f7842dc4087d754ab30e98bb596b7345a806ff6db3c82f0c7d77b749609161058091859085906119ba565b60405180910390a15050565b610594610ddb565b6001600160a01b03166105a5610869565b6001600160a01b0316146105cb5760405162461bcd60e51b815260040161036990611d22565b600280546001600160a01b0319166001600160a01b0383161790556040517f8fe72c3e0020beb3234e76ae6676fa576fbfcae600af1c4fea44784cf0db329c90610616908390611958565b60405180910390a150565b610629610ddb565b6001600160a01b031661063a610869565b6001600160a01b0316146106605760405162461bcd60e51b815260040161036990611d22565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b60036020526000908152604090205460ff1681565b6000806106ce87878787611055565b905060006106dc82856110b0565b6001600160a01b03811660009081526003602052604090205490915060ff166107175760405162461bcd60e51b815260040161036990611d7e565b6007546000906001600160a01b03168015610808576001600160a01b038a1660009081526005602052604090205461075e9061271090610758908b90611111565b9061111d565b915061076a8883611129565b97508115610808576107866001600160a01b038b168284611135565b60405163ae4fb45b60e01b81526001600160a01b0382169063ae4fb45b906107b4908d90339060040161196c565b602060405180830381600087803b1580156107ce57600080fd5b505af11580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611909565b505b61081c6001600160a01b038b168a8a611135565b7fc9fbf9f295770004fd3f75553aff7c914cfda0e68ae990146b01fcfa48a27635838a8c8b86604051610853959493929190611986565b60405180910390a1509598975050505050505050565b6001546001600160a01b03165b90565b600080600061088a89898989611055565b90506000806108cf8388888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061119092505050565b909c909b509950505050505050505050565b60006020819052908152604090205460ff1681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b610929610ddb565b6001600160a01b031661093a610869565b6001600160a01b0316146109605760405162461bcd60e51b815260040161036990611d22565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03163314806109b3575061099e610869565b6001600160a01b0316336001600160a01b0316145b6109cf5760405162461bcd60e51b815260040161036990611d57565b6001600160a01b0390911660009081526006602090815260408083209383529290522080546001600160a01b0319169055565b6002546001600160a01b0316331480610a335750610a1e610869565b6001600160a01b0316336001600160a01b0316145b610a4f5760405162461bcd60e51b815260040161036990611d57565b6001600160a01b038216610a755760405162461bcd60e51b815260040161036990611bda565b6001600160a01b03909116600090815260056020526040902055565b600081610ab05760405162461bcd60e51b815260040161036990611ed9565b6001600160a01b038316610ad65760405162461bcd60e51b815260040161036990611bda565b6001600160a01b038316600090815260046020908152604080832033845290915290205482811015610b1a5760405162461bcd60e51b815260040161036990611e61565b6040516370a0823160e01b81526000906001600160a01b038616906370a0823190610b49903090600401611958565b60206040518083038186803b158015610b6157600080fd5b505afa158015610b75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b999190611909565b90506000848211610baa5781610bac565b845b6001600160a01b0387166000908152600460209081526040808320338452909152902054909150610bdd9082611129565b6001600160a01b03871660009081526004602090815260408083203384529091529020558015610c5757610c1b6001600160a01b0387163383611135565b7f5204091f3aba3d16dbb7fcc090386ce24245ac12f57ae5bf9785e0ab9a79be73338787604051610c4e939291906119ba565b60405180910390a15b95945050505050565b610c68610ddb565b6001600160a01b0316610c79610869565b6001600160a01b031614610c9f5760405162461bcd60e51b815260040161036990611d22565b6001600160a01b038116610cc55760405162461bcd60e51b815260040161036990611cfe565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b610cf1610ddb565b6001600160a01b0316610d02610869565b6001600160a01b031614610d285760405162461bcd60e51b815260040161036990611d22565b6001600160a01b038116610d4e5760405162461bcd60e51b815260040161036990611b94565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000610c57338686868633610ddf565b6002546001600160a01b031681565b60056020526000908152604090205481565b3390565b600083610dfe5760405162461bcd60e51b815260040161036990611c85565b6001600160a01b038681166000908152600660209081526040808320888452909152902054811690841614610e455760405162461bcd60e51b815260040161036990611db5565b610e5186883088610ea7565b9450856001600160a01b03167f0752ea9a96cdaf45ba08b0e73e0bbecc3d4a19e96da74d1ac80edea784d4c62c888686868a604051610e949594939291906119f7565b60405180910390a2509295945050505050565b600080856001600160a01b03166370a08231856040518263ffffffff1660e01b8152600401610ed69190611958565b60206040518083038186803b158015610eee57600080fd5b505afa158015610f02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f269190611909565b6040516323b872dd60e01b81529091506001600160a01b038716906323b872dd90610f59908890889088906004016119ba565b602060405180830381600087803b158015610f7357600080fd5b505af1158015610f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fab91906118d1565b506040516370a0823160e01b81526000906001600160a01b038816906370a0823190610fdb908890600401611958565b60206040518083038186803b158015610ff357600080fd5b505afa158015611007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102b9190611909565b90506110378183611129565b979650505050505050565b600061104e8284611f19565b9392505050565b60007fbf78e0e468a2675e8ce0f0c1c79b1d9da1bf9cdef7cb74b324d5f733249250c785858585604051602001611090959493929190611a4c565b604051602081830303815290604052805190602001209050949350505050565b6000806110bd8484611190565b60008281526020819052604090205490935090915060ff16156110f25760405162461bcd60e51b815260040161036990611b2f565b6000908152602081905260409020805460ff1916600117905592915050565b600061104e8284611f51565b600061104e8284611f31565b600061104e8284611f70565b61118b8363a9059cbb60e01b84846040516024016111549291906119de565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111b1565b505050565b60008061119c84611240565b91506111a8828461125b565b90509250929050565b6000611206826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112d79092919063ffffffff16565b80519091501561118b578080602001905181019061122491906118d1565b61118b5760405162461bcd60e51b815260040161036990611e8f565b600061125361124d6112ee565b836113b1565b90505b919050565b6000806000808451604114156112855750505060208201516040830151606084015160001a6112cb565b8451604014156112b35750505060408201516020830151906001600160ff1b0381169060ff1c601b016112cb565b60405162461bcd60e51b815260040161036990611b5d565b61049d868285856113e4565b60606112e684846000856114d1565b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000146141561133f57507f18bb26efb4965d4d614c724a38e89b43aa92b9d24d2a882d62fbb89e1befa98d610876565b6113aa7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f7909e3ae54bc6a125db584c314c35df6d013c9440fe2fb2404d3f6b6e0966deb7fc9a7ffe3828b1f12496df3253dac749a6de004a8e0f8ac9b562ea96452e8e876611586565b9050610876565b600082826040516020016113c692919061193d565b60405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114265760405162461bcd60e51b815260040161036990611bfd565b8360ff16601b148061143b57508360ff16601c145b6114575760405162461bcd60e51b815260040161036990611cbc565b60006001868686866040516000815260200160405260405161147c9493929190611aa7565b6020604051602081039080840390855afa15801561149e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c575760405162461bcd60e51b815260040161036990611af8565b6060824710156114f35760405162461bcd60e51b815260040161036990611c3f565b6114fc856115c0565b6115185760405162461bcd60e51b815260040161036990611e2a565b600080866001600160a01b031685876040516115349190611921565b60006040518083038185875af1925050503d8060008114611571576040519150601f19603f3d011682016040523d82523d6000602084013e611576565b606091505b50915091506110378282866115c6565b600083838346306040516020016115a1959493929190611a7b565b6040516020818303038152906040528051906020012090509392505050565b3b151590565b606083156115d557508161104e565b8251156115e55782518084602001fd5b8160405162461bcd60e51b81526004016103699190611ac5565b80356001600160a01b038116811461125657600080fd5b600060208284031215611627578081fd5b61104e826115ff565b60008060408385031215611642578081fd5b61164b836115ff565b91506111a8602084016115ff565b60008060008060008060a08789031215611671578182fd5b61167a876115ff565b9550611688602088016115ff565b94506040870135935060608701359250608087013567ffffffffffffffff808211156116b2578384fd5b818901915089601f8301126116c5578384fd5b8135818111156116d3578485fd5b8a60208285010111156116e4578485fd5b6020830194508093505050509295509295509295565b600080600080600060a08688031215611711578081fd5b61171a866115ff565b945060206117298188016115ff565b94506040870135935060608701359250608087013567ffffffffffffffff80821115611753578384fd5b818901915089601f830112611766578384fd5b81358181111561177857611778611fcd565b604051601f8201601f191681018501838111828210171561179b5761179b611fcd565b60405281815283820185018c10156117b1578586fd5b81858501868301378585838301015280955050505050509295509295909350565b600080604083850312156117e4578182fd5b6117ed836115ff565b946020939093013593505050565b60008060006060848603121561180f578283fd5b611818846115ff565b92506020840135915061182d604085016115ff565b90509250925092565b6000806000806080858703121561184b578384fd5b611854856115ff565b93506020850135925060408501359150611870606086016115ff565b905092959194509250565b600080600080600060a08688031215611892578081fd5b61189b866115ff565b945060208601359350604086013592506118b7606087016115ff565b91506118c5608087016115ff565b90509295509295909350565b6000602082840312156118e2578081fd5b8151801515811461104e578182fd5b600060208284031215611902578081fd5b5035919050565b60006020828403121561191a578081fd5b5051919050565b60008251611933818460208701611f87565b9190910192915050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039586168152602081019490945291841660408401529092166060820152608081019190915260a00190565b901515815260200190565b9182526001600160a01b0316602082015260400190565b9485526001600160a01b0393841660208601529190921660408401526060830191909152608082015260a00190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082528251806020840152611ae4816040850160208701611f87565b601f01601f19169190910160400192915050565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526014908201527313595cdcd859d948185b1c9958591e481d5cd95960621b604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252600990820152682130b2103a37b5b2b760b91b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601d908201527f42503a207461726765744e6574776f726b206973207265717572696564000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252600a90820152692130b21039b4b3b732b960b11b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c2ba09d103737ba1030b236b4b760991b604082015260600190565b6020808252601a908201527f427269646765506f6f6c3a20496e76616c6964207369676e6572000000000000604082015260600190565b60208082526016908201527510940e881d185c99d95d081b9bdd08185b1b1bddd95960521b604082015260600190565b60208082526025908201527f427269646765506f6f6c3a2074617267657441646472657373206973207265716040820152641d5a5c995960da1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601490820152734e6f7420656e6f756768206c697175696469747960601b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526017908201527f416d6f756e74206d75737420626520706f736974697665000000000000000000604082015260600190565b90815260200190565b60008219821115611f2c57611f2c611fb7565b500190565b600082611f4c57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f6b57611f6b611fb7565b500290565b600082821015611f8257611f82611fb7565b500390565b60005b83811015611fa2578181015183820152602001611f8a565b83811115611fb1576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220ae1f6c6c937afbe68adce043c03c57d6e0311f70b274c058c6d634cd08976b1364736f6c63430008000033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 36.84% | $0.256222 | 698,738.5573 | $179,032.19 | |
ETH | 20.73% | $0.267042 | 377,285.7827 | $100,751.27 | |
ETH | 7.13% | $0.019208 | 1,802,961.8733 | $34,631.45 | |
ETH | 4.95% | $0.001288 | 18,695,494.664 | $24,072.32 | |
ETH | 0.67% | $0.001422 | 2,289,800.3028 | $3,256.23 | |
ETH | 0.60% | $0.011892 | 244,810.5073 | $2,911.27 | |
ETH | 0.59% | $0.002926 | 973,120.3814 | $2,846.92 | |
ETH | 0.18% | $0.000716 | 1,225,145.771 | $876.63 | |
ETH | 0.17% | $0.238492 | 3,400.4367 | $810.98 | |
ETH | 0.08% | $0.000427 | 886,663.4125 | $378.5 | |
ETH | <0.01% | $0.054947 | 55.4571 | $3.05 | |
BSC | 11.29% | $0.011935 | 4,595,281.28 | $54,843.12 | |
BSC | 11.26% | $565.66 | 96.7713 | $54,739.65 | |
BSC | 1.77% | $0.000426 | 20,216,924.1087 | $8,618.27 | |
BSC | 1.06% | $0.070366 | 73,182.7176 | $5,149.58 | |
BSC | 0.12% | $0.001286 | 469,440.351 | $603.71 | |
BSC | 0.11% | $0.003633 | 151,084.7841 | $548.82 | |
BSC | 0.03% | $0.054925 | 3,073.9013 | $168.83 | |
BSC | <0.01% | $0.238608 | 70.5031 | $16.82 | |
BSC | <0.01% | $0.003452 | 3,338.4678 | $11.52 | |
BSC | <0.01% | $3,549.47 | 0.002426 | $8.61 | |
BSC | <0.01% | $0.019109 | 280.6452 | $5.36 | |
BSC | <0.01% | $0.002926 | 235.3516 | $0.6885 | |
POL | 1.67% | $0.012111 | 671,189.433 | $8,128.67 | |
POL | 0.71% | $565.66 | 6.0811 | $3,439.81 | |
POL | 0.02% | $0.040868 | 2,413.6777 | $98.64 | |
POL | <0.01% | $0.070107 | 57.0067 | $4 | |
POL | <0.01% | $0.126397 | 2.5913 | $0.3275 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.