MATIC Price: $0.708937 (-0.67%)
Gas: 30 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Value
Set FIN Price In...327599282022-09-06 10:38:23620 days ago1662460703IN
0x27B938EA...112055441
0 MATIC0.0010522830.00000001
Set FIN Price In...305685612022-07-10 15:43:49678 days ago1657467829IN
0x27B938EA...112055441
0 MATIC0.0010522830.00000001
Set FIN Price In...303977342022-07-06 8:36:49682 days ago1657096609IN
0x27B938EA...112055441
0 MATIC0.0010917231.11405356
Set FIN Price In...297867842022-06-20 9:40:58698 days ago1655718058IN
0x27B938EA...112055441
0 MATIC0.00782125222.98015099
Set FIN Price In...290240882022-06-01 7:12:22717 days ago1654067542IN
0x27B938EA...112055441
0 MATIC0.0013204337.63200003
Set FIN Price In...287816982022-05-26 6:08:29723 days ago1653545309IN
0x27B938EA...112055441
0 MATIC0.001157933.00000029
Set FIN Price In...287814362022-05-26 5:59:25723 days ago1653544765IN
0x27B938EA...112055441
0 MATIC0.0012668736.10555226
Set FIN Price In...282197822022-05-12 6:35:00737 days ago1652337300IN
0x27B938EA...112055441
0 MATIC0.02013027573.70820472
Set FIN Price In...281995162022-05-11 18:04:31738 days ago1652292271IN
0x27B938EA...112055441
0 MATIC0.02848193812.00630956
Set FIN Price In...281128122022-05-09 13:14:00740 days ago1652102040IN
0x27B938EA...112055441
0 MATIC0.0028169480.28218825
Set FIN Price In...279069632022-05-04 8:26:07745 days ago1651652767IN
0x27B938EA...112055441
0 MATIC0.0010590730.18345122
Set FIN Price In...234360812022-01-07 9:33:12862 days ago1641547992IN
0x27B938EA...112055441
0 MATIC0.01401063399.3
Transfer Ownersh...230982152021-12-29 9:29:10871 days ago1640770150IN
0x27B938EA...112055441
0 MATIC0.0008619330
Set FIN Price In...230977262021-12-29 9:12:20871 days ago1640769140IN
0x27B938EA...112055441
0 MATIC0.0010526430
Set FIN Price In...220451852021-12-02 10:05:27898 days ago1638439527IN
0x27B938EA...112055441
0 MATIC0.0027715240
0x60806040220451802021-12-02 10:05:13898 days ago1638439513IN
 Create: FixedPriceOracleFIN
0 MATIC0.0259569640

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FixedPriceOracleFIN

Compiler Version
v0.5.14+commit.01f1aaa4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU LGPLv2.1 license
/**
 *Submitted for verification at polygonscan.com on 2021-12-02
*/

pragma solidity 0.5.14;


/**
 * @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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/*
 * @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;
    }
}

/**
 * @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;
    }
}

interface AggregatorInterface {
  function latestAnswer() external view returns (int256);
  function latestTimestamp() external view returns (uint256);
  function latestRound() external view returns (uint256);
  function getAnswer(uint256 roundId) external view returns (int256);
  function getTimestamp(uint256 roundId) external view returns (uint256);

  event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 timestamp);
  event NewRound(uint256 indexed roundId, address indexed startedBy);
}

/**
 * @title FIN Oracle
 */
contract FixedPriceOracleFIN is Ownable {
    using SafeMath for uint256;

    // "MATIC / USD" price feed address
    AggregatorInterface public maticUsdChainLinkPriceFeed;

    // FIN token price in USD, with 8 decimal places
    uint256 public finPriceInUSD;

    // FIN token last updated timestamp
    uint256 public finLastUpdateTimestamp;

    // Pair Name: example: "FIN/MATIC"
    string public constant pairName = "FIN/MATIC";

    uint256 public constant ONE_MATIC = 10 ** 18;
    // 8 decimals USD rate returned by Chainlink Oracle, multiplier, divisor
    uint256 public constant USD_DECIMALS_MUL_DIV = 10 ** 8;
    uint256 public constant MATIC_NUMERATOR = ONE_MATIC * USD_DECIMALS_MUL_DIV;

    event FINPriceUpdated(uint256 priceInUSD, uint256 timestamp);

    /**
     * @dev Constructor of the contract
     */
    constructor(AggregatorInterface _maticUsdChainLinkPriceFeed) public {
        maticUsdChainLinkPriceFeed = _maticUsdChainLinkPriceFeed;
    }

    /**
     * @dev Only owner can set the FIN price in USD
     * @notice The price is in USD, upto 8 decimal places.
     */
    function setFINPriceInUSD(uint256 _price) public onlyOwner {
        finPriceInUSD = _price;
        finLastUpdateTimestamp = now;
        emit FINPriceUpdated(finPriceInUSD, finLastUpdateTimestamp);
    }

    /**
     * @dev returns the price of the a given token in MATIC
     * @return a token price in MATIC
     */
    function latestAnswer() public view returns (int256) {
        // example : finPriceInUSD = 20 000 000 = $0.2 (8 decimals)
        uint256 tokenPriceInUSD = finPriceInUSD;
        uint256 maticPriceInUSD = 0;

        // get the "MATIC / USD" pair rate in USD with 8 decimals
        // example `maticPriceInUSD = 200000000` = $2 per MATIC
        (maticPriceInUSD, ) = _getMaticUSDPrice();

        // 10^(18+8) / 200000000 = 500 000 000 000 000 000
        // means $1 = 500 000 000 000 000 000 MATIC
        uint256 maticPerUSD = MATIC_NUMERATOR.div(maticPriceInUSD);

        // 500 000 000 000 000 000 * 20 000 000 / (10^8) = 100 000 000 000 000 000 MATIC = 0.1 MATIC
        uint256 finPricePerTokenInMATIC = maticPerUSD.mul(tokenPriceInUSD).div(USD_DECIMALS_MUL_DIV);
        return toInt256(finPricePerTokenInMATIC);
    }

    /**
     * @dev Get the price in USD (8 decimals) from ChainLink and validate that the price is
     *      not expired.
     * @return returns the price in USD and the timestamp
     */
    function _getMaticUSDPrice() internal view returns (uint256 priceInUSD, uint256 timestamp) {
        timestamp = maticUsdChainLinkPriceFeed.latestTimestamp();
        // price should not be older than 1 hour
        uint256 expired = now.sub(1 hours);
        require(timestamp > expired, "Token price expired");

        int256 priceInUSD_8_decimal = maticUsdChainLinkPriceFeed.latestAnswer();
        priceInUSD = toUint256(priceInUSD_8_decimal);
    }

    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < uint256(-1), "value doesn\'t fit in 256 bits");
        return int256(value);
    }

    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "value must be positive");
        return uint256(value);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract AggregatorInterface","name":"_maticUsdChainLinkPriceFeed","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"priceInUSD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"FINPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[],"name":"MATIC_NUMERATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ONE_MATIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"USD_DECIMALS_MUL_DIV","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finLastUpdateTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"finPriceInUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maticUsdChainLinkPriceFeed","outputs":[{"internalType":"contract AggregatorInterface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pairName","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setFINPriceInUSD","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610aae380380610aae8339818101604052602081101561003357600080fd5b505160006100486001600160e01b036100b716565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100bb565b3390565b6109e4806100ca6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80637156994b1161008c578063bd8c635411610066578063bd8c6354146101ea578063c50d8329146101f2578063e7293a4e146101fa578063f2fde38b14610202576100cf565b80637156994b146101a25780638da5cb5b146101aa5780638f32d59b146101ce576100cf565b806333e52d69146100d457806340794c3b146100ee57806350d25bcd1461016b5780635fff965d146101735780636a1a41321461017b578063715018a61461019a575b600080fd5b6100dc610228565b60408051918252519081900360200190f35b6100f6610234565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610130578181015183820152602001610118565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100dc610259565b6100dc6102c4565b6101986004803603602081101561019157600080fd5b50356102ca565b005b61019861036c565b6100dc61040f565b6101b261041e565b604080516001600160a01b039092168252519081900360200190f35b6101d661042d565b604080519115158252519081900360200190f35b6100dc610451565b6100dc610457565b6101b261045f565b6101986004803603602081101561021857600080fd5b50356001600160a01b031661046e565b670de0b6b3a764000081565b6040518060400160405280600981526020016846494e2f4d4154494360b81b81525081565b600254600090816102686104d3565b50905060006102886a52b7d2dcc80cd2e40000008363ffffffff61063616565b905060006102b06305f5e1006102a4848763ffffffff61068116565b9063ffffffff61063616565b90506102bb816106da565b94505050505090565b60025481565b6102d261042d565b610323576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600281905542600381905560408051838152602081019290925280517f0a02c679686505f54a76983e820fa34d6644a7cea40ff8a9e771dceb6512537f9281900390910190a150565b61037461042d565b6103c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6a52b7d2dcc80cd2e400000081565b6000546001600160a01b031690565b600080546001600160a01b0316610442610736565b6001600160a01b031614905090565b60035481565b6305f5e10081565b6001546001600160a01b031681565b61047661042d565b6104c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6104d08161073a565b50565b600080600160009054906101000a90046001600160a01b03166001600160a01b0316638205bf6a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561052457600080fd5b505afa158015610538573d6000803e3d6000fd5b505050506040513d602081101561054e57600080fd5b50519050600061056642610e1063ffffffff6107da16565b90508082116105b2576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881c1c9a58d948195e1c1a5c9959606a1b604482015290519081900360640190fd5b600154604080516350d25bcd60e01b815290516000926001600160a01b0316916350d25bcd916004808301926020929190829003018186803b1580156105f757600080fd5b505afa15801561060b573d6000803e3d6000fd5b505050506040513d602081101561062157600080fd5b5051905061062e8161081c565b935050509091565b600061067883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061086c565b90505b92915050565b6000826106905750600061067b565b8282028284828161069d57fe5b04146106785760405162461bcd60e51b815260040180806020018281038252602181526020018061098f6021913960400191505060405180910390fd5b60006000198210610732576040805162461bcd60e51b815260206004820152601d60248201527f76616c756520646f65736e27742066697420696e203235362062697473000000604482015290519081900360640190fd5b5090565b3390565b6001600160a01b03811661077f5760405162461bcd60e51b81526004018080602001828103825260268152602001806109696026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061067883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061090e565b600080821215610732576040805162461bcd60e51b815260206004820152601660248201527576616c7565206d75737420626520706f73697469766560501b604482015290519081900360640190fd5b600081836108f85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108bd5781810151838201526020016108a5565b50505050905090810190601f1680156108ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161090457fe5b0495945050505050565b600081848411156109605760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156108bd5781810151838201526020016108a5565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72315820cd2c2b8988e0db5a78de3f059eeea5de93a293b013d78d387967a1afec76756464736f6c634300050e0032000000000000000000000000ab594600376ec9fd91f8e885dadf0ce036862de0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80637156994b1161008c578063bd8c635411610066578063bd8c6354146101ea578063c50d8329146101f2578063e7293a4e146101fa578063f2fde38b14610202576100cf565b80637156994b146101a25780638da5cb5b146101aa5780638f32d59b146101ce576100cf565b806333e52d69146100d457806340794c3b146100ee57806350d25bcd1461016b5780635fff965d146101735780636a1a41321461017b578063715018a61461019a575b600080fd5b6100dc610228565b60408051918252519081900360200190f35b6100f6610234565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610130578181015183820152602001610118565b50505050905090810190601f16801561015d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100dc610259565b6100dc6102c4565b6101986004803603602081101561019157600080fd5b50356102ca565b005b61019861036c565b6100dc61040f565b6101b261041e565b604080516001600160a01b039092168252519081900360200190f35b6101d661042d565b604080519115158252519081900360200190f35b6100dc610451565b6100dc610457565b6101b261045f565b6101986004803603602081101561021857600080fd5b50356001600160a01b031661046e565b670de0b6b3a764000081565b6040518060400160405280600981526020016846494e2f4d4154494360b81b81525081565b600254600090816102686104d3565b50905060006102886a52b7d2dcc80cd2e40000008363ffffffff61063616565b905060006102b06305f5e1006102a4848763ffffffff61068116565b9063ffffffff61063616565b90506102bb816106da565b94505050505090565b60025481565b6102d261042d565b610323576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600281905542600381905560408051838152602081019290925280517f0a02c679686505f54a76983e820fa34d6644a7cea40ff8a9e771dceb6512537f9281900390910190a150565b61037461042d565b6103c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6a52b7d2dcc80cd2e400000081565b6000546001600160a01b031690565b600080546001600160a01b0316610442610736565b6001600160a01b031614905090565b60035481565b6305f5e10081565b6001546001600160a01b031681565b61047661042d565b6104c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6104d08161073a565b50565b600080600160009054906101000a90046001600160a01b03166001600160a01b0316638205bf6a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561052457600080fd5b505afa158015610538573d6000803e3d6000fd5b505050506040513d602081101561054e57600080fd5b50519050600061056642610e1063ffffffff6107da16565b90508082116105b2576040805162461bcd60e51b8152602060048201526013602482015272151bdad95b881c1c9a58d948195e1c1a5c9959606a1b604482015290519081900360640190fd5b600154604080516350d25bcd60e01b815290516000926001600160a01b0316916350d25bcd916004808301926020929190829003018186803b1580156105f757600080fd5b505afa15801561060b573d6000803e3d6000fd5b505050506040513d602081101561062157600080fd5b5051905061062e8161081c565b935050509091565b600061067883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061086c565b90505b92915050565b6000826106905750600061067b565b8282028284828161069d57fe5b04146106785760405162461bcd60e51b815260040180806020018281038252602181526020018061098f6021913960400191505060405180910390fd5b60006000198210610732576040805162461bcd60e51b815260206004820152601d60248201527f76616c756520646f65736e27742066697420696e203235362062697473000000604482015290519081900360640190fd5b5090565b3390565b6001600160a01b03811661077f5760405162461bcd60e51b81526004018080602001828103825260268152602001806109696026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061067883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061090e565b600080821215610732576040805162461bcd60e51b815260206004820152601660248201527576616c7565206d75737420626520706f73697469766560501b604482015290519081900360640190fd5b600081836108f85760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108bd5781810151838201526020016108a5565b50505050905090810190601f1680156108ea5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161090457fe5b0495945050505050565b600081848411156109605760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156108bd5781810151838201526020016108a5565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72315820cd2c2b8988e0db5a78de3f059eeea5de93a293b013d78d387967a1afec76756464736f6c634300050e0032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000ab594600376ec9fd91f8e885dadf0ce036862de0

-----Decoded View---------------
Arg [0] : _maticUsdChainLinkPriceFeed (address): 0xAB594600376Ec9fD91F8e885dADF0CE036862dE0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ab594600376ec9fd91f8e885dadf0ce036862de0


Deployed Bytecode Sourcemap

9565:3343:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9565:3343:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10022:44;;;:::i;:::-;;;;;;;;;;;;;;;;9968:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;9968:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11040:846;;;:::i;9804:28::-;;;:::i;10705:209::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10705:209:0;;:::i;:::-;;8257:140;;;:::i;10212:74::-;;;:::i;7446:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;7446:79:0;;;;;;;;;;;;;;7812:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;9882:37;;;:::i;10151:54::-;;;:::i;9688:53::-;;;:::i;8552:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8552:109:0;-1:-1:-1;;;;;8552:109:0;;:::i;10022:44::-;10058:8;10022:44;:::o;9968:45::-;;;;;;;;;;;;;;-1:-1:-1;;;9968:45:0;;;;:::o;11040:846::-;11199:13;;11085:6;;;11417:19;:17;:19::i;:::-;-1:-1:-1;11395:41:0;-1:-1:-1;11562:19:0;11584:36;10254:32;11395:41;11584:36;:19;:36;:::i;:::-;11562:58;-1:-1:-1;11735:31:0;11769:58;10198:7;11769:32;11562:58;11785:15;11769:32;:15;:32;:::i;:::-;:36;:58;:36;:58;:::i;:::-;11735:92;;11845:33;11854:23;11845:8;:33::i;:::-;11838:40;;;;;;11040:846;:::o;9804:28::-;;;;:::o;10705:209::-;7658:9;:7;:9::i;:::-;7650:54;;;;;-1:-1:-1;;;7650:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10775:13;:22;;;10833:3;10808:22;:28;;;10852:54;;;;;;;;;;;;;;;;;;;;;;;;;10705:209;:::o;8257:140::-;7658:9;:7;:9::i;:::-;7650:54;;;;;-1:-1:-1;;;7650:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8356:1;8340:6;;8319:40;;-1:-1:-1;;;;;8340:6:0;;;;8319:40;;8356:1;;8319:40;8387:1;8370:19;;-1:-1:-1;;;;;;8370:19:0;;;8257:140::o;10212:74::-;10254:32;10212:74;:::o;7446:79::-;7484:7;7511:6;-1:-1:-1;;;;;7511:6:0;7446:79;:::o;7812:94::-;7852:4;7892:6;;-1:-1:-1;;;;;7892:6:0;7876:12;:10;:12::i;:::-;-1:-1:-1;;;;;7876:22:0;;7869:29;;7812:94;:::o;9882:37::-;;;;:::o;10151:54::-;10198:7;10151:54;:::o;9688:53::-;;;-1:-1:-1;;;;;9688:53:0;;:::o;8552:109::-;7658:9;:7;:9::i;:::-;7650:54;;;;;-1:-1:-1;;;7650:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8625:28;8644:8;8625:18;:28::i;:::-;8552:109;:::o;12090:462::-;12142:18;12162:17;12204:26;;;;;;;;;-1:-1:-1;;;;;12204:26:0;-1:-1:-1;;;;;12204:42:0;;:44;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12204:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12204:44:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12204:44:0;;-1:-1:-1;12309:15:0;12327:16;:3;12335:7;12327:16;:7;:16;:::i;:::-;12309:34;;12374:7;12362:9;:19;12354:51;;;;;-1:-1:-1;;;12354:51:0;;;;;;;;;;;;-1:-1:-1;;;12354:51:0;;;;;;;;;;;;;;;12448:26;;:41;;;-1:-1:-1;;;12448:41:0;;;;12418:27;;-1:-1:-1;;;;;12448:26:0;;:39;;:41;;;;;;;;;;;;;;:26;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;12448:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12448:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12448:41:0;;-1:-1:-1;12513:31:0;12448:41;12513:9;:31::i;:::-;12500:44;;12090:462;;;;:::o;3172:132::-;3230:7;3257:39;3261:1;3264;3257:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3250:46;;3172:132;;;;;:::o;2233:471::-;2291:7;2536:6;2532:47;;-1:-1:-1;2566:1:0;2559:8;;2532:47;2603:5;;;2607:1;2603;:5;:1;2627:5;;;;;:10;2619:56;;;;-1:-1:-1;;;2619:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12560:176;12616:6;-1:-1:-1;;12643:5:0;:19;12635:62;;;;;-1:-1:-1;;;12635:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12722:5:0;12560:176::o;6237:98::-;6317:10;6237:98;:::o;8767:229::-;-1:-1:-1;;;;;8841:22:0;;8833:73;;;;-1:-1:-1;;;8833:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8943:6;;;8922:38;;-1:-1:-1;;;;;8922:38:0;;;;8943:6;;;8922:38;;;8971:6;:17;;-1:-1:-1;;;;;;8971:17:0;-1:-1:-1;;;;;8971:17:0;;;;;;;;;;8767:229::o;1317:136::-;1375:7;1402:43;1406:1;1409;1402:43;;;;;;;;;;;;;;;;;:3;:43::i;12744:161::-;12800:7;12837:1;12828:5;:10;;12820:45;;;;;-1:-1:-1;;;12820:45:0;;;;;;;;;;;;-1:-1:-1;;;12820:45:0;;;;;;;;;;;;;;3834:345;3920:7;4022:12;4015:5;4007:28;;;;-1:-1:-1;;;4007:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4007:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4046:9;4062:1;4058;:5;;;;;;;3834:345;-1:-1:-1;;;;;3834:345:0:o;1790:192::-;1876:7;1912:12;1904:6;;;;1896:29;;;;-1:-1:-1;;;1896:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;1896:29:0;-1:-1:-1;;;1948:5:0;;;1790:192::o

Swarm Source

bzzr://cd2c2b8988e0db5a78de3f059eeea5de93a293b013d78d387967a1afec767564

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.