Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x4A333ac38BeD373e274e1dd119429fCaD0F8a3Dd
Balance 0 ETH
Nonce 1
Code Size 1003 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

1003 bytes
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100d85780638f32d59b146100fc578063e0a73a9314610118578063f2fde38b146101205761007d565b806310ec214f1461008257806330a698e8146100a1578063715018a6146100d0575b600080fd5b61009f6004803603602081101561009857600080fd5b5035610146565b005b6100be600480360360208110156100b757600080fd5b50356101a4565b60408051918252519081900360200190f35b61009f6101ab565b6100e061024e565b604080516001600160a01b039092168252519081900360200190f35b61010461025d565b604080519115158252519081900360200190f35b6100be610281565b61009f6004803603602081101561013657600080fd5b50356001600160a01b0316610287565b61014e61025d565b61019f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600155565b5060015490565b6101b361025d565b610204576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600080546001600160a01b03166102726102ec565b6001600160a01b031614905090565b60015481565b61028f61025d565b6102e0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6102e9816102f0565b50565b3390565b6001600160a01b0381166103355760405162461bcd60e51b81526004018080602001828103825260268152602001806103916026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a723158206883557d6eb9a414e3ece9ea1b387afdbea9ca7297518e646370491355750cc364736f6c63430005100032

Verified Source Code Partial Match

Compiler: v0.5.16+commit.9c3226ce EVM: istanbul Optimization: Yes (200 runs)
FixedPricingModuleV1.sol 142 lines
// Sources flattened with hardhat v2.0.8 https://hardhat.org

// File openzeppelin-solidity/contracts/GSN/[email protected]

pragma solidity ^0.5.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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File openzeppelin-solidity/contracts/ownership/[email protected]

pragma solidity ^0.5.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File contracts/PricingModules/FixedPricingModuleV1.sol

pragma solidity 0.5.16;

contract FixedPricingModuleV1 is Ownable {
    // Linear params
    uint256 public premium;

    constructor(uint256 _premium) public {
        premium = _premium;
    }

    // Getters
    /// @notice Estimate required dynamic premium for specified quantity
    /// @return Estimated dynamic premium considering specified arguments
    function getDynamicPremium(uint256) public view returns (uint256) {
        return premium;
    }

    // Setters
    /// @notice Sets premium
    /// @param _premium new premium
    function setPremium(uint256 _premium)
        external
        onlyOwner
    {
        premium = _premium;
    }
}

Read Contract

getDynamicPremium 0x30a698e8 → uint256
isOwner 0x8f32d59b → bool
owner 0x8da5cb5b → address
premium 0xe0a73a93 → uint256

Write Contract 3 functions

These functions modify contract state and require a wallet transaction to execute.

renounceOwnership 0x715018a6
No parameters
setPremium 0x10ec214f
uint256 _premium
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address