Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 17370801 | 533 days ago | IN | 0 ETH | 0.03276292 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Spotter
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-or-later /// spot.sol -- Spotter // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. pragma solidity ^0.8.10; import "./interfaces/SpotLike.sol"; import "./interfaces/VatLike.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; contract Spotter is Initializable, SpotLike { // --- Auth --- mapping (address => uint) public wards; function rely(address guy) external auth { wards[guy] = 1; } function deny(address guy) external auth { wards[guy] = 0; } modifier auth { require(wards[msg.sender] == 1, "Spotter/not-authorized"); _; } // --- Data --- struct Ilk { PipLike pip; // Price Feed uint256 mat; // Liquidation ratio [ray] } mapping (bytes32 => Ilk) public ilks; VatLike public vat; // CDP Engine uint256 public par; // ref per davos [ray] uint256 public live; // --- Events --- event Poke( bytes32 ilk, bytes32 val, // [wad] uint256 spot // [ray] ); event File(bytes32 indexed what, uint256 data); event File(bytes32 indexed ilk, bytes32 indexed what, uint256 data); event File(bytes32 indexed ilk, bytes32 indexed what, address clip); /// @custom:oz-upgrades-unsafe-allow constructor // --- Constructor --- constructor() { _disableInitializers(); } // --- Init --- function initialize(address vat_) external initializer { wards[msg.sender] = 1; vat = VatLike(vat_); par = ONE; live = 1; } // --- Math --- uint constant ONE = 10 ** 27; function mul(uint x, uint y) internal pure returns (uint z) { unchecked { require(y == 0 || (z = x * y) / y == x); } } function rdiv(uint x, uint y) internal pure returns (uint z) { unchecked { z = mul(x, ONE) / y; } } // --- Administration --- function file(bytes32 ilk, bytes32 what, address pip_) external auth { require(live == 1, "Spotter/not-live"); if (what == "pip") ilks[ilk].pip = PipLike(pip_); else revert("Spotter/file-unrecognized-param"); emit File(ilk, what, pip_); } function file(bytes32 what, uint data) external auth { require(live == 1, "Spotter/not-live"); if (what == "par") par = data; else revert("Spotter/file-unrecognized-param"); emit File(what, data); } function file(bytes32 ilk, bytes32 what, uint data) external auth { require(live == 1, "Spotter/not-live"); if (what == "mat") ilks[ilk].mat = data; else revert("Spotter/file-unrecognized-param"); emit File(ilk, what, data); } // --- Update value --- function poke(bytes32 ilk) external { (bytes32 val, bool has) = ilks[ilk].pip.peek(); uint256 spot = has ? rdiv(rdiv(mul(uint(val), 10 ** 9), par), ilks[ilk].mat) : 0; vat.file(ilk, "spot", spot); emit Poke(ilk, val, spot); } function cage() external auth { live = 0; } function uncage() external auth { live = 1; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./PipLike.sol"; interface SpotLike { function ilks(bytes32) external view returns (PipLike, uint256); function poke(bytes32) external; function file(bytes32 ilk, bytes32 what, uint data) external; function par() external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface VatLike { function init(bytes32 ilk) external; function hope(address usr) external; function nope(address usr) external; function rely(address usr) external; function deny(address usr) external; function move(address src, address dst, uint256 rad) external; function behalf(address bit, address usr) external; function frob(bytes32 i, address u, address v, address w, int dink, int dart) external; function flux(bytes32 ilk, address src, address dst, uint256 wad) external; function ilks(bytes32) external view returns (uint256, uint256, uint256, uint256, uint256); function fold(bytes32 i, address u, int rate) external; function gem(bytes32, address) external view returns (uint256); function davos(address) external view returns (uint256); function urns(bytes32, address) external view returns (uint256, uint256); function file(bytes32, bytes32, uint) external; function sin(address) external view returns (uint256); function heal(uint rad) external; function suck(address u, address v, uint rad) external; function grab(bytes32,address,address,address,int256,int256) external; function slip(bytes32,address,int) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface PipLike { function peek() external view returns (bytes32, bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"what","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"}],"name":"File","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"ilk","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"what","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"}],"name":"File","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"ilk","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"what","type":"bytes32"},{"indexed":false,"internalType":"address","name":"clip","type":"address"}],"name":"File","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"ilk","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"val","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"spot","type":"uint256"}],"name":"Poke","type":"event"},{"inputs":[],"name":"cage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"pip_","type":"address"}],"name":"file","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"ilks","outputs":[{"internalType":"contract PipLike","name":"pip","type":"address"},{"internalType":"uint256","name":"mat","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"par","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"}],"name":"poke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"rely","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uncage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001961001e565b6100de565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811610156100dc576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b610a71806100ed6000396000f3fe608060405234801561001057600080fd5b50600436106100ca5760003560e01c8063957aa58c1161007c578063957aa58c1461016c5780639c52a7f114610175578063bf353dbb14610188578063c4d66de8146101a8578063d63b23b2146101bb578063d9638d36146101c3578063ebecb39d1461021557600080fd5b80631504460f146100cf5780631a0b287e146100e457806329ae8114146100f757806336569e771461010a578063495d32cb1461013a57806365fae35e146101515780636924500914610164575b600080fd5b6100e26100dd3660046108bc565b610228565b005b6100e26100f23660046108d5565b61039e565b6100e2610105366004610901565b6104a7565b60035461011d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61014360045481565b604051908152602001610131565b6100e261015f36600461093f565b610549565b6100e2610596565b61014360055481565b6100e261018336600461093f565b6105cd565b61014361019636600461093f565b60016020526000908152604090205481565b6100e26101b636600461093f565b610617565b6100e2610764565b6101f66101d13660046108bc565b600260205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610131565b6100e2610223366004610961565b61079b565b6000818152600260205260408082205481516359e02dd760e01b8152825184936001600160a01b03909316926359e02dd792600480820193918290030181865afa15801561027a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029e9190610996565b915091506000816102b05760006102e3565b6102e36102cc6102c485633b9aca0061085e565b60045461088e565b60008681526002602052604090206001015461088e565b600354604051630d05943f60e11b815260048101879052631cdc1bdd60e21b6024820152604481018390529192506001600160a01b031690631a0b287e90606401600060405180830381600087803b15801561033e57600080fd5b505af1158015610352573d6000803e3d6000fd5b505060408051878152602081018790529081018490527fdfd7467e425a8107cfd368d159957692c25085aacbcf5228ce08f10f2146486e9250606001905060405180910390a150505050565b33600090815260016020819052604090912054146103d75760405162461bcd60e51b81526004016103ce906109cb565b60405180910390fd5b6005546001146103f95760405162461bcd60e51b81526004016103ce906109fb565b81621b585d60ea1b0361041f576000838152600260205260409020600101819055610467565b60405162461bcd60e51b815260206004820152601f60248201527f53706f747465722f66696c652d756e7265636f676e697a65642d706172616d0060448201526064016103ce565b81837f851aa1caf4888170ad8875449d18f0f512fd6deb2a6571ea1a41fb9f95acbcd18360405161049a91815260200190565b60405180910390a3505050565b33600090815260016020819052604090912054146104d75760405162461bcd60e51b81526004016103ce906109cb565b6005546001146104f95760405162461bcd60e51b81526004016103ce906109fb565b81623830b960e91b0361041f576004819055817fe986e40cc8c151830d4f61050f4fb2e4add8567caad2d5f5496f9158e91fe4c78260405161053d91815260200190565b60405180910390a25050565b33600090815260016020819052604090912054146105795760405162461bcd60e51b81526004016103ce906109cb565b6001600160a01b0316600090815260016020819052604090912055565b33600090815260016020819052604090912054146105c65760405162461bcd60e51b81526004016103ce906109cb565b6000600555565b33600090815260016020819052604090912054146105fd5760405162461bcd60e51b81526004016103ce906109cb565b6001600160a01b0316600090815260016020526040812055565b600054610100900460ff16158080156106375750600054600160ff909116105b806106515750303b158015610651575060005460ff166001145b6106b45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103ce565b6000805460ff1916600117905580156106d7576000805461ff0019166101001790555b336000908152600160208190526040909120819055600380546001600160a01b0319166001600160a01b0385161790556b033b2e3c9fd0803ce80000006004556005558015610760576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b33600090815260016020819052604090912054146107945760405162461bcd60e51b81526004016103ce906109cb565b6001600555565b33600090815260016020819052604090912054146107cb5760405162461bcd60e51b81526004016103ce906109cb565b6005546001146107ed5760405162461bcd60e51b81526004016103ce906109fb565b816207069760ec1b0361041f57600083815260026020526040902080546001600160a01b0319166001600160a01b0383161790556040516001600160a01b0382168152829084907f4ff2caaa972a7c6629ea01fae9c93d73cc307d13ea4c369f9bbbb7f9b7e9461d9060200161049a565b600081158061087f5750508082028282828161087c5761087c610a25565b04145b61088857600080fd5b92915050565b6000816108a7846b033b2e3c9fd0803ce800000061085e565b816108b4576108b4610a25565b049392505050565b6000602082840312156108ce57600080fd5b5035919050565b6000806000606084860312156108ea57600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561091457600080fd5b50508035926020909101359150565b80356001600160a01b038116811461093a57600080fd5b919050565b60006020828403121561095157600080fd5b61095a82610923565b9392505050565b60008060006060848603121561097657600080fd5b833592506020840135915061098d60408501610923565b90509250925092565b600080604083850312156109a957600080fd5b82519150602083015180151581146109c057600080fd5b809150509250929050565b60208082526016908201527514dc1bdd1d195c8bdb9bdd0b585d5d1a1bdc9a5e995960521b604082015260600190565b60208082526010908201526f53706f747465722f6e6f742d6c69766560801b604082015260600190565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220a27716d161590950dd3f76f749c3ce3ad8594ce18975388e097aa970b9c325fc64736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100ca5760003560e01c8063957aa58c1161007c578063957aa58c1461016c5780639c52a7f114610175578063bf353dbb14610188578063c4d66de8146101a8578063d63b23b2146101bb578063d9638d36146101c3578063ebecb39d1461021557600080fd5b80631504460f146100cf5780631a0b287e146100e457806329ae8114146100f757806336569e771461010a578063495d32cb1461013a57806365fae35e146101515780636924500914610164575b600080fd5b6100e26100dd3660046108bc565b610228565b005b6100e26100f23660046108d5565b61039e565b6100e2610105366004610901565b6104a7565b60035461011d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61014360045481565b604051908152602001610131565b6100e261015f36600461093f565b610549565b6100e2610596565b61014360055481565b6100e261018336600461093f565b6105cd565b61014361019636600461093f565b60016020526000908152604090205481565b6100e26101b636600461093f565b610617565b6100e2610764565b6101f66101d13660046108bc565b600260205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610131565b6100e2610223366004610961565b61079b565b6000818152600260205260408082205481516359e02dd760e01b8152825184936001600160a01b03909316926359e02dd792600480820193918290030181865afa15801561027a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029e9190610996565b915091506000816102b05760006102e3565b6102e36102cc6102c485633b9aca0061085e565b60045461088e565b60008681526002602052604090206001015461088e565b600354604051630d05943f60e11b815260048101879052631cdc1bdd60e21b6024820152604481018390529192506001600160a01b031690631a0b287e90606401600060405180830381600087803b15801561033e57600080fd5b505af1158015610352573d6000803e3d6000fd5b505060408051878152602081018790529081018490527fdfd7467e425a8107cfd368d159957692c25085aacbcf5228ce08f10f2146486e9250606001905060405180910390a150505050565b33600090815260016020819052604090912054146103d75760405162461bcd60e51b81526004016103ce906109cb565b60405180910390fd5b6005546001146103f95760405162461bcd60e51b81526004016103ce906109fb565b81621b585d60ea1b0361041f576000838152600260205260409020600101819055610467565b60405162461bcd60e51b815260206004820152601f60248201527f53706f747465722f66696c652d756e7265636f676e697a65642d706172616d0060448201526064016103ce565b81837f851aa1caf4888170ad8875449d18f0f512fd6deb2a6571ea1a41fb9f95acbcd18360405161049a91815260200190565b60405180910390a3505050565b33600090815260016020819052604090912054146104d75760405162461bcd60e51b81526004016103ce906109cb565b6005546001146104f95760405162461bcd60e51b81526004016103ce906109fb565b81623830b960e91b0361041f576004819055817fe986e40cc8c151830d4f61050f4fb2e4add8567caad2d5f5496f9158e91fe4c78260405161053d91815260200190565b60405180910390a25050565b33600090815260016020819052604090912054146105795760405162461bcd60e51b81526004016103ce906109cb565b6001600160a01b0316600090815260016020819052604090912055565b33600090815260016020819052604090912054146105c65760405162461bcd60e51b81526004016103ce906109cb565b6000600555565b33600090815260016020819052604090912054146105fd5760405162461bcd60e51b81526004016103ce906109cb565b6001600160a01b0316600090815260016020526040812055565b600054610100900460ff16158080156106375750600054600160ff909116105b806106515750303b158015610651575060005460ff166001145b6106b45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103ce565b6000805460ff1916600117905580156106d7576000805461ff0019166101001790555b336000908152600160208190526040909120819055600380546001600160a01b0319166001600160a01b0385161790556b033b2e3c9fd0803ce80000006004556005558015610760576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b33600090815260016020819052604090912054146107945760405162461bcd60e51b81526004016103ce906109cb565b6001600555565b33600090815260016020819052604090912054146107cb5760405162461bcd60e51b81526004016103ce906109cb565b6005546001146107ed5760405162461bcd60e51b81526004016103ce906109fb565b816207069760ec1b0361041f57600083815260026020526040902080546001600160a01b0319166001600160a01b0383161790556040516001600160a01b0382168152829084907f4ff2caaa972a7c6629ea01fae9c93d73cc307d13ea4c369f9bbbb7f9b7e9461d9060200161049a565b600081158061087f5750508082028282828161087c5761087c610a25565b04145b61088857600080fd5b92915050565b6000816108a7846b033b2e3c9fd0803ce800000061085e565b816108b4576108b4610a25565b049392505050565b6000602082840312156108ce57600080fd5b5035919050565b6000806000606084860312156108ea57600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561091457600080fd5b50508035926020909101359150565b80356001600160a01b038116811461093a57600080fd5b919050565b60006020828403121561095157600080fd5b61095a82610923565b9392505050565b60008060006060848603121561097657600080fd5b833592506020840135915061098d60408501610923565b90509250925092565b600080604083850312156109a957600080fd5b82519150602083015180151581146109c057600080fd5b809150509250929050565b60208082526016908201527514dc1bdd1d195c8bdb9bdd0b585d5d1a1bdc9a5e995960521b604082015260600190565b60208082526010908201526f53706f747465722f6e6f742d6c69766560801b604082015260600190565b634e487b7160e01b600052601260045260246000fdfea2646970667358221220a27716d161590950dd3f76f749c3ce3ad8594ce18975388e097aa970b9c325fc64736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.