Source Code
Overview
HYPE Balance
HYPE Value
$0.00Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xA218BE90...d80f9Ed61 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ManualPricer
Compiler Version
v0.6.10+commit.00c0fcaf
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.10;
import {OracleInterface} from "../interfaces/OracleInterface.sol";
import {OpynPricerInterface} from "../interfaces/OpynPricerInterface.sol";
import {SafeMath} from "../packages/oz/SafeMath.sol";
import {Ownable} from "../packages/oz/Ownable.sol";
import {AddressBookInterface} from "../interfaces/AddressBookInterface.sol";
/**
* @notice A Pricer contract for one asset as reported by Manual entity
*/
contract ManualPricer is OpynPricerInterface, Ownable {
using SafeMath for uint256;
/// @notice price deviation multiplier factor
uint256 public constant MULTIPLIER_FACTOR = 10**2; // price deviation multiplier has 2 decimals
/// @notice the opyn oracle address
OracleInterface public oracle;
/// @notice the opyn addressbook address
AddressBookInterface public addressbook;
/// @notice asset that this pricer will a get price for
address public asset;
/// @notice bot address that is allowed to call setExpiryPriceInOracle
address public bot;
/// @notice lastExpiryTimestamp last timestamp that asset price was set
uint256 public lastExpiryTimestamp;
/// @notice priceTimeValidity is the maximum time duration in which an updated price remains valid
uint256 public priceTimeValidity;
/// @notice deviation multiplier between new and previous price
uint256 public deviationMultiplier;
/// @notice historicalPrice mapping of timestamp to price
mapping(uint256 => uint256) public historicalPrice;
/**
* @param _bot priveleged address that can call setExpiryPriceInOracle
* @param _asset asset that this pricer will get a price for
* @param _oracle Opyn Oracle address
* @param _addressbook Opyn AddressBook address
*/
constructor(
address _bot,
address _asset,
address _oracle,
address _addressbook
) public {
require(_bot != address(0), "ManualPricer: Cannot set 0 address as bot");
require(_oracle != address(0), "ManualPricer: Cannot set 0 address as oracle");
require(_addressbook != address(0), "ManualPricer: Cannot set 0 address as addressbook");
bot = _bot;
oracle = OracleInterface(_oracle);
asset = _asset;
addressbook = AddressBookInterface(_addressbook);
}
/**
* @notice modifier to check if sender address is equal to bot address
*/
modifier onlyBot() {
require(msg.sender == bot, "ManualPricer: unauthorized sender");
_;
}
/**
* @notice set the price validity time window, can only be called by Keeper address
* @param _priceTimeValidity time interval within which price is considered valid (in seconds)
*/
function setPriceTimeValidity(uint256 _priceTimeValidity) external onlyOwner {
require(_priceTimeValidity > 0, "ManualPricer: price time validity cannot be 0");
priceTimeValidity = _priceTimeValidity;
}
/**
* @notice sets the deviation multiplier, can only be called by Keeper address
* @param _deviationMultiplier deviation multiplier between new and previous price (2 decimals - eg. 1.75 = 175)
*/
function setDeviationMultiplier(uint256 _deviationMultiplier) external onlyOwner {
require(_deviationMultiplier > 0, "ManualPricer: deviation multiplier cannot be 0");
deviationMultiplier = _deviationMultiplier;
}
/**
* @notice set the expiry price in the oracle, can only be called by Bot address
* @param _expiryTimestamp expiry to set a price for
* @param _price price of the asset in USD, scaled by 1e8
*/
function setExpiryPriceInOracle(uint256 _expiryTimestamp, uint256 _price) external onlyBot {
require(_expiryTimestamp <= now, "ManualPricer: expiries prices cannot be set for the future");
uint256 previousPrice = historicalPrice[lastExpiryTimestamp];
// checks if new price is within the deviation multiplier allowed from previous price
// adding MULTIPLIER_FACTOR on one side of the equation is required to
// match the same number of decimals from deviationMultiplier
if (previousPrice > 0) {
require(
_price.mul(MULTIPLIER_FACTOR) < previousPrice.mul(deviationMultiplier) &&
_price.mul(deviationMultiplier) > previousPrice.mul(MULTIPLIER_FACTOR),
"ManualPricer: price deviation is larger than currently allowed"
);
}
lastExpiryTimestamp = _expiryTimestamp;
historicalPrice[_expiryTimestamp] = _price;
oracle.setExpiryPrice(asset, _expiryTimestamp, _price);
}
/**
* @notice get the live price for the asset
* @dev overides the getPrice function in OpynPricerInterface
* @return price of the asset in USD, scaled by 1e8
*/
function getPrice() external view override returns (uint256) {
require(now <= lastExpiryTimestamp.add(priceTimeValidity), "ManualPricer: price is no longer valid");
return historicalPrice[lastExpiryTimestamp];
}
/**
* @notice get historical chainlink price
* @param _roundId chainlink round id
* @return round price and timestamp
*/
function getHistoricalPrice(uint80 _roundId) external view override returns (uint256, uint256) {
revert("ManualPricer: Deprecated");
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.10;
interface OracleInterface {
function isLockingPeriodOver(address _asset, uint256 _expiryTimestamp) external view returns (bool);
function isDisputePeriodOver(address _asset, uint256 _expiryTimestamp) external view returns (bool);
function getExpiryPrice(address _asset, uint256 _expiryTimestamp) external view returns (uint256, bool);
function getDisputer() external view returns (address);
function getPricer(address _asset) external view returns (address);
function getPrice(address _asset) external view returns (uint256);
function getPricerLockingPeriod(address _pricer) external view returns (uint256);
function getPricerDisputePeriod(address _pricer) external view returns (uint256);
function getChainlinkRoundData(address _asset, uint80 _roundId) external view returns (uint256, uint256);
// Non-view function
function setAssetPricer(address _asset, address _pricer) external;
function setLockingPeriod(address _pricer, uint256 _lockingPeriod) external;
function setDisputePeriod(address _pricer, uint256 _disputePeriod) external;
function setExpiryPrice(
address _asset,
uint256 _expiryTimestamp,
uint256 _price
) external;
function disputeExpiryPrice(
address _asset,
uint256 _expiryTimestamp,
uint256 _price
) external;
function setDisputer(address _disputer) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.10;
interface OpynPricerInterface {
function getPrice() external view returns (uint256);
function getHistoricalPrice(uint80 _roundId) external view returns (uint256, uint256);
}// SPDX-License-Identifier: MIT
// openzeppelin-contracts v3.1.0
/* solhint-disable */
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @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) {
// 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 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts 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 mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message 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,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: MIT
// openzeppelin-contracts v3.1.0
pragma solidity 0.6.10;
import "./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.
*/
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view 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: UNLICENSED
pragma solidity 0.6.10;
interface AddressBookInterface {
/* Getters */
function getOtokenImpl() external view returns (address);
function getOtokenFactory() external view returns (address);
function getWhitelist() external view returns (address);
function getController() external view returns (address);
function getOracle() external view returns (address);
function getMarginPool() external view returns (address);
function getMarginCalculator() external view returns (address);
function getControllerLogic() external view returns (address);
function getLiquidationManager() external view returns (address);
function getAddress(bytes32 _id) external view returns (address);
function getKeeper() external view returns (address);
/* Setters */
function setOtokenImpl(address _otokenImpl) external;
function setOtokenFactory(address _factory) external;
function setOracleImpl(address _otokenImpl) external;
function setWhitelist(address _whitelist) external;
function setController(address _controller) external;
function setMarginPool(address _marginPool) external;
function setMarginCalculator(address _calculator) external;
function setControllerLogic(address _settlement) external;
function setLiquidationManager(address _liquidationManager) external;
function setAddress(bytes32 _id, address _newImpl) external;
}// SPDX-License-Identifier: MIT
// openzeppelin-contracts v3.1.0
pragma solidity 0.6.10;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}{
"remappings": [
"@ensdomains/=node_modules/@ensdomains/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@solidity-parser/=node_modules/solhint/node_modules/@solidity-parser/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"truffle/=node_modules/truffle/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "istanbul",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_bot","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_addressbook","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"MULTIPLIER_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressbook","outputs":[{"internalType":"contract AddressBookInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bot","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deviationMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getHistoricalPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"historicalPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastExpiryTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract OracleInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceTimeValidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deviationMultiplier","type":"uint256"}],"name":"setDeviationMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_expiryTimestamp","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setExpiryPriceInOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceTimeValidity","type":"uint256"}],"name":"setPriceTimeValidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b50604051610d11380380610d118339818101604052608081101561003357600080fd5b5080516020820151604083015160609093015191929091600061005d6001600160e01b036101c816565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0384166100ec5760405162461bcd60e51b8152600401808060200182810382526029815260200180610c8b6029913960400191505060405180910390fd5b6001600160a01b0382166101315760405162461bcd60e51b815260040180806020018281038252602c815260200180610cb4602c913960400191505060405180910390fd5b6001600160a01b0381166101765760405162461bcd60e51b8152600401808060200182810382526031815260200180610ce06031913960400191505060405180910390fd5b600480546001600160a01b03199081166001600160a01b0396871617909155600180548216938616939093179092556003805483169385169390931790925560028054909116919092161790556101cc565b3390565b610ab0806101db6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806370dc320c116100a25780639737219d116100715780639737219d146101d057806398d5fdca146101ed578063eec377c0146101f5578063f2fde38b14610237578063f79283061461025d5761010b565b806370dc320c146101b0578063715018a6146101b85780637dc0d1d0146101c05780638da5cb5b146101c85761010b565b80633d57ec01116100de5780633d57ec01146101755780634409744d1461017d5780634bf8a020146101855780635c5ebfaf1461018d5761010b565b806305af816b1461011057806310814c371461012f57806338d52e0f146101535780633ad24f341461015b575b600080fd5b61012d6004803603602081101561012657600080fd5b503561027a565b005b610137610316565b604080516001600160a01b039092168252519081900360200190f35b610137610325565b610163610334565b60408051918252519081900360200190f35b61016361033a565b61016361033f565b610163610345565b61012d600480360360408110156101a357600080fd5b508035906020013561034b565b610137610505565b61012d610514565b6101376105b6565b6101376105c5565b610163600480360360208110156101e657600080fd5b50356105d4565b6101636105e6565b61021e6004803603602081101561020b57600080fd5b503569ffffffffffffffffffff16610653565b6040805192835260208301919091528051918290030190f35b61012d6004803603602081101561024d57600080fd5b50356001600160a01b03166106a5565b61012d6004803603602081101561027357600080fd5b503561079d565b610282610839565b6000546001600160a01b039081169116146102d2576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b600081116103115760405162461bcd60e51b815260040180806020018281038252602e81526020018061095e602e913960400191505060405180910390fd5b600755565b6004546001600160a01b031681565b6003546001600160a01b031681565b60075481565b606481565b60065481565b60055481565b6004546001600160a01b031633146103945760405162461bcd60e51b815260040180806020018281038252602181526020018061098c6021913960400191505060405180910390fd5b428211156103d35760405162461bcd60e51b815260040180806020018281038252603a8152602001806109ad603a913960400191505060405180910390fd5b600554600090815260086020526040902054801561047a576007546103ff90829063ffffffff61083d16565b61041083606463ffffffff61083d16565b10801561043f575061042981606463ffffffff61083d16565b60075461043d90849063ffffffff61083d16565b115b61047a5760405162461bcd60e51b815260040180806020018281038252603e8152602001806108fa603e913960400191505060405180910390fd5b6005839055600083815260086020526040808220849055600154600354825163ee53140960e01b81526001600160a01b0391821660048201526024810188905260448101879052925191169263ee531409926064808201939182900301818387803b1580156104e857600080fd5b505af11580156104fc573d6000803e3d6000fd5b50505050505050565b6002546001600160a01b031681565b61051c610839565b6000546001600160a01b0390811691161461056c576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031681565b6000546001600160a01b031690565b60086020526000908152604090205481565b60006105ff60065460055461089f90919063ffffffff16565b42111561063d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610a556026913960400191505060405180910390fd5b5060055460009081526008602052604090205490565b6040805162461bcd60e51b815260206004820152601860248201527f4d616e75616c5072696365723a204465707265636174656400000000000000006044820152905160009182919081900360640190fd5b6106ad610839565b6000546001600160a01b039081169116146106fd576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b6001600160a01b0381166107425760405162461bcd60e51b81526004018080602001828103825260268152602001806109386026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6107a5610839565b6000546001600160a01b039081169116146107f5576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b600081116108345760405162461bcd60e51b815260040180806020018281038252602d815260200180610a08602d913960400191505060405180910390fd5b600655565b3390565b60008261084c57506000610899565b8282028284828161085957fe5b04146108965760405162461bcd60e51b81526004018080602001828103825260218152602001806109e76021913960400191505060405180910390fd5b90505b92915050565b600082820183811015610896576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fdfe4d616e75616c5072696365723a20707269636520646576696174696f6e206973206c6172676572207468616e2063757272656e746c7920616c6c6f7765644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d616e75616c5072696365723a20646576696174696f6e206d756c7469706c6965722063616e6e6f7420626520304d616e75616c5072696365723a20756e617574686f72697a65642073656e6465724d616e75616c5072696365723a206578706972696573207072696365732063616e6e6f742062652073657420666f722074686520667574757265536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d616e75616c5072696365723a2070726963652074696d652076616c69646974792063616e6e6f7420626520304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724d616e75616c5072696365723a207072696365206973206e6f206c6f6e6765722076616c6964a264697066735822122095e31984ca54b27c550a5f2f0d95a91b978adf9d98402e91122b2f109181303a64736f6c634300060a00334d616e75616c5072696365723a2043616e6e6f74207365742030206164647265737320617320626f744d616e75616c5072696365723a2043616e6e6f742073657420302061646472657373206173206f7261636c654d616e75616c5072696365723a2043616e6e6f7420736574203020616464726573732061732061646472657373626f6f6b00000000000000000000000065802cc308aea8bb913882696c2df6bf23ff9e48000000000000000000000000d70659a6396285bf7214d7ea9673184e7c72e07e000000000000000000000000664ad80f6891cd663228dc9d1510a6a5db57e815000000000000000000000000ffce2d20e0f68dcedbce657175684845f9593f34
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370dc320c116100a25780639737219d116100715780639737219d146101d057806398d5fdca146101ed578063eec377c0146101f5578063f2fde38b14610237578063f79283061461025d5761010b565b806370dc320c146101b0578063715018a6146101b85780637dc0d1d0146101c05780638da5cb5b146101c85761010b565b80633d57ec01116100de5780633d57ec01146101755780634409744d1461017d5780634bf8a020146101855780635c5ebfaf1461018d5761010b565b806305af816b1461011057806310814c371461012f57806338d52e0f146101535780633ad24f341461015b575b600080fd5b61012d6004803603602081101561012657600080fd5b503561027a565b005b610137610316565b604080516001600160a01b039092168252519081900360200190f35b610137610325565b610163610334565b60408051918252519081900360200190f35b61016361033a565b61016361033f565b610163610345565b61012d600480360360408110156101a357600080fd5b508035906020013561034b565b610137610505565b61012d610514565b6101376105b6565b6101376105c5565b610163600480360360208110156101e657600080fd5b50356105d4565b6101636105e6565b61021e6004803603602081101561020b57600080fd5b503569ffffffffffffffffffff16610653565b6040805192835260208301919091528051918290030190f35b61012d6004803603602081101561024d57600080fd5b50356001600160a01b03166106a5565b61012d6004803603602081101561027357600080fd5b503561079d565b610282610839565b6000546001600160a01b039081169116146102d2576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b600081116103115760405162461bcd60e51b815260040180806020018281038252602e81526020018061095e602e913960400191505060405180910390fd5b600755565b6004546001600160a01b031681565b6003546001600160a01b031681565b60075481565b606481565b60065481565b60055481565b6004546001600160a01b031633146103945760405162461bcd60e51b815260040180806020018281038252602181526020018061098c6021913960400191505060405180910390fd5b428211156103d35760405162461bcd60e51b815260040180806020018281038252603a8152602001806109ad603a913960400191505060405180910390fd5b600554600090815260086020526040902054801561047a576007546103ff90829063ffffffff61083d16565b61041083606463ffffffff61083d16565b10801561043f575061042981606463ffffffff61083d16565b60075461043d90849063ffffffff61083d16565b115b61047a5760405162461bcd60e51b815260040180806020018281038252603e8152602001806108fa603e913960400191505060405180910390fd5b6005839055600083815260086020526040808220849055600154600354825163ee53140960e01b81526001600160a01b0391821660048201526024810188905260448101879052925191169263ee531409926064808201939182900301818387803b1580156104e857600080fd5b505af11580156104fc573d6000803e3d6000fd5b50505050505050565b6002546001600160a01b031681565b61051c610839565b6000546001600160a01b0390811691161461056c576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001546001600160a01b031681565b6000546001600160a01b031690565b60086020526000908152604090205481565b60006105ff60065460055461089f90919063ffffffff16565b42111561063d5760405162461bcd60e51b8152600401808060200182810382526026815260200180610a556026913960400191505060405180910390fd5b5060055460009081526008602052604090205490565b6040805162461bcd60e51b815260206004820152601860248201527f4d616e75616c5072696365723a204465707265636174656400000000000000006044820152905160009182919081900360640190fd5b6106ad610839565b6000546001600160a01b039081169116146106fd576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b6001600160a01b0381166107425760405162461bcd60e51b81526004018080602001828103825260268152602001806109386026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6107a5610839565b6000546001600160a01b039081169116146107f5576040805162461bcd60e51b81526020600482018190526024820152600080516020610a35833981519152604482015290519081900360640190fd5b600081116108345760405162461bcd60e51b815260040180806020018281038252602d815260200180610a08602d913960400191505060405180910390fd5b600655565b3390565b60008261084c57506000610899565b8282028284828161085957fe5b04146108965760405162461bcd60e51b81526004018080602001828103825260218152602001806109e76021913960400191505060405180910390fd5b90505b92915050565b600082820183811015610896576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fdfe4d616e75616c5072696365723a20707269636520646576696174696f6e206973206c6172676572207468616e2063757272656e746c7920616c6c6f7765644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734d616e75616c5072696365723a20646576696174696f6e206d756c7469706c6965722063616e6e6f7420626520304d616e75616c5072696365723a20756e617574686f72697a65642073656e6465724d616e75616c5072696365723a206578706972696573207072696365732063616e6e6f742062652073657420666f722074686520667574757265536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d616e75616c5072696365723a2070726963652074696d652076616c69646974792063616e6e6f7420626520304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724d616e75616c5072696365723a207072696365206973206e6f206c6f6e6765722076616c6964a264697066735822122095e31984ca54b27c550a5f2f0d95a91b978adf9d98402e91122b2f109181303a64736f6c634300060a0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in HYPE
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.