Overview
S Balance
0 S
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
JumpRateModelV4
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1000 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.8.20; 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 uint256; event NewInterestParams( uint256 baseRatePerBlock, uint256 multiplierPerBlock, uint256 jumpMultiplierPerBlock, uint256 kink ); /** * @notice The approximate number of blocks per year that is assumed by the interest rate model */ uint256 public blocksPerYear; /** * @notice The multiplier of utilization rate that gives the slope of the interest rate */ uint256 public multiplierPerBlock; /** * @notice The base interest rate which is the y-intercept when utilization rate is 0 */ uint256 public baseRatePerBlock; /** * @notice The multiplierPerBlock after hitting a specified utilization point */ uint256 public jumpMultiplierPerBlock; /** * @notice The utilization point at which the jump multiplier is applied */ uint256 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( uint256 blocksPerYear_, uint256 baseRatePerYear, uint256 multiplierPerYear, uint256 jumpMultiplierPerYear, uint256 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( uint256 baseRatePerYear, uint256 multiplierPerYear, uint256 jumpMultiplierPerYear, uint256 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( uint256 cash, uint256 borrows, uint256 reserves ) public pure returns (uint256) { // 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(uint256 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( uint256 cash, uint256 borrows, uint256 reserves ) public view override returns (uint256) { uint256 util = utilizationRate(cash, borrows, reserves); if (util <= kink) { return util.mul(multiplierPerBlock).div(1e18).add(baseRatePerBlock); } else { uint256 normalRate = kink.mul(multiplierPerBlock).div(1e18).add( baseRatePerBlock ); uint256 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( uint256 cash, uint256 borrows, uint256 reserves, uint256 reserveFactorMantissa ) public view override returns (uint256) { uint256 oneMinusReserveFactor = uint256(1e18).sub( reserveFactorMantissa ); uint256 borrowRate = getBorrowRate(cash, borrows, reserves); uint256 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( uint256 baseRatePerYear, uint256 multiplierPerYear, uint256 jumpMultiplierPerYear, uint256 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 ); } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.8.20; /** * @title Compound's InterestRateModel Interface * @author Compound */ abstract 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) virtual 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) virtual external view returns (uint); }
pragma solidity 0.8.20; /** * @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 { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { _owner = msg.sender; emit OwnershipTransferred(address(0), msg.sender); } /** * @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 msg.sender == _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; } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.8.20; // 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; unchecked { 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; unchecked { 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; unchecked { 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; unchecked { 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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "shanghai", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}],"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"},{"inputs":[],"name":"baseRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksPerYear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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"}],"stateMutability":"view","type":"function"},{"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"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInterestRateModel","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jumpMultiplierPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kink","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplierPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blocksPerYear_","type":"uint256"}],"name":"updateBlocksPerYear","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b50604051620010e3380380620010e383398101604081905262000033916200033d565b5f80546001600160a01b0319163390811782556040519091905f80516020620010c3833981519152908290a360018790556006620000728282620004ce565b506200007e8262000099565b6200008c868686866200014b565b50505050505050620005ea565b6001600160a01b038116620001045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b5f80546040516001600160a01b03808516939216915f80516020620010c383398151915291a35f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001546200015b908590620001ff565b6003556001546200018d9062000172908362000251565b6200018685670de0b6b3a764000062000251565b90620001ff565b600255600154620001a0908390620001ff565b60048190556005829055600354600254604080519283526020830191909152810191909152606081018290527f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9060800160405180910390a150505050565b5f6200024883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620002cb60201b60201c565b90505b92915050565b5f825f036200026257505f6200024b565b8282028262000272858362000596565b14620002485760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401620000fb565b5f8183620002ee5760405162461bcd60e51b8152600401620000fb9190620005b6565b505f620002fc848662000596565b95945050505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620003355781810151838201526020016200031b565b50505f910152565b5f805f805f805f60e0888a03121562000354575f80fd5b8751602089015160408a015160608b015160808c015160a08d0151949b50929950909750955093506001600160a01b038116811462000391575f80fd5b60c08901519092506001600160401b0380821115620003ae575f80fd5b818a0191508a601f830112620003c2575f80fd5b815181811115620003d757620003d762000305565b604051601f8201601f19908116603f0116810190838211818310171562000402576200040262000305565b816040528281528d60208487010111156200041b575f80fd5b6200042e83602083016020880162000319565b809550505050505092959891949750929550565b600181811c908216806200045757607f821691505b6020821081036200047657634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620004c9575f81815260208120601f850160051c81016020861015620004a45750805b601f850160051c820191505b81811015620004c557828155600101620004b0565b5050505b505050565b81516001600160401b03811115620004ea57620004ea62000305565b6200050281620004fb845462000442565b846200047c565b602080601f83116001811462000538575f8415620005205750858301515b5f19600386901b1c1916600185901b178555620004c5565b5f85815260208120601f198616915b82811015620005685788860151825594840194600190910190840162000547565b50858210156200058657878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f82620005b157634e487b7160e01b5f52601260045260245ffd5b500490565b602081525f8251806020840152620005d681604085016020870162000319565b601f01601f19169190910160400192915050565b610acb80620005f85f395ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c80638f32d59b11610093578063b9f9850a11610063578063b9f9850a146101ea578063f14039de146101f3578063f2fde38b146101fc578063fd2da3391461020f575f80fd5b80638f32d59b146101a9578063a3193e2e146101bb578063a385fb96146101ce578063b8168816146101d7575f80fd5b80636e71e2d8116100ce5780636e71e2d81461016b578063715018a61461017e5780638726bb89146101865780638da5cb5b1461018f575f80fd5b806306fdde03146100ff57806315f240531461011d5780632037f3e71461013e5780632191f92a14610153575b5f80fd5b610107610218565b604051610114919061093f565b60405180910390f35b61013061012b36600461098a565b6102a4565b604051908152602001610114565b61015161014c3660046109b3565b61036d565b005b61015b600181565b6040519015158152602001610114565b61013061017936600461098a565b6103dd565b61015161041d565b61013060025481565b5f546040516001600160a01b039091168152602001610114565b5f546001600160a01b0316331461015b565b6101516101c93660046109e2565b6104cb565b61013060015481565b6101306101e53660046109b3565b610529565b61013060045481565b61013060035481565b61015161020a3660046109f9565b610593565b61013060055481565b6006805461022590610a1f565b80601f016020809104026020016040519081016040528092919081815260200182805461025190610a1f565b801561029c5780601f106102735761010080835404028352916020019161029c565b820191905f5260205f20905b81548152906001019060200180831161027f57829003601f168201915b505050505081565b5f806102b18585856103dd565b905060055481116102f7576102ef6003546102e9670de0b6b3a76400006102e3600254866105f890919063ffffffff16565b90610691565b906106d2565b915050610366565b5f6103216003546102e9670de0b6b3a76400006102e36002546005546105f890919063ffffffff16565b90505f6103396005548461072690919063ffffffff16565b9050610360826102e9670de0b6b3a76400006102e3600454866105f890919063ffffffff16565b93505050505b9392505050565b5f546001600160a01b031633146103cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6103d784848484610767565b50505050565b5f825f036103ec57505f610366565b610415610403836103fd87876106d2565b90610726565b6102e385670de0b6b3a76400006105f8565b949350505050565b5f546001600160a01b031633146104765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c2565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f805473ffffffffffffffffffffffffffffffffffffffff19169055565b5f546001600160a01b031633146105245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c2565b600155565b5f8061053d670de0b6b3a764000084610726565b90505f61054b8787876102a4565b90505f610564670de0b6b3a76400006102e384866105f8565b9050610587670de0b6b3a76400006102e3836105818c8c8c6103dd565b906105f8565b98975050505050505050565b5f546001600160a01b031633146105ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c2565b6105f5816107f9565b50565b5f825f0361060757505f61068b565b828202826106158583610a57565b146106885760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f770000000000000000000000000000000000000000000000000000000000000060648201526084016103c2565b90505b92915050565b5f61068883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506108db565b5f828201838110156106885760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103c2565b5f61068883836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250610910565b600154610775908590610691565b6003556001546107899061040390836105f8565b60025560015461079a908390610691565b60048190556005829055600354600254604080519283526020830191909152810191909152606081018290527f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9060800160405180910390a150505050565b6001600160a01b0381166108755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c2565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b5f81836108fb5760405162461bcd60e51b81526004016103c2919061093f565b505f6109078486610a57565b95945050505050565b5f81848411156109335760405162461bcd60e51b81526004016103c2919061093f565b505f6109078486610a76565b5f6020808352835180828501525f5b8181101561096a5785810183015185820160400152820161094e565b505f604082860101526040601f19601f8301168501019250505092915050565b5f805f6060848603121561099c575f80fd5b505081359360208301359350604090920135919050565b5f805f80608085870312156109c6575f80fd5b5050823594602084013594506040840135936060013592509050565b5f602082840312156109f2575f80fd5b5035919050565b5f60208284031215610a09575f80fd5b81356001600160a01b0381168114610688575f80fd5b600181811c90821680610a3357607f821691505b602082108103610a5157634e487b7160e01b5f52602260045260245ffd5b50919050565b5f82610a7157634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561068b57634e487b7160e01b5f52601160045260245ffdfea264697066735822122025ff1783af3f5c4d6c9b9e91a6246e0dd96462c60e4679147960188d8644eba364736f6c634300081400338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e00000000000000000000000000000000000000000000000000000000001e133800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013fbe85edc9000000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000009b6e64a8ec60000000000000000000000000000edfa5163b3517c375a978b1557d9d90ba823213f00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000f4a756d70526174654d6f64656c56340000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100fb575f3560e01c80638f32d59b11610093578063b9f9850a11610063578063b9f9850a146101ea578063f14039de146101f3578063f2fde38b146101fc578063fd2da3391461020f575f80fd5b80638f32d59b146101a9578063a3193e2e146101bb578063a385fb96146101ce578063b8168816146101d7575f80fd5b80636e71e2d8116100ce5780636e71e2d81461016b578063715018a61461017e5780638726bb89146101865780638da5cb5b1461018f575f80fd5b806306fdde03146100ff57806315f240531461011d5780632037f3e71461013e5780632191f92a14610153575b5f80fd5b610107610218565b604051610114919061093f565b60405180910390f35b61013061012b36600461098a565b6102a4565b604051908152602001610114565b61015161014c3660046109b3565b61036d565b005b61015b600181565b6040519015158152602001610114565b61013061017936600461098a565b6103dd565b61015161041d565b61013060025481565b5f546040516001600160a01b039091168152602001610114565b5f546001600160a01b0316331461015b565b6101516101c93660046109e2565b6104cb565b61013060015481565b6101306101e53660046109b3565b610529565b61013060045481565b61013060035481565b61015161020a3660046109f9565b610593565b61013060055481565b6006805461022590610a1f565b80601f016020809104026020016040519081016040528092919081815260200182805461025190610a1f565b801561029c5780601f106102735761010080835404028352916020019161029c565b820191905f5260205f20905b81548152906001019060200180831161027f57829003601f168201915b505050505081565b5f806102b18585856103dd565b905060055481116102f7576102ef6003546102e9670de0b6b3a76400006102e3600254866105f890919063ffffffff16565b90610691565b906106d2565b915050610366565b5f6103216003546102e9670de0b6b3a76400006102e36002546005546105f890919063ffffffff16565b90505f6103396005548461072690919063ffffffff16565b9050610360826102e9670de0b6b3a76400006102e3600454866105f890919063ffffffff16565b93505050505b9392505050565b5f546001600160a01b031633146103cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6103d784848484610767565b50505050565b5f825f036103ec57505f610366565b610415610403836103fd87876106d2565b90610726565b6102e385670de0b6b3a76400006105f8565b949350505050565b5f546001600160a01b031633146104765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c2565b5f80546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a35f805473ffffffffffffffffffffffffffffffffffffffff19169055565b5f546001600160a01b031633146105245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c2565b600155565b5f8061053d670de0b6b3a764000084610726565b90505f61054b8787876102a4565b90505f610564670de0b6b3a76400006102e384866105f8565b9050610587670de0b6b3a76400006102e3836105818c8c8c6103dd565b906105f8565b98975050505050505050565b5f546001600160a01b031633146105ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c2565b6105f5816107f9565b50565b5f825f0361060757505f61068b565b828202826106158583610a57565b146106885760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60448201527f770000000000000000000000000000000000000000000000000000000000000060648201526084016103c2565b90505b92915050565b5f61068883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506108db565b5f828201838110156106885760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016103c2565b5f61068883836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250610910565b600154610775908590610691565b6003556001546107899061040390836105f8565b60025560015461079a908390610691565b60048190556005829055600354600254604080519283526020830191909152810191909152606081018290527f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9060800160405180910390a150505050565b6001600160a01b0381166108755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103c2565b5f80546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b5f81836108fb5760405162461bcd60e51b81526004016103c2919061093f565b505f6109078486610a57565b95945050505050565b5f81848411156109335760405162461bcd60e51b81526004016103c2919061093f565b505f6109078486610a76565b5f6020808352835180828501525f5b8181101561096a5785810183015185820160400152820161094e565b505f604082860101526040601f19601f8301168501019250505092915050565b5f805f6060848603121561099c575f80fd5b505081359360208301359350604090920135919050565b5f805f80608085870312156109c6575f80fd5b5050823594602084013594506040840135936060013592509050565b5f602082840312156109f2575f80fd5b5035919050565b5f60208284031215610a09575f80fd5b81356001600160a01b0381168114610688575f80fd5b600181811c90821680610a3357607f821691505b602082108103610a5157634e487b7160e01b5f52602260045260245ffd5b50919050565b5f82610a7157634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561068b57634e487b7160e01b5f52601160045260245ffdfea264697066735822122025ff1783af3f5c4d6c9b9e91a6246e0dd96462c60e4679147960188d8644eba364736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000001e133800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013fbe85edc9000000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000009b6e64a8ec60000000000000000000000000000edfa5163b3517c375a978b1557d9d90ba823213f00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000f4a756d70526174654d6f64656c56340000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : blocksPerYear_ (uint256): 31536000
Arg [1] : baseRatePerYear (uint256): 0
Arg [2] : multiplierPerYear (uint256): 90000000000000000
Arg [3] : jumpMultiplierPerYear (uint256): 1600000000000000000
Arg [4] : kink_ (uint256): 700000000000000000
Arg [5] : owner_ (address): 0xEDFa5163b3517c375a978B1557D9D90ba823213F
Arg [6] : name_ (string): JumpRateModelV4
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000001e13380
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 000000000000000000000000000000000000000000000000013fbe85edc90000
Arg [3] : 00000000000000000000000000000000000000000000000016345785d8a00000
Arg [4] : 00000000000000000000000000000000000000000000000009b6e64a8ec60000
Arg [5] : 000000000000000000000000edfa5163b3517c375a978b1557d9d90ba823213f
Arg [6] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [8] : 4a756d70526174654d6f64656c56340000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.