Token migration announcement. Cream ETH 2 token contract has migrated to a new address.
ERC-20
Overview
Max Total Supply
25,166.58057833115370807 CRETH2
Holders
413 ( 3.874%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.001134424057410384 CRETH2Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CreamETH2
Compiler Version
v0.6.11+commit.5ef660b1
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.11; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // This interface is designed to be compatible with the Vyper version. /// @notice This is the Ethereum 2.0 deposit contract interface. /// For more information see the Phase 0 specification under https://github.com/ethereum/eth2.0-specs interface IDepositContract { /// @notice A processed deposit event. event DepositEvent( bytes pubkey, bytes withdrawal_credentials, bytes amount, bytes signature, bytes index ); /// @notice Submit a Phase 0 DepositData object. /// @param pubkey A BLS12-381 public key. /// @param withdrawal_credentials Commitment to a public key for withdrawals. /// @param signature A BLS12-381 signature. /// @param deposit_data_root The SHA-256 hash of the SSZ-encoded DepositData object. /// Used as a protection against malformed input. function deposit( bytes calldata pubkey, bytes calldata withdrawal_credentials, bytes calldata signature, bytes32 deposit_data_root ) external payable; /// @notice Query the current deposit root hash. /// @return The deposit root hash. function get_deposit_root() external view returns (bytes32); /// @notice Query the current deposit count. /// @return The deposit count encoded as a little endian 64-bit number. function get_deposit_count() external view returns (bytes memory); } interface IOracle { /// @notice Query the exchange rate between ETH and CETH2. /// @return The exchange rate. function exchangeRate() external view returns (uint); } contract CreamETH2 is ERC20 { event DepositEvent( address account, uint ethAmount, uint creth2Amount ); event WithdrawEvent( address account, uint ethAmount, uint creth2Amount ); event StakeEvent( bytes pubkey, bytes withdrawal_credentials, bytes signature ); IDepositContract public constant eth2DepositContract = IDepositContract(0x00000000219ab540356cBB839Cbe05303d7705Fa); uint public constant VALIDATOR_AMOUNT = 32e18; address public admin; IOracle public oracle; uint public cap; uint public accumulated = 0; bool public breaker = false; constructor(address _oracle, uint _cap) public ERC20("Cream ETH 2", "CRETH2") { admin = msg.sender; oracle = IOracle(_oracle); cap = _cap; } function setAdmin(address _admin) external { require(msg.sender == admin, "!admin"); admin = _admin; } function setOracle(address _oracle) external { require(msg.sender == admin, "!admin"); oracle = IOracle(_oracle); } function increaseCap(uint _cap) external { require(msg.sender == admin, "!admin"); require(_cap > cap, "cap must strictly increase"); cap = _cap; } function setBreaker(bool _breaker) external { require(msg.sender == admin, "!admin"); breaker = _breaker; } function stake( bytes[] calldata pubkeys, bytes[] calldata withdrawal_credentials, bytes[] calldata signatures, bytes32[] calldata deposit_data_roots ) external payable { require(msg.sender == admin, "!admin"); uint count = pubkeys.length; require(count == withdrawal_credentials.length, "invalid argument"); require(count == signatures.length, "invalid argument"); require(count == deposit_data_roots.length, "invalid argument"); uint totalAmount = VALIDATOR_AMOUNT.mul(count); require(address(this).balance >= totalAmount, "insufficient balance"); for (uint i = 0; i < count; i++) { eth2DepositContract.deposit{value: VALIDATOR_AMOUNT}(pubkeys[i], withdrawal_credentials[i], signatures[i], deposit_data_roots[i]); emit StakeEvent(pubkeys[i], withdrawal_credentials[i], signatures[i]); } } function deposit() external payable { require(breaker == false, "breaker"); accumulated = accumulated.add(msg.value); require(accumulated <= cap, "cap exceeded"); uint creth2Amount = msg.value.mul(oracle.exchangeRate()).div(1e18); _mint(msg.sender, creth2Amount); emit DepositEvent(msg.sender, msg.value, creth2Amount); } function withdraw(uint creth2Amount) external { require(breaker == true, "!breaker"); uint ethAmount = creth2Amount.mul(1e18).div(oracle.exchangeRate()); require(address(this).balance >= ethAmount, "insufficient balance"); accumulated = accumulated.sub(ethAmount); _burn(msg.sender, creth2Amount); msg.sender.transfer(ethAmount); emit WithdrawEvent(msg.sender, ethAmount, creth2Amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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.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) { 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 pragma solidity ^0.6.2; /** * @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 in 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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"uint256","name":"_cap","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creth2Amount","type":"uint256"}],"name":"DepositEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"withdrawal_credentials","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"signature","type":"bytes"}],"name":"StakeEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creth2Amount","type":"uint256"}],"name":"WithdrawEvent","type":"event"},{"inputs":[],"name":"VALIDATOR_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accumulated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breaker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"eth2DepositContract","outputs":[{"internalType":"contract IDepositContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"increaseCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_breaker","type":"bool"}],"name":"setBreaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"pubkeys","type":"bytes[]"},{"internalType":"bytes[]","name":"withdrawal_credentials","type":"bytes[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"},{"internalType":"bytes32[]","name":"deposit_data_roots","type":"bytes32[]"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creth2Amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006008556009805460ff191690553480156200002057600080fd5b5060405162001c6938038062001c6983398101604081905262000043916200019c565b604080518082018252600b81526a21b932b0b69022aa24101960a91b60208083019182528351808501909452600684526521a922aa241960d11b9084015281519192916200009491600391620000f7565b508051620000aa906004906020840190620000f7565b505060058054601260ff1990911617610100600160a81b031916610100330217905550600680546001600160a01b0319166001600160a01b039390931692909217909155600755620001d6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200013a57805160ff19168380011785556200016a565b828001600101855582156200016a579182015b828111156200016a5782518255916020019190600101906200014d565b50620001789291506200017c565b5090565b6200019991905b8082111562000178576000815560010162000183565b90565b60008060408385031215620001af578182fd5b82516001600160a01b0381168114620001c6578283fd5b6020939093015192949293505050565b611a8380620001e66000396000f3fe6080604052600436106101665760003560e01c80635c0aeb0e116100d15780637dc0d1d01161008a578063a9059cbb11610064578063a9059cbb146103dc578063d0e30db0146103fc578063dd62ed3e14610404578063f851a4401461042457610166565b80637dc0d1d01461039257806395d89b41146103a7578063a457c2d7146103bc57610166565b80635c0aeb0e146102e8578063704b6c021461030857806370a08231146103285780637a044323146103485780637adbf9731461035d5780637b4bc9351461037d57610166565b80632e1a7d4d116101235780632e1a7d4d1461022f578063313ce5671461024f578063355274ea14610271578063395093511461028657806351c46476146102a6578063523e9551146102c857610166565b806306fdde031461016b578063095ea7b3146101965780630f41e0d2146101c357806318160ddd146101d8578063220f4a89146101fa57806323b872dd1461020f575b600080fd5b34801561017757600080fd5b50610180610439565b60405161018d91906115d9565b60405180910390f35b3480156101a257600080fd5b506101b66101b136600461139e565b6104cf565b60405161018d9190611536565b3480156101cf57600080fd5b506101b66104ed565b3480156101e457600080fd5b506101ed6104f6565b60405161018d9190611942565b61020d6102083660046113c8565b6104fc565b005b34801561021b57600080fd5b506101b661022a36600461135e565b610765565b34801561023b57600080fd5b5061020d61024a3660046114a7565b6107f2565b34801561025b57600080fd5b50610264610977565b60405161018d919061194b565b34801561027d57600080fd5b506101ed610980565b34801561029257600080fd5b506101b66102a136600461139e565b610986565b3480156102b257600080fd5b506102bb6109da565b60405161018d9190611501565b3480156102d457600080fd5b5061020d6102e33660046114a7565b6109ee565b3480156102f457600080fd5b5061020d610303366004611487565b610a43565b34801561031457600080fd5b5061020d61032336600461130f565b610a85565b34801561033457600080fd5b506101ed61034336600461130f565b610adc565b34801561035457600080fd5b506101ed610af7565b34801561036957600080fd5b5061020d61037836600461130f565b610afd565b34801561038957600080fd5b506101ed610b4e565b34801561039e57600080fd5b506102bb610b5b565b3480156103b357600080fd5b50610180610b6a565b3480156103c857600080fd5b506101b66103d736600461139e565b610bcb565b3480156103e857600080fd5b506101b66103f736600461139e565b610c39565b61020d610c4d565b34801561041057600080fd5b506101ed61041f36600461132a565b610d97565b34801561043057600080fd5b506102bb610dc2565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104c55780601f1061049a576101008083540402835291602001916104c5565b820191906000526020600020905b8154815290600101906020018083116104a857829003601f168201915b5050505050905090565b60006104e36104dc610dd6565b8484610dda565b5060015b92915050565b60095460ff1681565b60025490565b60055461010090046001600160a01b031633146105345760405162461bcd60e51b815260040161052b90611730565b60405180910390fd5b868581146105545760405162461bcd60e51b815260040161052b906117c8565b8084146105735760405162461bcd60e51b815260040161052b906117c8565b8082146105925760405162461bcd60e51b815260040161052b906117c8565b60006105ad6801bc16d674ec8000008363ffffffff610e8e16565b9050804710156105cf5760405162461bcd60e51b815260040161052b906117f2565b60005b82811015610758576f219ab540356cbb839cbe05303d7705fa63228951186801bc16d674ec8000008d8d8581811061060657fe5b90506020028101906106189190611959565b8d8d8781811061062457fe5b90506020028101906106369190611959565b8d8d8981811061064257fe5b90506020028101906106549190611959565b8d8d8b81811061066057fe5b905060200201356040518963ffffffff1660e01b81526004016106899796959493929190611589565b6000604051808303818588803b1580156106a257600080fd5b505af11580156106b6573d6000803e3d6000fd5b50505050507f93c3d32d8335c8ae120534a3596efc4413bc4c4595cbd1549e6fa0a2da98cb4a8b8b838181106106e857fe5b90506020028101906106fa9190611959565b8b8b8581811061070657fe5b90506020028101906107189190611959565b8b8b8781811061072457fe5b90506020028101906107369190611959565b60405161074896959493929190611541565b60405180910390a16001016105d2565b5050505050505050505050565b6000610772848484610ecf565b6107e88461077e610dd6565b6107e385604051806060016040528060288152602001611a01602891396001600160a01b038a166000908152600160205260408120906107bc610dd6565b6001600160a01b03168152602081019190915260400160002054919063ffffffff610ff016565b610dda565b5060019392505050565b60095460ff1615156001146108195760405162461bcd60e51b815260040161052b9061166f565b60006108c8600660009054906101000a90046001600160a01b03166001600160a01b0316633ba0b9a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561086c57600080fd5b505afa158015610880573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a491906114bf565b6108bc84670de0b6b3a764000063ffffffff610e8e16565b9063ffffffff61101c16565b9050804710156108ea5760405162461bcd60e51b815260040161052b906117f2565b6008546108fd908263ffffffff61105e16565b60085561090a33836110a0565b604051339082156108fc029083906000818181858888f19350505050158015610937573d6000803e3d6000fd5b507f5bb95829671915ece371da722f91d5371159095dcabf2f75cd6c53facb7e1bab33828460405161096b93929190611515565b60405180910390a15050565b60055460ff1690565b60075481565b60006104e3610993610dd6565b846107e385600160006109a4610dd6565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61118e16565b6f219ab540356cbb839cbe05303d7705fa81565b60055461010090046001600160a01b03163314610a1d5760405162461bcd60e51b815260040161052b90611730565b6007548111610a3e5760405162461bcd60e51b815260040161052b90611750565b600755565b60055461010090046001600160a01b03163314610a725760405162461bcd60e51b815260040161052b90611730565b6009805460ff1916911515919091179055565b60055461010090046001600160a01b03163314610ab45760405162461bcd60e51b815260040161052b90611730565b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b031660009081526020819052604090205490565b60085481565b60055461010090046001600160a01b03163314610b2c5760405162461bcd60e51b815260040161052b90611730565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6801bc16d674ec80000081565b6006546001600160a01b031681565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104c55780601f1061049a576101008083540402835291602001916104c5565b60006104e3610bd8610dd6565b846107e385604051806060016040528060258152602001611a296025913960016000610c02610dd6565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff610ff016565b60006104e3610c46610dd6565b8484610ecf565b60095460ff1615610c705760405162461bcd60e51b815260040161052b906118ea565b600854610c83903463ffffffff61118e16565b60088190556007541015610ca95760405162461bcd60e51b815260040161052b9061170a565b6000610d4d670de0b6b3a76400006108bc600660009054906101000a90046001600160a01b03166001600160a01b0316633ba0b9a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0857600080fd5b505afa158015610d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4091906114bf565b349063ffffffff610e8e16565b9050610d5933826111b3565b7fad40ae5dc69974ba932d08b0a608e89109412d41d04850f5196f144875ae2660333483604051610d8c93929190611515565b60405180910390a150565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60055461010090046001600160a01b031681565b3390565b6001600160a01b038316610e005760405162461bcd60e51b815260040161052b906118a6565b6001600160a01b038216610e265760405162461bcd60e51b815260040161052b90611691565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610e81908590611942565b60405180910390a3505050565b600082610e9d575060006104e7565b82820282848281610eaa57fe5b0414610ec85760405162461bcd60e51b815260040161052b90611787565b9392505050565b6001600160a01b038316610ef55760405162461bcd60e51b815260040161052b90611861565b6001600160a01b038216610f1b5760405162461bcd60e51b815260040161052b9061162c565b610f26838383611273565b610f69816040518060600160405280602681526020016119db602691396001600160a01b038616600090815260208190526040902054919063ffffffff610ff016565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610f9e908263ffffffff61118e16565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610e81908590611942565b600081848411156110145760405162461bcd60e51b815260040161052b91906115d9565b505050900390565b6000610ec883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611278565b6000610ec883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ff0565b6001600160a01b0382166110c65760405162461bcd60e51b815260040161052b90611820565b6110d282600083611273565b611115816040518060600160405280602281526020016119b9602291396001600160a01b038516600090815260208190526040902054919063ffffffff610ff016565b6001600160a01b038316600090815260208190526040902055600254611141908263ffffffff61105e16565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611182908590611942565b60405180910390a35050565b600082820183811015610ec85760405162461bcd60e51b815260040161052b906116d3565b6001600160a01b0382166111d95760405162461bcd60e51b815260040161052b9061190b565b6111e560008383611273565b6002546111f8908263ffffffff61118e16565b6002556001600160a01b038216600090815260208190526040902054611224908263ffffffff61118e16565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611182908590611942565b505050565b600081836112995760405162461bcd60e51b815260040161052b91906115d9565b5060008385816112a557fe5b0495945050505050565b80356001600160a01b03811681146104e757600080fd5b60008083601f8401126112d7578182fd5b50813567ffffffffffffffff8111156112ee578182fd5b602083019150836020808302850101111561130857600080fd5b9250929050565b600060208284031215611320578081fd5b610ec883836112af565b6000806040838503121561133c578081fd5b61134684846112af565b915061135584602085016112af565b90509250929050565b600080600060608486031215611372578081fd5b833561137d816119a0565b9250602084013561138d816119a0565b929592945050506040919091013590565b600080604083850312156113b0578182fd5b6113ba84846112af565b946020939093013593505050565b6000806000806000806000806080898b0312156113e3578384fd5b883567ffffffffffffffff808211156113fa578586fd5b6114068c838d016112c6565b909a50985060208b013591508082111561141e578586fd5b61142a8c838d016112c6565b909850965060408b0135915080821115611442578586fd5b61144e8c838d016112c6565b909650945060608b0135915080821115611466578384fd5b506114738b828c016112c6565b999c989b5096995094979396929594505050565b600060208284031215611498578081fd5b81358015158114610ec8578182fd5b6000602082840312156114b8578081fd5b5035919050565b6000602082840312156114d0578081fd5b5051919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6001600160a01b0391909116815260200190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b60006060825261155560608301888a6114d7565b82810360208401526115688187896114d7565b838103604085015261157b8186886114d7565b9a9950505050505050505050565b60006080825261159d60808301898b6114d7565b82810360208401526115b081888a6114d7565b83810360408501526115c38187896114d7565b9250505082606083015298975050505050505050565b6000602080835283518082850152825b81811015611605578581018301518582016040015282016115e9565b818111156116165783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526008908201526710b13932b0b5b2b960c11b604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600c908201526b18d85c08195e18d95959195960a21b604082015260600190565b60208082526006908201526510b0b236b4b760d11b604082015260600190565b6020808252601a908201527f636170206d757374207374726963746c7920696e637265617365000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526010908201526f1a5b9d985b1a5908185c99dd5b595b9d60821b604082015260600190565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b602080825260079082015266313932b0b5b2b960c91b604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b6000808335601e1984360301811261196f578283fd5b8084018035925067ffffffffffffffff83111561198a578384fd5b6020019250503681900382131561130857600080fd5b6001600160a01b03811681146119b557600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204030297645f1b049e3ece59753b93939793a82e2e540465ae403b962ea85a1a064736f6c634300060b0033000000000000000000000000c92ae5e2a955a3440f677c1c60d48baa1cfa9eda0000000000000000000000000000000000000000000006c6b935b8bbd4000000
Deployed Bytecode
0x6080604052600436106101665760003560e01c80635c0aeb0e116100d15780637dc0d1d01161008a578063a9059cbb11610064578063a9059cbb146103dc578063d0e30db0146103fc578063dd62ed3e14610404578063f851a4401461042457610166565b80637dc0d1d01461039257806395d89b41146103a7578063a457c2d7146103bc57610166565b80635c0aeb0e146102e8578063704b6c021461030857806370a08231146103285780637a044323146103485780637adbf9731461035d5780637b4bc9351461037d57610166565b80632e1a7d4d116101235780632e1a7d4d1461022f578063313ce5671461024f578063355274ea14610271578063395093511461028657806351c46476146102a6578063523e9551146102c857610166565b806306fdde031461016b578063095ea7b3146101965780630f41e0d2146101c357806318160ddd146101d8578063220f4a89146101fa57806323b872dd1461020f575b600080fd5b34801561017757600080fd5b50610180610439565b60405161018d91906115d9565b60405180910390f35b3480156101a257600080fd5b506101b66101b136600461139e565b6104cf565b60405161018d9190611536565b3480156101cf57600080fd5b506101b66104ed565b3480156101e457600080fd5b506101ed6104f6565b60405161018d9190611942565b61020d6102083660046113c8565b6104fc565b005b34801561021b57600080fd5b506101b661022a36600461135e565b610765565b34801561023b57600080fd5b5061020d61024a3660046114a7565b6107f2565b34801561025b57600080fd5b50610264610977565b60405161018d919061194b565b34801561027d57600080fd5b506101ed610980565b34801561029257600080fd5b506101b66102a136600461139e565b610986565b3480156102b257600080fd5b506102bb6109da565b60405161018d9190611501565b3480156102d457600080fd5b5061020d6102e33660046114a7565b6109ee565b3480156102f457600080fd5b5061020d610303366004611487565b610a43565b34801561031457600080fd5b5061020d61032336600461130f565b610a85565b34801561033457600080fd5b506101ed61034336600461130f565b610adc565b34801561035457600080fd5b506101ed610af7565b34801561036957600080fd5b5061020d61037836600461130f565b610afd565b34801561038957600080fd5b506101ed610b4e565b34801561039e57600080fd5b506102bb610b5b565b3480156103b357600080fd5b50610180610b6a565b3480156103c857600080fd5b506101b66103d736600461139e565b610bcb565b3480156103e857600080fd5b506101b66103f736600461139e565b610c39565b61020d610c4d565b34801561041057600080fd5b506101ed61041f36600461132a565b610d97565b34801561043057600080fd5b506102bb610dc2565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104c55780601f1061049a576101008083540402835291602001916104c5565b820191906000526020600020905b8154815290600101906020018083116104a857829003601f168201915b5050505050905090565b60006104e36104dc610dd6565b8484610dda565b5060015b92915050565b60095460ff1681565b60025490565b60055461010090046001600160a01b031633146105345760405162461bcd60e51b815260040161052b90611730565b60405180910390fd5b868581146105545760405162461bcd60e51b815260040161052b906117c8565b8084146105735760405162461bcd60e51b815260040161052b906117c8565b8082146105925760405162461bcd60e51b815260040161052b906117c8565b60006105ad6801bc16d674ec8000008363ffffffff610e8e16565b9050804710156105cf5760405162461bcd60e51b815260040161052b906117f2565b60005b82811015610758576f219ab540356cbb839cbe05303d7705fa63228951186801bc16d674ec8000008d8d8581811061060657fe5b90506020028101906106189190611959565b8d8d8781811061062457fe5b90506020028101906106369190611959565b8d8d8981811061064257fe5b90506020028101906106549190611959565b8d8d8b81811061066057fe5b905060200201356040518963ffffffff1660e01b81526004016106899796959493929190611589565b6000604051808303818588803b1580156106a257600080fd5b505af11580156106b6573d6000803e3d6000fd5b50505050507f93c3d32d8335c8ae120534a3596efc4413bc4c4595cbd1549e6fa0a2da98cb4a8b8b838181106106e857fe5b90506020028101906106fa9190611959565b8b8b8581811061070657fe5b90506020028101906107189190611959565b8b8b8781811061072457fe5b90506020028101906107369190611959565b60405161074896959493929190611541565b60405180910390a16001016105d2565b5050505050505050505050565b6000610772848484610ecf565b6107e88461077e610dd6565b6107e385604051806060016040528060288152602001611a01602891396001600160a01b038a166000908152600160205260408120906107bc610dd6565b6001600160a01b03168152602081019190915260400160002054919063ffffffff610ff016565b610dda565b5060019392505050565b60095460ff1615156001146108195760405162461bcd60e51b815260040161052b9061166f565b60006108c8600660009054906101000a90046001600160a01b03166001600160a01b0316633ba0b9a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561086c57600080fd5b505afa158015610880573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a491906114bf565b6108bc84670de0b6b3a764000063ffffffff610e8e16565b9063ffffffff61101c16565b9050804710156108ea5760405162461bcd60e51b815260040161052b906117f2565b6008546108fd908263ffffffff61105e16565b60085561090a33836110a0565b604051339082156108fc029083906000818181858888f19350505050158015610937573d6000803e3d6000fd5b507f5bb95829671915ece371da722f91d5371159095dcabf2f75cd6c53facb7e1bab33828460405161096b93929190611515565b60405180910390a15050565b60055460ff1690565b60075481565b60006104e3610993610dd6565b846107e385600160006109a4610dd6565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61118e16565b6f219ab540356cbb839cbe05303d7705fa81565b60055461010090046001600160a01b03163314610a1d5760405162461bcd60e51b815260040161052b90611730565b6007548111610a3e5760405162461bcd60e51b815260040161052b90611750565b600755565b60055461010090046001600160a01b03163314610a725760405162461bcd60e51b815260040161052b90611730565b6009805460ff1916911515919091179055565b60055461010090046001600160a01b03163314610ab45760405162461bcd60e51b815260040161052b90611730565b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b031660009081526020819052604090205490565b60085481565b60055461010090046001600160a01b03163314610b2c5760405162461bcd60e51b815260040161052b90611730565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6801bc16d674ec80000081565b6006546001600160a01b031681565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156104c55780601f1061049a576101008083540402835291602001916104c5565b60006104e3610bd8610dd6565b846107e385604051806060016040528060258152602001611a296025913960016000610c02610dd6565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff610ff016565b60006104e3610c46610dd6565b8484610ecf565b60095460ff1615610c705760405162461bcd60e51b815260040161052b906118ea565b600854610c83903463ffffffff61118e16565b60088190556007541015610ca95760405162461bcd60e51b815260040161052b9061170a565b6000610d4d670de0b6b3a76400006108bc600660009054906101000a90046001600160a01b03166001600160a01b0316633ba0b9a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0857600080fd5b505afa158015610d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4091906114bf565b349063ffffffff610e8e16565b9050610d5933826111b3565b7fad40ae5dc69974ba932d08b0a608e89109412d41d04850f5196f144875ae2660333483604051610d8c93929190611515565b60405180910390a150565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60055461010090046001600160a01b031681565b3390565b6001600160a01b038316610e005760405162461bcd60e51b815260040161052b906118a6565b6001600160a01b038216610e265760405162461bcd60e51b815260040161052b90611691565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610e81908590611942565b60405180910390a3505050565b600082610e9d575060006104e7565b82820282848281610eaa57fe5b0414610ec85760405162461bcd60e51b815260040161052b90611787565b9392505050565b6001600160a01b038316610ef55760405162461bcd60e51b815260040161052b90611861565b6001600160a01b038216610f1b5760405162461bcd60e51b815260040161052b9061162c565b610f26838383611273565b610f69816040518060600160405280602681526020016119db602691396001600160a01b038616600090815260208190526040902054919063ffffffff610ff016565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610f9e908263ffffffff61118e16565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610e81908590611942565b600081848411156110145760405162461bcd60e51b815260040161052b91906115d9565b505050900390565b6000610ec883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611278565b6000610ec883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610ff0565b6001600160a01b0382166110c65760405162461bcd60e51b815260040161052b90611820565b6110d282600083611273565b611115816040518060600160405280602281526020016119b9602291396001600160a01b038516600090815260208190526040902054919063ffffffff610ff016565b6001600160a01b038316600090815260208190526040902055600254611141908263ffffffff61105e16565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611182908590611942565b60405180910390a35050565b600082820183811015610ec85760405162461bcd60e51b815260040161052b906116d3565b6001600160a01b0382166111d95760405162461bcd60e51b815260040161052b9061190b565b6111e560008383611273565b6002546111f8908263ffffffff61118e16565b6002556001600160a01b038216600090815260208190526040902054611224908263ffffffff61118e16565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611182908590611942565b505050565b600081836112995760405162461bcd60e51b815260040161052b91906115d9565b5060008385816112a557fe5b0495945050505050565b80356001600160a01b03811681146104e757600080fd5b60008083601f8401126112d7578182fd5b50813567ffffffffffffffff8111156112ee578182fd5b602083019150836020808302850101111561130857600080fd5b9250929050565b600060208284031215611320578081fd5b610ec883836112af565b6000806040838503121561133c578081fd5b61134684846112af565b915061135584602085016112af565b90509250929050565b600080600060608486031215611372578081fd5b833561137d816119a0565b9250602084013561138d816119a0565b929592945050506040919091013590565b600080604083850312156113b0578182fd5b6113ba84846112af565b946020939093013593505050565b6000806000806000806000806080898b0312156113e3578384fd5b883567ffffffffffffffff808211156113fa578586fd5b6114068c838d016112c6565b909a50985060208b013591508082111561141e578586fd5b61142a8c838d016112c6565b909850965060408b0135915080821115611442578586fd5b61144e8c838d016112c6565b909650945060608b0135915080821115611466578384fd5b506114738b828c016112c6565b999c989b5096995094979396929594505050565b600060208284031215611498578081fd5b81358015158114610ec8578182fd5b6000602082840312156114b8578081fd5b5035919050565b6000602082840312156114d0578081fd5b5051919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6001600160a01b0391909116815260200190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b60006060825261155560608301888a6114d7565b82810360208401526115688187896114d7565b838103604085015261157b8186886114d7565b9a9950505050505050505050565b60006080825261159d60808301898b6114d7565b82810360208401526115b081888a6114d7565b83810360408501526115c38187896114d7565b9250505082606083015298975050505050505050565b6000602080835283518082850152825b81811015611605578581018301518582016040015282016115e9565b818111156116165783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526008908201526710b13932b0b5b2b960c11b604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600c908201526b18d85c08195e18d95959195960a21b604082015260600190565b60208082526006908201526510b0b236b4b760d11b604082015260600190565b6020808252601a908201527f636170206d757374207374726963746c7920696e637265617365000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526010908201526f1a5b9d985b1a5908185c99dd5b595b9d60821b604082015260600190565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b602080825260079082015266313932b0b5b2b960c91b604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b6000808335601e1984360301811261196f578283fd5b8084018035925067ffffffffffffffff83111561198a578384fd5b6020019250503681900382131561130857600080fd5b6001600160a01b03811681146119b557600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204030297645f1b049e3ece59753b93939793a82e2e540465ae403b962ea85a1a064736f6c634300060b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c92ae5e2a955a3440f677c1c60d48baa1cfa9eda0000000000000000000000000000000000000000000006c6b935b8bbd4000000
-----Decoded View---------------
Arg [0] : _oracle (address): 0xc92Ae5E2a955a3440F677c1c60D48baa1Cfa9eDA
Arg [1] : _cap (uint256): 32000000000000000000000
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c92ae5e2a955a3440f677c1c60d48baa1cfa9eda
Arg [1] : 0000000000000000000000000000000000000000000006c6b935b8bbd4000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.