Contract 0xa8cd5d59827514bcf343ec19f531ce1788ea48f8 15

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd4c450d2eee3b2731b16b9a8b66b22a68148db1e050332cbf80c77e3300689f6Transfer Ownersh...29231932021-11-09 9:34:34870 days 16 hrs agoHundred Finance: Admin IN  0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH0.000875574044 ETH1.264208026
0x1c9ef7aecc97910d09dc79d54daf13eb18d415547ba54aa12986f7974da8f55f0x6080604013391212021-09-20 11:15:17920 days 15 hrs ago0xb16a11442878d6f1ef202ae63233a7c13e98fd7f IN  Contract Creation0 ETH0.005446548126 ETH0.556195252
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1f1f0ab9d938492018036b984b0873fb98bc02a3ff868221ef7da725426db3a2715782452023-03-19 22:55:59375 days 3 hrs ago Hundred Finance: WBTC 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x01d9bfbbc8f158c6090d6a8d3d59e723ee80b521d6c41fea62185b5dbadc0de8715605542023-03-19 21:41:10375 days 4 hrs ago Hundred Finance: WBTC 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x6953e996ba07fdfe486baeb2e5e58bb082d967e45c297f4ec41b3446a6bdedd0710670422023-03-18 11:01:28376 days 15 hrs ago Hundred Finance: hLINK 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x01f285a73bdd6cd171d888a3b1bab40bf3e0d618d01ef267c822ec8665d43d38710644502023-03-18 10:50:34376 days 15 hrs ago Hundred Finance: hLINK 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x300ad956a1ae3f5e901bc479fb66a167304f29a0c3a0b42dfb63a0f51fe4fb77707426702023-03-17 12:21:22377 days 14 hrs ago Hundred Finance: hLINK 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x7a97390a07a82738e510f7796f4fd1f4c3455fc6c3bad9d0c82356f1247b09a8707414042023-03-17 12:16:09377 days 14 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x5fc3de65045656006b302a624669d44c99577de8ebb270df28d5dc65d8202d9c702003672023-03-15 21:59:19379 days 4 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x3cec8379ba84d4b337fb06867aefae2260ae24c3aac64aabe003496bbf659488701879312023-03-15 21:00:26379 days 5 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x0a6424c6f3ee3fd629dca738ec176ff68f7b3fa38cbe80f46a1e307782f8c97e699978742023-03-15 7:13:57379 days 19 hrs ago Hundred Finance: hLINK 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xe27d74150f6aad6630808c4c0332804210ee9f2c28ecebdb28f00e34dbcd741b694936942023-03-13 16:45:57381 days 9 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x2ad9556bebe50cb9be5e82bfb5d9ee9520a48940504e311af3d35b2362568a6e694624522023-03-13 14:30:16381 days 11 hrs ago Hundred Finance: hLINK 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xac1c9d302df16c5e6eccac1abfacd364028cfda34232726b48be203ad1be81c3687860392023-03-11 7:56:08383 days 18 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xbab46be978d5a4fd1445352f40de53dec1415043e7b2b94823f2fb8b317c466f687389452023-03-11 4:21:04383 days 22 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xa19975a8736cbf7a20902365f6689b6133e3bad9ebe639de2985b55116659947680375992023-03-08 23:06:19386 days 3 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x76a68ea9017c258da8555665b78c0dee8c8a443333b9e22ff759409054d99024679938792023-03-08 19:11:29386 days 7 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xaddd3013a03962b3707f2ccfaee564e752a07b5a2fd0d51af376fa1d605a777e677122382023-03-07 21:29:32387 days 4 hrs ago Hundred Finance: hMIM 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x6df864552f82f5033a155b7c7076aa050f821c79fa0245e2f00bf81c1aea1555665802302023-03-04 4:37:15390 days 21 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xb46b51a55019f5dbacbaf3fed7fad17d9040bed7e89f5b09a0a40fb6f7c8ed02662155282023-03-03 0:49:00392 days 1 hr ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x1e0253fc0f860210832b45184248031811ec4cda065e9cfc03eb0a4ccee4c1cc660545042023-03-02 12:09:42392 days 14 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x32cc389daa8f3b2a0a37ea135fd0afb65351ae62eb4b3d2d3ed54787858190b2660427022023-03-02 11:18:36392 days 15 hrs ago Hundred Finance: hMIM 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x5434a4e5c7bc1bbdcdefc3e154ee6e8a5e54b5fd2ed4b258d00c042734fa1d5c660061962023-03-02 8:43:27392 days 17 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0xe982f7a84577f00efe010c0ce6882d152eb6b8382e29a8ebdd76016a1d769d60660060202023-03-02 8:42:43392 days 17 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x00510696ac751b7d37b1a17da923b82f14aa178338e8ff86e8335ee49daf8514659749842023-03-02 6:31:59392 days 19 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x266dee8d114e099a2fe8415d6ab8290f4c0ed7e9234df099c06c05ccf01372af659393682023-03-02 4:00:22392 days 22 hrs ago Hundred Finance: hFRAX 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
0x22606a54b898e1df386fdb81f6a87ed8cdd395c90e742b5f35ea989a3e0af65b659364492023-03-02 3:47:39392 days 22 hrs ago Hundred Finance: hAETH 0xa8cd5d59827514bcf343ec19f531ce1788ea48f80 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xE4e43864ea18d5E5211352a4B810383460aB7fcC
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
JumpRateModelV4

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 5 : JumpRateModelV4.sol
pragma solidity ^0.5.16;

import "./InterestRateModel.sol";
import "./SafeMath.sol";
import "./Ownership/Ownable.sol";

/**
  * @title Compound's JumpRateModel Contract V3
  * @author Compound (modified by Dharma Labs)
  * @notice Version 2 modifies Version 1 by enabling updateable parameters.
  * @notice Version 3 includes Ownable and have updatable blocksPerYear.
  * @notice Version 4 moves blocksPerYear to the constructor.
  */
contract JumpRateModelV4 is InterestRateModel, Ownable {
    using SafeMath for uint;

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

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

    /**
     * @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 A name for user-friendliness, e.g. WBTC
     */
    string public name;

    /**
     * @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_ Sets the owner of the contract to someone other than msgSender
     * @param name_ User-friendly name for the new contract
     */
    constructor(uint blocksPerYear_, uint baseRatePerYear, uint multiplierPerYear, uint jumpMultiplierPerYear, uint kink_, 
            address owner_, string memory name_) public {
        blocksPerYear = blocksPerYear_;
        name = name_;
        _transferOwnership(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 onlyOwner {
        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 Updates the blocksPerYear in order to make interest calculations simpler
     * @param blocksPerYear_ The new estimated eth blocks per year.
     */
    function updateBlocksPerYear(uint blocksPerYear_) external onlyOwner {
        blocksPerYear = blocksPerYear_;
    }

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

File 2 of 5 : 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 3 of 5 : 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 4 of 5 : Ownable.sol
pragma solidity ^0.5.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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 5 of 5 : Context.sol
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;
    }
}

Settings
{
  "metadata": {
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"blocksPerYear_","type":"uint256"},{"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"},{"internalType":"string","name":"name_","type":"string"}],"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"},{"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":"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":"isOwner","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"renounceOwnership","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"},{"constant":false,"inputs":[{"internalType":"uint256","name":"blocksPerYear_","type":"uint256"}],"name":"updateBlocksPerYear","outputs":[],"payable":false,"stateMutability":"nonpayable","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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638f32d59b11610097578063b9f9850a11610066578063b9f9850a146102c3578063f14039de146102cb578063f2fde38b146102d3578063fd2da339146102f957610100565b80638f32d59b14610267578063a3193e2e1461026f578063a385fb961461028c578063b81688161461029457610100565b80636e71e2d8116100d35780636e71e2d81461020a578063715018a6146102335780638726bb891461023b5780638da5cb5b1461024357610100565b806306fdde031461010557806315f24053146101825780632037f3e7146101bd5780632191f92a146101ee575b600080fd5b61010d610301565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014757818101518382015260200161012f565b50505050905090810190601f1680156101745780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101ab6004803603606081101561019857600080fd5b508035906020810135906040013561038f565b60408051918252519081900360200190f35b6101ec600480360360808110156101d357600080fd5b5080359060208101359060408101359060600135610467565b005b6101f66104c0565b604080519115158252519081900360200190f35b6101ab6004803603606081101561022057600080fd5b50803590602081013590604001356104c5565b6101ec610517565b6101ab6105a8565b61024b6105ae565b604080516001600160a01b039092168252519081900360200190f35b6101f66105bd565b6101ec6004803603602081101561028557600080fd5b50356105e1565b6101ab61062d565b6101ab600480360360808110156102aa57600080fd5b5080359060208101359060408101359060600135610633565b6101ab6106b2565b6101ab6106b8565b6101ec600480360360208110156102e957600080fd5b50356001600160a01b03166106be565b6101ab610711565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103875780601f1061035c57610100808354040283529160200191610387565b820191906000526020600020905b81548152906001019060200180831161036a57829003601f168201915b505050505081565b60008061039d8585856104c5565b905060055481116103ef576103e76003546103db670de0b6b3a76400006103cf6002548661071790919063ffffffff16565b9063ffffffff61077916565b9063ffffffff6107bb16565b915050610460565b600061041a6003546103db670de0b6b3a76400006103cf60025460055461071790919063ffffffff16565b905060006104336005548461081590919063ffffffff16565b905061045a826103db670de0b6b3a76400006103cf6004548661071790919063ffffffff16565b93505050505b9392505050565b61046f6105bd565b6104ae576040805162461bcd60e51b81526020600482018190526024820152600080516020610ae3833981519152604482015290519081900360640190fd5b6104ba84848484610857565b50505050565b600181565b6000826104d457506000610460565b61050f6104f7836104eb878763ffffffff6107bb16565b9063ffffffff61081516565b6103cf85670de0b6b3a764000063ffffffff61071716565b949350505050565b61051f6105bd565b61055e576040805162461bcd60e51b81526020600482018190526024820152600080516020610ae3833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60025481565b6000546001600160a01b031690565b600080546001600160a01b03166105d26108fb565b6001600160a01b031614905090565b6105e96105bd565b610628576040805162461bcd60e51b81526020600482018190526024820152600080516020610ae3833981519152604482015290519081900360640190fd5b600155565b60015481565b60008061064e670de0b6b3a76400008463ffffffff61081516565b9050600061065d87878761038f565b9050600061067d670de0b6b3a76400006103cf848663ffffffff61071716565b90506106a6670de0b6b3a76400006103cf8361069a8c8c8c6104c5565b9063ffffffff61071716565b98975050505050505050565b60045481565b60035481565b6106c66105bd565b610705576040805162461bcd60e51b81526020600482018190526024820152600080516020610ae3833981519152604482015290519081900360640190fd5b61070e816108ff565b50565b60055481565b60008261072657506000610773565b8282028284828161073357fe5b04146107705760405162461bcd60e51b8152600401808060200182810382526021815260200180610ac26021913960400191505060405180910390fd5b90505b92915050565b600061077083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061099f565b600082820183811015610770576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061077083836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250610a41565b60015461086b90859063ffffffff61077916565b600355600154610885906104f7908363ffffffff61071716565b60025560015461089c90839063ffffffff61077916565b60048190556005829055600354600254604080519283526020830191909152818101929092526060810183905290517f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9181900360800190a150505050565b3390565b6001600160a01b0381166109445760405162461bcd60e51b8152600401808060200182810382526026815260200180610a9c6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008183610a2b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109f05781810151838201526020016109d8565b50505050905090810190601f168015610a1d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610a3757fe5b0495945050505050565b60008184841115610a935760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156109f05781810151838201526020016109d8565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a72315820e07802940a9c4d2581f34211dea06b9f472b079d00d0063352838274c996463664736f6c63430005100032

Deployed ByteCode Sourcemap

435:6407:2:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;435:6407:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1404:18;;;:::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;1404:18:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4504:519;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4504:519:2;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2912:244;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;2912:244:2;;;;;;;;;;;;;;;;;:::i;:::-;;225:47:1;;;:::i;:::-;;;;;;;;;;;;;;;;;;3537:290:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3537:290:2;;;;;;;;;;;;:::i;1684:137:3:-;;;:::i;900:30:2:-;;;:::i;899:77:3:-;;;:::i;:::-;;;;-1:-1:-1;;;;;899:77:3;;;;;;;;;;;;;;1250:92;;;:::i;4009:116:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4009:116:2;;:::i;760:25::-;;;:::i;5436:425::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;5436:425:2;;;;;;;;;;;;;;;;;:::i;1176:34::-;;;:::i;1043:28::-;;;:::i;1970:107:3:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1970:107:3;-1:-1:-1;;;;;1970:107:3;;:::i;1310:16:2:-;;;:::i;1404:18::-;;;;;;;;;;;;;;;-1:-1:-1;;1404:18:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4504:519::-;4588:4;4604:9;4616:40;4632:4;4638:7;4647:8;4616:15;:40::i;:::-;4604:52;;4679:4;;4671;:12;4667:350;;4706:60;4749:16;;4706:38;4739:4;4706:28;4715:18;;4706:4;:8;;:28;;;;:::i;:::-;:32;:38;:32;:38;:::i;:::-;:42;:60;:42;:60;:::i;:::-;4699:67;;;;;4667:350;4797:15;4815:60;4858:16;;4815:38;4848:4;4815:28;4824:18;;4815:4;;:8;;:28;;;;:::i;:60::-;4797:78;;4889:15;4907:14;4916:4;;4907;:8;;:14;;;;:::i;:::-;4889:32;;4942:64;4995:10;4942:48;4985:4;4942:38;4957:22;;4942:10;:14;;:38;;;;:::i;:64::-;4935:71;;;;;4504:519;;;;;;:::o;2912:244::-;1103:9:3;:7;:9::i;:::-;1095:54;;;;;-1:-1:-1;;;1095:54:3;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1095:54:3;;;;;;;;;;;;;;;3056:93:2;3084:15;3101:17;3120:21;3143:5;3056:27;:93::i;:::-;2912:244;;;;:::o;225:47:1:-;268:4;225:47;:::o;3537:290:2:-;3623:4;3702:12;3698:51;;-1:-1:-1;3737:1:2;3730:8;;3698:51;3766:54;3788:31;3810:8;3788:17;:4;3797:7;3788:17;:8;:17;:::i;:::-;:21;:31;:21;:31;:::i;:::-;3766:17;:7;3778:4;3766:17;:11;:17;:::i;:54::-;3759:61;3537:290;-1:-1:-1;;;;3537:290:2:o;1684:137:3:-;1103:9;:7;:9::i;:::-;1095:54;;;;;-1:-1:-1;;;1095:54:3;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1095:54:3;;;;;;;;;;;;;;;1782:1;1766:6;;1745:40;;-1:-1:-1;;;;;1766:6:3;;;;1745:40;;1782:1;;1745:40;1812:1;1795:19;;-1:-1:-1;;;;;;1795:19:3;;;1684:137::o;900:30:2:-;;;;:::o;899:77:3:-;937:7;963:6;-1:-1:-1;;;;;963:6:3;899:77;:::o;1250:92::-;1290:4;1329:6;;-1:-1:-1;;;;;1329:6:3;1313:12;:10;:12::i;:::-;-1:-1:-1;;;;;1313:22:3;;1306:29;;1250:92;:::o;4009:116:2:-;1103:9:3;:7;:9::i;:::-;1095:54;;;;;-1:-1:-1;;;1095:54:3;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1095:54:3;;;;;;;;;;;;;;;4088:13:2;:30;4009:116::o;760:25::-;;;;:::o;5436:425::-;5548:4;;5593:37;5598:4;5608:21;5593:37;:14;:37;:::i;:::-;5564:66;;5640:15;5658:38;5672:4;5678:7;5687:8;5658:13;:38::i;:::-;5640:56;-1:-1:-1;5706:15:2;5724:47;5766:4;5724:37;5640:56;5739:21;5724:37;:14;:37;:::i;:47::-;5706:65;;5788:66;5849:4;5788:56;5833:10;5788:40;5804:4;5810:7;5819:8;5788:15;:40::i;:::-;:44;:56;:44;:56;:::i;:66::-;5781:73;5436:425;-1:-1:-1;;;;;;;;5436:425:2:o;1176:34::-;;;;:::o;1043:28::-;;;;:::o;1970:107:3:-;1103:9;:7;:9::i;:::-;1095:54;;;;;-1:-1:-1;;;1095:54:3;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1095:54:3;;;;;;;;;;;;;;;2042:28;2061:8;2042:18;:28::i;:::-;1970:107;:::o;1310:16:2:-;;;;:::o;2656:459:4:-;2714:7;2955:6;2951:45;;-1:-1:-1;2984:1:4;2977:8;;2951:45;3018:5;;;3022:1;3018;:5;:1;3041:5;;;;;:10;3033:56;;;;-1:-1:-1;;;3033:56:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3107:1;-1:-1:-1;2656:459:4;;;;;:::o;4267:130::-;4325:7;4351:39;4355:1;4358;4351:39;;;;;;;;;;;;;;;;;:3;:39::i;959:176::-;1017:7;1048:5;;;1071:6;;;;1063:46;;;;;-1:-1:-1;;;1063:46:4;;;;;;;;;;;;;;;;;;;;;;;;;;;1822:135;1880:7;1906:44;1910:1;1913;1906:44;;;;;;;;;;;;;;;;;:3;:44::i;6350:490:2:-;6531:13;;6511:34;;:15;;:34;:19;:34;:::i;:::-;6492:16;:53;6610:13;;6576:59;;6610:24;;6628:5;6610:24;:17;:24;:::i;6576:59::-;6555:18;:80;6696:13;;6670:40;;:21;;:40;:25;:40;:::i;:::-;6645:22;:65;;;6720:4;:12;;;6766:16;;6784:18;;6748:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6350:490;;;;:::o;788:96:0:-;867:10;788:96;:::o;2178:225:3:-;-1:-1:-1;;;;;2251:22:3;;2243:73;;;;-1:-1:-1;;;2243:73:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2352:6;;;2331:38;;-1:-1:-1;;;;;2331:38:3;;;;2352:6;;;2331:38;;;2379:6;:17;;-1:-1:-1;;;;;;2379:17:3;-1:-1:-1;;;;;2379:17:3;;;;;;;;;;2178:225::o;4872:338:4:-;4958:7;5058:12;5051:5;5043:28;;;;-1:-1:-1;;;5043:28:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;5043:28:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5081:9;5097:1;5093;:5;;;;;;;4872:338;-1:-1:-1;;;;;4872:338:4:o;2236:187::-;2322:7;2357:12;2349:6;;;;2341:29;;;;-1:-1:-1;;;2341:29:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;2341:29:4;-1:-1:-1;;;2392:5:4;;;2236:187::o

Metadata Hash

e07802940a9c4d2581f34211dea06b9f472b079d00d0063352838274c9964636
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.