0 txs
126.2k calls
constructor
constructor(int256 baseRatePerYear_, int256 multiplierPerYear_, int256 kink1_, int256 multiplier2PerYear_, int256 baseRate2PerYear_, int256 kink2_, int256 jumpMultiplierPerYear_, int256 blocksPerYear_)
functions
BASE_RATE_2_PER_BLOCK
viewfunction BASE_RATE_2_PER_BLOCK() view returns (int256)
BASE_RATE_PER_BLOCK
viewfunction BASE_RATE_PER_BLOCK() view returns (int256)
BLOCKS_PER_YEAR
viewfunction BLOCKS_PER_YEAR() view returns (int256)
getBorrowRate
viewfunction getBorrowRate(uint256 cash, uint256 borrows, uint256 reserves) view returns (uint256)
getSupplyRate
viewfunction getSupplyRate(uint256 cash, uint256 borrows, uint256 reserves, uint256 reserveFactorMantissa) view returns (uint256)
isInterestRateModel
viewfunction isInterestRateModel() view returns (bool)
JUMP_MULTIPLIER_PER_BLOCK
viewfunction JUMP_MULTIPLIER_PER_BLOCK() view returns (int256)
KINK_1
viewfunction KINK_1() view returns (int256)
KINK_2
viewfunction KINK_2() view returns (int256)
MULTIPLIER_2_PER_BLOCK
viewfunction MULTIPLIER_2_PER_BLOCK() view returns (int256)
MULTIPLIER_PER_BLOCK
viewfunction MULTIPLIER_PER_BLOCK() view returns (int256)
RATE_1
viewfunction RATE_1() view returns (int256)
RATE_2
viewfunction RATE_2() view returns (int256)
utilizationRate
purefunction utilizationRate(uint256 cash, uint256 borrows, uint256 reserves) pure returns (uint256)
events
No events.
errors
InvalidKink
error InvalidKink()
NegativeValueNotAllowed
error NegativeValueNotAllowed()
creation bytecode
0x6101c060405234801561001157600080fd5b50604051610b11380380610b118339810160408190526100309161016b565b600088128061003f5750600084125b1561005d576040516341820e7560e11b815260040160405180910390fd5b858313158061006d575060008613155b1561008b57604051637099641d60e11b815260040160405180910390fd5b608081905261009a81896101de565b60c0526080516100aa90886101de565b60a05260e08690526080516100bf90866101de565b610100526080516100d090856101de565b610120526101608390526080516100e790836101de565b6101805260c05160a05160e051670de0b6b3a76400009291839161010b919061021a565b61011591906101de565b61011f9190610250565b6101405260e05161016051610120516101005192909103918390610143908461021a565b61014d91906101de565b6101579190610250565b6101a0525061027898505050505050505050565b600080600080600080600080610100898b03121561018857600080fd5b505086516020880151604089015160608a015160808b015160a08c015160c08d015160e0909d0151959e949d50929b919a50985090965094509092509050565b634e487b7160e01b600052601160045260246000fd5b6000826101fb57634e487b7160e01b600052601260045260246000fd5b600160ff1b821460001984141615610215576102156101c8565b500590565b80820260008212600160ff1b84141615610236576102366101c8565b818105831482151761024a5761024a6101c8565b92915050565b8082018281126000831280158216821582161715610270576102706101c8565b505092915050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516107cb610346600039600081816101a601526105d20152600081816102b6015261059801526000818161015801528181610488015261056f01526000818160f30152818161053e01526105f301526000818161020701526104d501526000818161028f01526104fa01526000818161017f015281816103ef01526104b0015260008181610241015261041a0152600081816101e0015261043f0152600061026801526107cb6000f3fe608060405234801561001057600080fd5b50600436106100e95760003560e01c80638ea0930e1161008c578063c563364911610066578063c56336491461023c578063d37db1d214610263578063ebf22a081461028a578063fe8167d8146102b157600080fd5b80638ea0930e146101db578063b571268114610202578063b81688161461022957600080fd5b806338afe9c4116100c857806338afe9c4146101535780633b53e8881461017a5780635d0054c4146101a15780636e71e2d8146101c857600080fd5b8062084e89146100ee57806315f24053146101285780632191f92a1461013b575b600080fd5b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b61011561013636600461062e565b6102d8565b610143600181565b604051901515815260200161011f565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101156101d636600461062e565b6102ef565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b61011561023736600461065a565b610358565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b6101157f000000000000000000000000000000000000000000000000000000000000000081565b60006102e58484846103d4565b90505b9392505050565b600082600003610301575060006102e8565b60008261030e85876106a2565b61031891906106bb565b61032a670de0b6b3a7640000866106ce565b61033491906106fb565b9050670de0b6b3a76400008111156102e55750670de0b6b3a7640000949350505050565b60008061036d83670de0b6b3a76400006106bb565b9050600061037c8787876103d4565b90506000670de0b6b3a764000061039384846106ce565b61039d91906106fb565b9050670de0b6b3a7640000816103b48a8a8a6102ef565b6103be91906106ce565b6103c891906106fb565b98975050505050505050565b6000806103e28585856102ef565b9050670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000008212156104865761047d7f0000000000000000000000000000000000000000000000000000000000000000826104647f00000000000000000000000000000000000000000000000000000000000000008661070f565b61046e919061073f565b610478919061076d565b610617565b925050506102e8565b7f000000000000000000000000000000000000000000000000000000000000000082121561056d577f0000000000000000000000000000000000000000000000000000000000000000820360007f00000000000000000000000000000000000000000000000000000000000000008361051f7f00000000000000000000000000000000000000000000000000000000000000008561070f565b610529919061073f565b610533919061076d565b9050610562610478827f000000000000000000000000000000000000000000000000000000000000000061076d565b9450505050506102e8565b7f000000000000000000000000000000000000000000000000000000000000000082036000826105bd7f00000000000000000000000000000000000000000000000000000000000000008461070f565b6105c7919061073f565b90506105628161046e7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061076d565b60008080831361062757806102e8565b5090919050565b60008060006060848603121561064357600080fd5b505081359360208301359350604090920135919050565b6000806000806080858703121561067057600080fd5b5050823594602084013594506040840135936060013592509050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106b5576106b561068c565b92915050565b818103818111156106b5576106b561068c565b80820281158282048414176106b5576106b561068c565b634e487b7160e01b600052601260045260246000fd5b60008261070a5761070a6106e5565b500490565b80820260008212600160ff1b8414161561072b5761072b61068c565b81810583148215176106b5576106b561068c565b60008261074e5761074e6106e5565b600160ff1b8214600019841416156107685761076861068c565b500590565b808201828112600083128015821682158216171561078d5761078d61068c565b50509291505056fea2646970667358221220763df77980617554562df1037b46960f684d8ecf670b92b4ca14d4f6ff80ff3464736f6c634300081900330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000009b6e64a8ec6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c7d713b49da000000000000000000000000000000000000000000000000000029a2241af62c0000000000000000000000000000000000000000000000000000000000000140cd00