false
true
0

Contract Address Details

0x5562024784cc914069d67D89a28e3201bF7b57E7

Contract Name
JumpRateModel
Creator
0xa7ff0d–2059f6 at 0x7ce33d–91818c
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
25913513
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify. View contract in Sourcify repository
Contract name:
JumpRateModel




Optimization enabled
true
Compiler version
v0.5.12+commit.7709ece9




Optimization runs
200
EVM Version
petersburg




Verified at
2026-03-01T11:26:23.672871Z

Constructor Arguments

00000000000000000000000000000000000000000000000000470de4df820000000000000000000000000000000000000000000000000000004ef2fe4dac8cc00000000000000000000000000000000000000000000000000c7d713b49da00000000000000000000000000000000000000000000000000000000000000000028

Arg [0] (uint256) : 20000000000000000
Arg [1] (uint256) : 22222222222200000
Arg [2] (uint256) : 900000000000000000
Arg [3] (uint256) : 40

              

JumpRateModel.sol

// File: contracts/InterestRateModel.sol

pragma solidity ^0.5.12;

/**
  * @title Compound's InterestRateModel Interface
  * @author Compound
  */
interface InterestRateModel {
    /**
     * @notice Indicator that this is an InterestRateModel contract (for inspection)
     */
    function isInterestRateModel() external pure returns (bool);

    /**
      * @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 amnount 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 amnount 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.12;

// 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 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.
     *
     * NOTE: This is a feature of the next version of OpenZeppelin Contracts.
     * @dev Get it via `npm install @openzeppelin/contracts@next`.
     */
    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.
     * NOTE: This is a feature of the next version of OpenZeppelin Contracts.
     * @dev Get it via `npm install @openzeppelin/contracts@next`.
     */
    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.
     *
     * NOTE: This is a feature of the next version of OpenZeppelin Contracts.
     * @dev Get it via `npm install @openzeppelin/contracts@next`.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts/JumpRateModel.sol

pragma solidity ^0.5.12;



/**
  * @title Compound's JumpRateModel Contract
  * @author Compound
  */
contract JumpRateModel is InterestRateModel {
    using SafeMath for uint;

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

    /**
     * @notice Indicator that this is an InterestRateModel contract (for inspection)
     */
    bool public constant isInterestRateModel = true;

    /**
     * @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 utilization point at which an additional multiplier is applied
    */
    uint public kink;

    /**
     * @notice the additional multiplier to be applied to multiplierPerBlock after hitting a specified utilization point
    */
    uint public jump;

    /**
     * @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 kink_ The utilization point at which an additional multiplier is applied
     * @param jump_ The additional multiplier to be applied to multiplierPerBlock after hitting a specified utilization point
     */
    constructor(uint baseRatePerYear, uint multiplierPerYear, uint kink_, uint jump_) public {
        baseRatePerBlock = baseRatePerYear.div(blocksPerYear);
        multiplierPerBlock = multiplierPerYear.div(blocksPerYear);
        kink = kink_;
        jump = jump_;

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

    /**
     * @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);
            uint jumpMultiplier = multiplierPerBlock.mul(jump);
            return excessUtil.mul(jumpMultiplier).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);
    }
}
        

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"petersburg","compilationTarget":{"JumpRateModel.sol":"JumpRateModel"}}
              

Contract ABI

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

Contract Creation Code

Verify & Publish
0x608060405234801561001057600080fd5b506040516107e23803806107e28339818101604052608081101561003357600080fd5b508051602080830151604084015160609094015192939092909161006590859062201480906103b56100e3821b17901c565b60015561008083622014806100e3602090811b6103b517901c565b6000819055600283905560038290556001546040805191825260208201929092528082018490526060810183905290517f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9181900360800190a1505050506101ee565b600061012b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061013260201b60201c565b9392505050565b600081836101d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561019d578181015183820152602001610185565b50505050905090810190601f1680156101ca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816101e457fe5b0495945050505050565b6105e5806101fd6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638f6c696b116100665780638f6c696b14610120578063a385fb9614610128578063b816881614610130578063f14039de1461015f578063fd2da3391461016757610093565b806315f24053146100985780632191f92a146100d35780636e71e2d8146100ef5780638726bb8914610118575b600080fd5b6100c1600480360360608110156100ae57600080fd5b508035906020810135906040013561016f565b60408051918252519081900360200190f35b6100db61025e565b604080519115158252519081900360200190f35b6100c16004803603606081101561010557600080fd5b5080359060208101359060400135610263565b6100c16102b5565b6100c16102bb565b6100c16102c1565b6100c16004803603608081101561014657600080fd5b50803590602081013590604081013590606001356102c8565b6100c1610347565b6100c161034d565b60008061017d858585610263565b905060025481116101cf576101c76001546101bb670de0b6b3a76400006101af6000548661035390919063ffffffff16565b9063ffffffff6103b516565b9063ffffffff6103f716565b915050610257565b60006101fa6001546101bb670de0b6b3a76400006101af60005460025461035390919063ffffffff16565b905060006102136002548461045190919063ffffffff16565b9050600061022e60035460005461035390919063ffffffff16565b9050610250836101bb670de0b6b3a76400006101af868663ffffffff61035316565b9450505050505b9392505050565b600181565b60008261027257506000610257565b6102ad61029583610289878763ffffffff6103f716565b9063ffffffff61045116565b6101af85670de0b6b3a764000063ffffffff61035316565b949350505050565b60005481565b60035481565b6220148081565b6000806102e3670de0b6b3a76400008463ffffffff61045116565b905060006102f287878761016f565b90506000610312670de0b6b3a76400006101af848663ffffffff61035316565b905061033b670de0b6b3a76400006101af8361032f8c8c8c610263565b9063ffffffff61035316565b98975050505050505050565b60015481565b60025481565b600082610362575060006103af565b8282028284828161036f57fe5b04146103ac5760405162461bcd60e51b81526004018080602001828103825260218152602001806105906021913960400191505060405180910390fd5b90505b92915050565b60006103ac83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610493565b6000828201838110156103ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006103ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610535565b6000818361051f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104e45781810151838201526020016104cc565b50505050905090810190601f1680156105115780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161052b57fe5b0495945050505050565b600081848411156105875760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156104e45781810151838201526020016104cc565b50505090039056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a723158208d783aa625e1be09faa56c3afddb866f6c8f27e8755128bc363ac4b96d542d0464736f6c634300050c003200000000000000000000000000000000000000000000000000470de4df820000000000000000000000000000000000000000000000000000004ef2fe4dac8cc00000000000000000000000000000000000000000000000000c7d713b49da00000000000000000000000000000000000000000000000000000000000000000028

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638f6c696b116100665780638f6c696b14610120578063a385fb9614610128578063b816881614610130578063f14039de1461015f578063fd2da3391461016757610093565b806315f24053146100985780632191f92a146100d35780636e71e2d8146100ef5780638726bb8914610118575b600080fd5b6100c1600480360360608110156100ae57600080fd5b508035906020810135906040013561016f565b60408051918252519081900360200190f35b6100db61025e565b604080519115158252519081900360200190f35b6100c16004803603606081101561010557600080fd5b5080359060208101359060400135610263565b6100c16102b5565b6100c16102bb565b6100c16102c1565b6100c16004803603608081101561014657600080fd5b50803590602081013590604081013590606001356102c8565b6100c1610347565b6100c161034d565b60008061017d858585610263565b905060025481116101cf576101c76001546101bb670de0b6b3a76400006101af6000548661035390919063ffffffff16565b9063ffffffff6103b516565b9063ffffffff6103f716565b915050610257565b60006101fa6001546101bb670de0b6b3a76400006101af60005460025461035390919063ffffffff16565b905060006102136002548461045190919063ffffffff16565b9050600061022e60035460005461035390919063ffffffff16565b9050610250836101bb670de0b6b3a76400006101af868663ffffffff61035316565b9450505050505b9392505050565b600181565b60008261027257506000610257565b6102ad61029583610289878763ffffffff6103f716565b9063ffffffff61045116565b6101af85670de0b6b3a764000063ffffffff61035316565b949350505050565b60005481565b60035481565b6220148081565b6000806102e3670de0b6b3a76400008463ffffffff61045116565b905060006102f287878761016f565b90506000610312670de0b6b3a76400006101af848663ffffffff61035316565b905061033b670de0b6b3a76400006101af8361032f8c8c8c610263565b9063ffffffff61035316565b98975050505050505050565b60015481565b60025481565b600082610362575060006103af565b8282028284828161036f57fe5b04146103ac5760405162461bcd60e51b81526004018080602001828103825260218152602001806105906021913960400191505060405180910390fd5b90505b92915050565b60006103ac83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610493565b6000828201838110156103ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006103ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610535565b6000818361051f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104e45781810151838201526020016104cc565b50505050905090810190601f1680156105115780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161052b57fe5b0495945050505050565b600081848411156105875760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156104e45781810151838201526020016104cc565b50505090039056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a723158208d783aa625e1be09faa56c3afddb866f6c8f27e8755128bc363ac4b96d542d0464736f6c634300050c0032