ETH Price: $2,673.91 (-0.63%)

Contract

0x3F7C656C0C3F547Cb18D7a15318e98Ae44Ed8cbc
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040109411792020-09-26 23:35:221463 days ago1601163322IN
 Create: JumpRateModelV2
0 ETH0.0261345645

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
JumpRateModelV2

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2020-09-27
*/

// File: contracts\InterestRateModel.sol

pragma solidity ^0.5.16;

/**
  * @title Compound's InterestRateModel Interface
  * @author Compound
  */
contract InterestRateModel {
    /// @notice Indicator that this is an InterestRateModel contract (for inspection)
    bool public constant isInterestRateModel = true;

    /**
      * @notice Calculates the current borrow interest rate per block
      * @param cash The total amount of cash the market has
      * @param borrows The total amount of borrows the market has outstanding
      * @param reserves The total amount of reserves the market has
      * @return The borrow rate per block (as a percentage, and scaled by 1e18)
      */
    function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint);

    /**
      * @notice Calculates the current supply interest rate per block
      * @param cash The total amount of cash the market has
      * @param borrows The total amount of borrows the market has outstanding
      * @param reserves The total amount of reserves the market has
      * @param reserveFactorMantissa The current reserve factor the market has
      * @return The supply rate per block (as a percentage, and scaled by 1e18)
      */
    function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external view returns (uint);

}

// File: contracts\SafeMath.sol

pragma solidity ^0.5.16;

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @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 addition of two unsigned integers, reverting with custom message on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, errorMessage);

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction underflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    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 multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) 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, errorMessage);

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts with custom message on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts\JumpRateModelV2.sol

pragma solidity ^0.5.16;



/**
  * @title Compound's JumpRateModel Contract V2
  * @author Compound (modified by Dharma Labs)
  * @notice Version 2 modifies Version 1 by enabling updateable parameters.
  */
contract JumpRateModelV2 is InterestRateModel {
    using SafeMath for uint;

    event NewInterestParams(uint baseRatePerBlock, uint multiplierPerBlock, uint jumpMultiplierPerBlock, uint kink);

    /**
     * @notice The address of the owner, i.e. the Timelock contract, which can update parameters directly
     */
    address public owner;

    /**
     * @notice The approximate number of blocks per year that is assumed by the interest rate model
     */
    uint public constant blocksPerYear = 2102400;

    /**
     * @notice The multiplier of utilization rate that gives the slope of the interest rate
     */
    uint public multiplierPerBlock;

    /**
     * @notice The base interest rate which is the y-intercept when utilization rate is 0
     */
    uint public baseRatePerBlock;

    /**
     * @notice The multiplierPerBlock after hitting a specified utilization point
     */
    uint public jumpMultiplierPerBlock;

    /**
     * @notice The utilization point at which the jump multiplier is applied
     */
    uint public kink;

    /**
     * @notice Construct an interest rate model
     * @param baseRatePerYear The approximate target base APR, as a mantissa (scaled by 1e18)
     * @param multiplierPerYear The rate of increase in interest rate wrt utilization (scaled by 1e18)
     * @param jumpMultiplierPerYear The multiplierPerBlock after hitting a specified utilization point
     * @param kink_ The utilization point at which the jump multiplier is applied
     * @param owner_ The address of the owner, i.e. the Timelock contract (which has the ability to update parameters directly)
     */
    constructor(uint baseRatePerYear, uint multiplierPerYear, uint jumpMultiplierPerYear, uint kink_, address owner_) public {
        owner = owner_;

        updateJumpRateModelInternal(baseRatePerYear,  multiplierPerYear, jumpMultiplierPerYear, kink_);
    }

    /**
     * @notice Update the parameters of the interest rate model (only callable by owner, i.e. Timelock)
     * @param baseRatePerYear The approximate target base APR, as a mantissa (scaled by 1e18)
     * @param multiplierPerYear The rate of increase in interest rate wrt utilization (scaled by 1e18)
     * @param jumpMultiplierPerYear The multiplierPerBlock after hitting a specified utilization point
     * @param kink_ The utilization point at which the jump multiplier is applied
     */
    function updateJumpRateModel(uint baseRatePerYear, uint multiplierPerYear, uint jumpMultiplierPerYear, uint kink_) external {
        require(msg.sender == owner, "only the owner may call this function.");

        updateJumpRateModelInternal(baseRatePerYear, multiplierPerYear, jumpMultiplierPerYear, kink_);
    }

    /**
     * @notice Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)`
     * @param cash The amount of cash in the market
     * @param borrows The amount of borrows in the market
     * @param reserves The amount of reserves in the market (currently unused)
     * @return The utilization rate as a mantissa between [0, 1e18]
     */
    function utilizationRate(uint cash, uint borrows, uint reserves) public pure returns (uint) {
        // Utilization rate is 0 when there are no borrows
        if (borrows == 0) {
            return 0;
        }

        return borrows.mul(1e18).div(cash.add(borrows).sub(reserves));
    }

    /**
     * @notice Calculates the current borrow rate per block, with the error code expected by the market
     * @param cash The amount of cash in the market
     * @param borrows The amount of borrows in the market
     * @param reserves The amount of reserves in the market
     * @return The borrow rate percentage per block as a mantissa (scaled by 1e18)
     */
    function getBorrowRate(uint cash, uint borrows, uint reserves) public view returns (uint) {
        uint util = utilizationRate(cash, borrows, reserves);

        if (util <= kink) {
            return util.mul(multiplierPerBlock).div(1e18).add(baseRatePerBlock);
        } else {
            uint normalRate = kink.mul(multiplierPerBlock).div(1e18).add(baseRatePerBlock);
            uint excessUtil = util.sub(kink);
            return excessUtil.mul(jumpMultiplierPerBlock).div(1e18).add(normalRate);
        }
    }

    /**
     * @notice Calculates the current supply rate per block
     * @param cash The amount of cash in the market
     * @param borrows The amount of borrows in the market
     * @param reserves The amount of reserves in the market
     * @param reserveFactorMantissa The current reserve factor for the market
     * @return The supply rate percentage per block as a mantissa (scaled by 1e18)
     */
    function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) public view returns (uint) {
        uint oneMinusReserveFactor = uint(1e18).sub(reserveFactorMantissa);
        uint borrowRate = getBorrowRate(cash, borrows, reserves);
        uint rateToPool = borrowRate.mul(oneMinusReserveFactor).div(1e18);
        return utilizationRate(cash, borrows, reserves).mul(rateToPool).div(1e18);
    }

    /**
     * @notice Internal function to update the parameters of the interest rate model
     * @param baseRatePerYear The approximate target base APR, as a mantissa (scaled by 1e18)
     * @param multiplierPerYear The rate of increase in interest rate wrt utilization (scaled by 1e18)
     * @param jumpMultiplierPerYear The multiplierPerBlock after hitting a specified utilization point
     * @param kink_ The utilization point at which the jump multiplier is applied
     */
    function updateJumpRateModelInternal(uint baseRatePerYear, uint multiplierPerYear, uint jumpMultiplierPerYear, uint kink_) internal {
        baseRatePerBlock = baseRatePerYear.div(blocksPerYear);
        multiplierPerBlock = (multiplierPerYear.mul(1e18)).div(blocksPerYear.mul(kink_));
        jumpMultiplierPerBlock = jumpMultiplierPerYear.div(blocksPerYear);
        kink = kink_;

        emit NewInterestParams(baseRatePerBlock, multiplierPerBlock, jumpMultiplierPerBlock, kink);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"baseRatePerYear","type":"uint256"},{"internalType":"uint256","name":"multiplierPerYear","type":"uint256"},{"internalType":"uint256","name":"jumpMultiplierPerYear","type":"uint256"},{"internalType":"uint256","name":"kink_","type":"uint256"},{"internalType":"address","name":"owner_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"baseRatePerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"multiplierPerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"jumpMultiplierPerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"kink","type":"uint256"}],"name":"NewInterestParams","type":"event"},{"constant":true,"inputs":[],"name":"baseRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"blocksPerYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"cash","type":"uint256"},{"internalType":"uint256","name":"borrows","type":"uint256"},{"internalType":"uint256","name":"reserves","type":"uint256"}],"name":"getBorrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"cash","type":"uint256"},{"internalType":"uint256","name":"borrows","type":"uint256"},{"internalType":"uint256","name":"reserves","type":"uint256"},{"internalType":"uint256","name":"reserveFactorMantissa","type":"uint256"}],"name":"getSupplyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isInterestRateModel","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"jumpMultiplierPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kink","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"multiplierPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"baseRatePerYear","type":"uint256"},{"internalType":"uint256","name":"multiplierPerYear","type":"uint256"},{"internalType":"uint256","name":"jumpMultiplierPerYear","type":"uint256"},{"internalType":"uint256","name":"kink_","type":"uint256"}],"name":"updateJumpRateModel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"cash","type":"uint256"},{"internalType":"uint256","name":"borrows","type":"uint256"},{"internalType":"uint256","name":"reserves","type":"uint256"}],"name":"utilizationRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"}]

608060405234801561001057600080fd5b50604051610a4c380380610a4c833981810160405260a081101561003357600080fd5b508051602082015160408301516060840151608090940151600080546001600160a01b0319166001600160a01b0383161790559293919290919061007985858585610083565b50505050506102b2565b61009d622014808561016660201b6104731790919060201c565b6002556100ec6100bb62201480836101b7602090811b61041117901c565b6100da670de0b6b3a7640000866101b760201b6104111790919060201c565b61016660201b6104731790919060201c565b6001556101078262201480610166602090811b61047317901c565b60038190556004829055600254600154604080519283526020830191909152818101929092526060810183905290517f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9181900360800190a150505050565b60006101ae83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061021060201b60201c565b90505b92915050565b6000826101c6575060006101b1565b828202828482816101d357fe5b04146101ae5760405162461bcd60e51b8152600401808060200182810382526021815260200180610a2b6021913960400191505060405180910390fd5b6000818361029c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610261578181015183820152602001610249565b50505050905090810190601f16801561028e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816102a857fe5b0495945050505050565b61076a806102c16000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80638da5cb5b116100715780638da5cb5b14610167578063a385fb961461018b578063b816881614610193578063b9f9850a146101c2578063f14039de146101ca578063fd2da339146101d2576100a9565b806315f24053146100ae5780632037f3e7146100e95780632191f92a1461011a5780636e71e2d8146101365780638726bb891461015f575b600080fd5b6100d7600480360360608110156100c457600080fd5b50803590602081013590604001356101da565b60408051918252519081900360200190f35b610118600480360360808110156100ff57600080fd5b50803590602081013590604081013590606001356102b2565b005b61012261030d565b604080519115158252519081900360200190f35b6100d76004803603606081101561014c57600080fd5b5080359060208101359060400135610312565b6100d7610364565b61016f61036a565b604080516001600160a01b039092168252519081900360200190f35b6100d7610379565b6100d7600480360360808110156101a957600080fd5b5080359060208101359060408101359060600135610380565b6100d76103ff565b6100d7610405565b6100d761040b565b6000806101e8858585610312565b9050600454811161023a57610232600254610226670de0b6b3a764000061021a6001548661041190919063ffffffff16565b9063ffffffff61047316565b9063ffffffff6104b516565b9150506102ab565b6000610265600254610226670de0b6b3a764000061021a60015460045461041190919063ffffffff16565b9050600061027e6004548461050f90919063ffffffff16565b90506102a582610226670de0b6b3a764000061021a6003548661041190919063ffffffff16565b93505050505b9392505050565b6000546001600160a01b031633146102fb5760405162461bcd60e51b81526004018080602001828103825260268152602001806107106026913960400191505060405180910390fd5b61030784848484610551565b50505050565b600181565b600082610321575060006102ab565b61035c61034483610338878763ffffffff6104b516565b9063ffffffff61050f16565b61021a85670de0b6b3a764000063ffffffff61041116565b949350505050565b60015481565b6000546001600160a01b031681565b6220148081565b60008061039b670de0b6b3a76400008463ffffffff61050f16565b905060006103aa8787876101da565b905060006103ca670de0b6b3a764000061021a848663ffffffff61041116565b90506103f3670de0b6b3a764000061021a836103e78c8c8c610312565b9063ffffffff61041116565b98975050505050505050565b60035481565b60025481565b60045481565b6000826104205750600061046d565b8282028284828161042d57fe5b041461046a5760405162461bcd60e51b81526004018080602001828103825260218152602001806106ef6021913960400191505060405180910390fd5b90505b92915050565b600061046a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506105f2565b60008282018381101561046a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061046a83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250610694565b610564846220148063ffffffff61047316565b60025561057d610344622014808363ffffffff61041116565b600155610593826220148063ffffffff61047316565b60038190556004829055600254600154604080519283526020830191909152818101929092526060810183905290517f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9181900360800190a150505050565b6000818361067e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561064357818101518382015260200161062b565b50505050905090810190601f1680156106705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161068a57fe5b0495945050505050565b600081848411156106e65760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561064357818101518382015260200161062b565b50505090039056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776f6e6c7920746865206f776e6572206d61792063616c6c20746869732066756e6374696f6e2ea265627a7a72315820e1f4a17e11f8d89aea7bf81335ba22f74e74b5e83561fdd9fc97b6c24d6115a764736f6c63430005100032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7700000000000000000000000000000000000000000000000000470de4df7dd980000000000000000000000000000000000000000000000000031f5c4ed25fde4000000000000000000000000000000000000000000000000018fae276939f58800000000000000000000000000000000000000000000000000a688906bd8b000000000000000000000000000079faee4b277d07ce23e2387ef67ef45acc62f156

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80638da5cb5b116100715780638da5cb5b14610167578063a385fb961461018b578063b816881614610193578063b9f9850a146101c2578063f14039de146101ca578063fd2da339146101d2576100a9565b806315f24053146100ae5780632037f3e7146100e95780632191f92a1461011a5780636e71e2d8146101365780638726bb891461015f575b600080fd5b6100d7600480360360608110156100c457600080fd5b50803590602081013590604001356101da565b60408051918252519081900360200190f35b610118600480360360808110156100ff57600080fd5b50803590602081013590604081013590606001356102b2565b005b61012261030d565b604080519115158252519081900360200190f35b6100d76004803603606081101561014c57600080fd5b5080359060208101359060400135610312565b6100d7610364565b61016f61036a565b604080516001600160a01b039092168252519081900360200190f35b6100d7610379565b6100d7600480360360808110156101a957600080fd5b5080359060208101359060408101359060600135610380565b6100d76103ff565b6100d7610405565b6100d761040b565b6000806101e8858585610312565b9050600454811161023a57610232600254610226670de0b6b3a764000061021a6001548661041190919063ffffffff16565b9063ffffffff61047316565b9063ffffffff6104b516565b9150506102ab565b6000610265600254610226670de0b6b3a764000061021a60015460045461041190919063ffffffff16565b9050600061027e6004548461050f90919063ffffffff16565b90506102a582610226670de0b6b3a764000061021a6003548661041190919063ffffffff16565b93505050505b9392505050565b6000546001600160a01b031633146102fb5760405162461bcd60e51b81526004018080602001828103825260268152602001806107106026913960400191505060405180910390fd5b61030784848484610551565b50505050565b600181565b600082610321575060006102ab565b61035c61034483610338878763ffffffff6104b516565b9063ffffffff61050f16565b61021a85670de0b6b3a764000063ffffffff61041116565b949350505050565b60015481565b6000546001600160a01b031681565b6220148081565b60008061039b670de0b6b3a76400008463ffffffff61050f16565b905060006103aa8787876101da565b905060006103ca670de0b6b3a764000061021a848663ffffffff61041116565b90506103f3670de0b6b3a764000061021a836103e78c8c8c610312565b9063ffffffff61041116565b98975050505050505050565b60035481565b60025481565b60045481565b6000826104205750600061046d565b8282028284828161042d57fe5b041461046a5760405162461bcd60e51b81526004018080602001828103825260218152602001806106ef6021913960400191505060405180910390fd5b90505b92915050565b600061046a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506105f2565b60008282018381101561046a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061046a83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250610694565b610564846220148063ffffffff61047316565b60025561057d610344622014808363ffffffff61041116565b600155610593826220148063ffffffff61047316565b60038190556004829055600254600154604080519283526020830191909152818101929092526060810183905290517f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9181900360800190a150505050565b6000818361067e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561064357818101518382015260200161062b565b50505050905090810190601f1680156106705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161068a57fe5b0495945050505050565b600081848411156106e65760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561064357818101518382015260200161062b565b50505090039056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776f6e6c7920746865206f776e6572206d61792063616c6c20746869732066756e6374696f6e2ea265627a7a72315820e1f4a17e11f8d89aea7bf81335ba22f74e74b5e83561fdd9fc97b6c24d6115a764736f6c63430005100032

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

00000000000000000000000000000000000000000000000000470de4df7dd980000000000000000000000000000000000000000000000000031f5c4ed25fde4000000000000000000000000000000000000000000000000018fae276939f58800000000000000000000000000000000000000000000000000a688906bd8b000000000000000000000000000079faee4b277d07ce23e2387ef67ef45acc62f156

-----Decoded View---------------
Arg [0] : baseRatePerYear (uint256): 19999999999728000
Arg [1] : multiplierPerYear (uint256): 224999999998516800
Arg [2] : jumpMultiplierPerYear (uint256): 1799999999998646400
Arg [3] : kink_ (uint256): 750000000000000000
Arg [4] : owner_ (address): 0x79FAee4B277d07CE23E2387EF67ef45acC62f156

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000470de4df7dd980
Arg [1] : 000000000000000000000000000000000000000000000000031f5c4ed25fde40
Arg [2] : 00000000000000000000000000000000000000000000000018fae276939f5880
Arg [3] : 0000000000000000000000000000000000000000000000000a688906bd8b0000
Arg [4] : 00000000000000000000000079faee4b277d07ce23e2387ef67ef45acc62f156


Deployed Bytecode Sourcemap

8296:6226:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8296:6226:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12142:529;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12142:529:0;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;10748:319;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;10748:319:0;;;;;;;;;;;;;;;;;:::i;:::-;;277:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;11457:297;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11457:297:0;;;;;;;;;;;;:::i;8938:30::-;;;:::i;8626:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;8626:20:0;;;;;;;;;;;;;;8774:44;;;:::i;13094:430::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;13094:430:0;;;;;;;;;;;;;;;;;:::i;9224:34::-;;;:::i;9086:28::-;;;:::i;9363:16::-;;;:::i;12142:529::-;12226:4;12243:9;12255:40;12271:4;12277:7;12286:8;12255:15;:40::i;:::-;12243:52;;12320:4;;12312;:12;12308:356;;12348:60;12391:16;;12348:38;12381:4;12348:28;12357:18;;12348:4;:8;;:28;;;;:::i;:::-;:32;:38;:32;:38;:::i;:::-;:42;:60;:42;:60;:::i;:::-;12341:67;;;;;12308:356;12441:15;12459:60;12502:16;;12459:38;12492:4;12459:28;12468:18;;12459:4;;:8;;:28;;;;:::i;:60::-;12441:78;;12534:15;12552:14;12561:4;;12552;:8;;:14;;;;:::i;:::-;12534:32;;12588:64;12641:10;12588:48;12631:4;12588:38;12603:22;;12588:10;:14;;:38;;;;:::i;:64::-;12581:71;;;;;12142:529;;;;;;:::o;10748:319::-;10905:5;;-1:-1:-1;;;;;10905:5:0;10891:10;:19;10883:70;;;;-1:-1:-1;;;10883:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10966:93;10994:15;11011:17;11030:21;11053:5;10966:27;:93::i;:::-;10748:319;;;;:::o;277:47::-;320:4;277:47;:::o;11457:297::-;11543:4;11624:12;11620:53;;-1:-1:-1;11660:1:0;11653:8;;11620:53;11692:54;11714:31;11736:8;11714:17;:4;11723:7;11714:17;:8;:17;:::i;:::-;:21;:31;:21;:31;:::i;:::-;11692:17;:7;11704:4;11692:17;:11;:17;:::i;:54::-;11685:61;11457:297;-1:-1:-1;;;;11457:297:0:o;8938:30::-;;;;:::o;8626:20::-;;;-1:-1:-1;;;;;8626:20:0;;:::o;8774:44::-;8811:7;8774:44;:::o;13094:430::-;13206:4;;13252:37;13257:4;13267:21;13252:37;:14;:37;:::i;:::-;13223:66;;13300:15;13318:38;13332:4;13338:7;13347:8;13318:13;:38::i;:::-;13300:56;-1:-1:-1;13367:15:0;13385:47;13427:4;13385:37;13300:56;13400:21;13385:37;:14;:37;:::i;:47::-;13367:65;;13450:66;13511:4;13450:56;13495:10;13450:40;13466:4;13472:7;13481:8;13450:15;:40::i;:::-;:44;:56;:44;:56;:::i;:66::-;13443:73;13094:430;-1:-1:-1;;;;;;;;13094:430:0:o;9224:34::-;;;;:::o;9086:28::-;;;;:::o;9363:16::-;;;;:::o;4177:471::-;4235:7;4480:6;4476:47;;-1:-1:-1;4510:1:0;4503:8;;4476:47;4547:5;;;4551:1;4547;:5;:1;4571:5;;;;;:10;4563:56;;;;-1:-1:-1;;;4563:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4639:1;-1:-1:-1;4177:471:0;;;;;:::o;5835:132::-;5893:7;5920:39;5924:1;5927;5920:39;;;;;;;;;;;;;;;;;:3;:39::i;2423:181::-;2481:7;2513:5;;;2537:6;;;;2529:46;;;;;-1:-1:-1;;;2529:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;3316:137;3374:7;3401:44;3405:1;3408;3401:44;;;;;;;;;;;;;;;;;:3;:44::i;14022:497::-;14184:34;:15;8811:7;14184:34;:19;:34;:::i;:::-;14165:16;:53;14250:59;14284:24;8811:7;14302:5;14284:24;:17;:24;:::i;14250:59::-;14229:18;:80;14345:40;:21;8811:7;14345:40;:25;:40;:::i;:::-;14320:22;:65;;;14396:4;:12;;;14444:16;;14462:18;;14426:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14022:497;;;;:::o;6455:345::-;6541:7;6643:12;6636:5;6628:28;;;;-1:-1:-1;;;6628: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;6628:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6667:9;6683:1;6679;:5;;;;;;;6455:345;-1:-1:-1;;;;;6455:345:0:o;3742:192::-;3828:7;3864:12;3856:6;;;;3848:29;;;;-1:-1:-1;;;3848:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;3848:29:0;-1:-1:-1;;;3900:5:0;;;3742:192::o

Swarm Source

bzzr://e1f4a17e11f8d89aea7bf81335ba22f74e74b5e83561fdd9fc97b6c24d6115a7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.