Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x61016060 | 18798139 | 905 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Source Code (Solidity Standard Json-Input format)
Contract Security Audit
No Contract Security Audit SubmittedSubmit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint16","name":"U_1","type":"uint16"},{"internalType":"uint16","name":"U_2","type":"uint16"},{"internalType":"uint16","name":"R_base","type":"uint16"},{"internalType":"uint16","name":"R_slope1","type":"uint16"},{"internalType":"uint16","name":"R_slope2","type":"uint16"},{"internalType":"uint16","name":"R_slope3","type":"uint16"},{"internalType":"bool","name":"_isBorrowingMoreU2Forbidden","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BorrowingMoreThanU2ForbiddenException","type":"error"},{"inputs":[],"name":"IncorrectParameterException","type":"error"},{"inputs":[],"name":"R_base_RAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"R_slope1_RAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"R_slope2_RAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"R_slope3_RAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"U_1_WAD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"U_2_WAD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"expectedLiquidity","type":"uint256"},{"internalType":"uint256","name":"availableLiquidity","type":"uint256"}],"name":"availableToBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"expectedLiquidity","type":"uint256"},{"internalType":"uint256","name":"availableLiquidity","type":"uint256"},{"internalType":"bool","name":"checkOptimalBorrowing","type":"bool"}],"name":"calcBorrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"expectedLiquidity","type":"uint256"},{"internalType":"uint256","name":"availableLiquidity","type":"uint256"}],"name":"calcBorrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getModelParameters","outputs":[{"internalType":"uint16","name":"U_1","type":"uint16"},{"internalType":"uint16","name":"U_2","type":"uint16"},{"internalType":"uint16","name":"R_base","type":"uint16"},{"internalType":"uint16","name":"R_slope1","type":"uint16"},{"internalType":"uint16","name":"R_slope2","type":"uint16"},{"internalType":"uint16","name":"R_slope3","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBorrowingMoreU2Forbidden","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
6101606040523480156200001257600080fd5b5060405162000d5d38038062000d5d833981810160405260e08110156200003857600080fd5b508051602082015160408301516060840151608085015160a086015160c090960151949593949293919290919061271061ffff881610158062000081575061271061ffff871610155b806200009457508561ffff168761ffff16115b80620000a5575061271061ffff8616115b80620000b6575061271061ffff8516115b80620000c7575061271061ffff8416115b80620000da57508261ffff168461ffff16115b80620000ed57508161ffff168361ffff16115b156200010c576040516347fbaa9760e01b815260040160405180910390fd5b62000122612710670de0b6b3a764000062000227565b620001329061ffff89166200024a565b60a0526200014b612710670de0b6b3a764000062000227565b6200015b9061ffff88166200024a565b60c052620001786127106b033b2e3c9fd0803ce800000062000227565b620001889061ffff87166200024a565b60e052620001a56127106b033b2e3c9fd0803ce800000062000227565b620001b59061ffff86166200024a565b61010052620001d36127106b033b2e3c9fd0803ce800000062000227565b620001e39061ffff85166200024a565b61012052620002016127106b033b2e3c9fd0803ce800000062000227565b620002119061ffff84166200024a565b6101405215156080525062000276945050505050565b6000826200024557634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176200027057634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e0516101005161012051610140516109c96200039460003960008181610117015281816105c101526108f00152600081816101bc0152818161047c015281816105f101526108ac01526000818160de0152818161037a015281816104af015281816106150152610868015260008181610195015281816102dc015281816103ae015281816104d001528181610636015261082401526000818161021e015281816103dc015281816104280152818161056401528181610596015281816106fc0152818161073801526107e00152600081816102680152818161032d01528181610355015281816104070152818161045101526107a00152600081816101e301528181610508015261069401526109c96000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80636e55f77e1161008157806381ec4ab71161005b57806381ec4ab714610240578063be3c37cd14610263578063c8284e6d1461028a57600080fd5b80636e55f77e146101b7578063762dbdb8146101de5780637f681d541461021957600080fd5b806342568d44116100b257806342568d441461016457806354fd4d50146101875780636cdc90fd1461019057600080fd5b806301967344146100d95780631a40526514610112578063306ea06714610139575b600080fd5b6101007f000000000000000000000000000000000000000000000000000000000000000081565b60408051918252519081900360200190f35b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6101006004803603606081101561014f57600080fd5b508035906020810135906040013515156102d0565b6101006004803603604081101561017a57600080fd5b5080359060200135610679565b61010061012c81565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6102057f000000000000000000000000000000000000000000000000000000000000000081565b604080519115158252519081900360200190f35b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6101006004803603604081101561025657600080fd5b5080359060200135610690565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b61029261077f565b6040805161ffff978816815295871660208701529386168585015291851660608501528416608084015290921660a082015290519081900360c00190f35b600082841161030057507f0000000000000000000000000000000000000000000000000000000000000000610672565b60008461030d8582610934565b61031f90670de0b6b3a7640000610947565b610329919061095e565b90507f00000000000000000000000000000000000000000000000000000000000000008110156103da577f000000000000000000000000000000000000000000000000000000000000000061039e827f0000000000000000000000000000000000000000000000000000000000000000610947565b6103a8919061095e565b6103d2907f0000000000000000000000000000000000000000000000000000000000000000610980565b915050610672565b7f00000000000000000000000000000000000000000000000000000000000000008110156104fe5761044c7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610934565b6104767f000000000000000000000000000000000000000000000000000000000000000083610934565b6104a0907f0000000000000000000000000000000000000000000000000000000000000000610947565b6104aa919061095e565b6104f47f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610980565b6103d29190610980565b82801561052857507f00000000000000000000000000000000000000000000000000000000000000005b1561055f576040517f351f03e300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105917f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a7640000610934565b6105bb7f000000000000000000000000000000000000000000000000000000000000000083610934565b6105e5907f0000000000000000000000000000000000000000000000000000000000000000610947565b6105ef919061095e565b7f000000000000000000000000000000000000000000000000000000000000000061065a7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610980565b6106649190610980565b61066e9190610980565b9150505b9392505050565b6000610687838360006102d0565b90505b92915050565b60007f000000000000000000000000000000000000000000000000000000000000000080156106bf5750818310155b80156106ca57508215155b15610778576000836106dc8482610934565b6106ee90670de0b6b3a7640000610947565b6106f8919061095e565b90507f00000000000000000000000000000000000000000000000000000000000000008110610728576000610770565b670de0b6b3a76400008461075c837f0000000000000000000000000000000000000000000000000000000000000000610934565b6107669190610947565b610770919061095e565b91505061068a565b508061068a565b6000808080808061079a612710670de0b6b3a764000061095e565b6107c4907f000000000000000000000000000000000000000000000000000000000000000061095e565b95506107da612710670de0b6b3a764000061095e565b610804907f000000000000000000000000000000000000000000000000000000000000000061095e565b945061081e6127106b033b2e3c9fd0803ce800000061095e565b610848907f000000000000000000000000000000000000000000000000000000000000000061095e565b93506108626127106b033b2e3c9fd0803ce800000061095e565b61088c907f000000000000000000000000000000000000000000000000000000000000000061095e565b92506108a66127106b033b2e3c9fd0803ce800000061095e565b6108d0907f000000000000000000000000000000000000000000000000000000000000000061095e565b91506108ea6127106b033b2e3c9fd0803ce800000061095e565b610914907f000000000000000000000000000000000000000000000000000000000000000061095e565b9050909192939495565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068a5761068a61091e565b808202811582820484141761068a5761068a61091e565b60008261097b57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561068a5761068a61091e56fea26469706673582212205ae1a1a33c8bb975c879fb250a8ab5a230bb55a5f6f11ae547e6d7e6b79ec79264736f6c634300081100330000000000000000000000000000000000000000000000000000000000001b58000000000000000000000000000000000000000000000000000000000000232800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80636e55f77e1161008157806381ec4ab71161005b57806381ec4ab714610240578063be3c37cd14610263578063c8284e6d1461028a57600080fd5b80636e55f77e146101b7578063762dbdb8146101de5780637f681d541461021957600080fd5b806342568d44116100b257806342568d441461016457806354fd4d50146101875780636cdc90fd1461019057600080fd5b806301967344146100d95780631a40526514610112578063306ea06714610139575b600080fd5b6101007f000000000000000000000000000000000000000000084595161401484a00000081565b60408051918252519081900360200190f35b6101007f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000081565b6101006004803603606081101561014f57600080fd5b508035906020810135906040013515156102d0565b6101006004803603604081101561017a57600080fd5b5080359060200135610679565b61010061012c81565b6101007f000000000000000000000000000000000000000000000000000000000000000081565b6101007f0000000000000000000000000000000000000000000a56fa5b99019a5c80000081565b6102057f000000000000000000000000000000000000000000000000000000000000000181565b604080519115158252519081900360200190f35b6101007f0000000000000000000000000000000000000000000000000c7d713b49da000081565b6101006004803603604081101561025657600080fd5b5080359060200135610690565b6101007f00000000000000000000000000000000000000000000000009b6e64a8ec6000081565b61029261077f565b6040805161ffff978816815295871660208701529386168585015291851660608501528416608084015290921660a082015290519081900360c00190f35b600082841161030057507f0000000000000000000000000000000000000000000000000000000000000000610672565b60008461030d8582610934565b61031f90670de0b6b3a7640000610947565b610329919061095e565b90507f00000000000000000000000000000000000000000000000009b6e64a8ec600008110156103da577f00000000000000000000000000000000000000000000000009b6e64a8ec6000061039e827f000000000000000000000000000000000000000000084595161401484a000000610947565b6103a8919061095e565b6103d2907f0000000000000000000000000000000000000000000000000000000000000000610980565b915050610672565b7f0000000000000000000000000000000000000000000000000c7d713b49da00008110156104fe5761044c7f00000000000000000000000000000000000000000000000009b6e64a8ec600007f0000000000000000000000000000000000000000000000000c7d713b49da0000610934565b6104767f00000000000000000000000000000000000000000000000009b6e64a8ec6000083610934565b6104a0907f0000000000000000000000000000000000000000000a56fa5b99019a5c800000610947565b6104aa919061095e565b6104f47f000000000000000000000000000000000000000000084595161401484a0000007f0000000000000000000000000000000000000000000000000000000000000000610980565b6103d29190610980565b82801561052857507f00000000000000000000000000000000000000000000000000000000000000015b1561055f576040517f351f03e300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105917f0000000000000000000000000000000000000000000000000c7d713b49da0000670de0b6b3a7640000610934565b6105bb7f0000000000000000000000000000000000000000000000000c7d713b49da000083610934565b6105e5907f0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000610947565b6105ef919061095e565b7f0000000000000000000000000000000000000000000a56fa5b99019a5c80000061065a7f000000000000000000000000000000000000000000084595161401484a0000007f0000000000000000000000000000000000000000000000000000000000000000610980565b6106649190610980565b61066e9190610980565b9150505b9392505050565b6000610687838360006102d0565b90505b92915050565b60007f000000000000000000000000000000000000000000000000000000000000000180156106bf5750818310155b80156106ca57508215155b15610778576000836106dc8482610934565b6106ee90670de0b6b3a7640000610947565b6106f8919061095e565b90507f0000000000000000000000000000000000000000000000000c7d713b49da00008110610728576000610770565b670de0b6b3a76400008461075c837f0000000000000000000000000000000000000000000000000c7d713b49da0000610934565b6107669190610947565b610770919061095e565b91505061068a565b508061068a565b6000808080808061079a612710670de0b6b3a764000061095e565b6107c4907f00000000000000000000000000000000000000000000000009b6e64a8ec6000061095e565b95506107da612710670de0b6b3a764000061095e565b610804907f0000000000000000000000000000000000000000000000000c7d713b49da000061095e565b945061081e6127106b033b2e3c9fd0803ce800000061095e565b610848907f000000000000000000000000000000000000000000000000000000000000000061095e565b93506108626127106b033b2e3c9fd0803ce800000061095e565b61088c907f000000000000000000000000000000000000000000084595161401484a00000061095e565b92506108a66127106b033b2e3c9fd0803ce800000061095e565b6108d0907f0000000000000000000000000000000000000000000a56fa5b99019a5c80000061095e565b91506108ea6127106b033b2e3c9fd0803ce800000061095e565b610914907f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000061095e565b9050909192939495565b634e487b7160e01b600052601160045260246000fd5b8181038181111561068a5761068a61091e565b808202811582820484141761068a5761068a61091e565b60008261097b57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561068a5761068a61091e56fea26469706673582212205ae1a1a33c8bb975c879fb250a8ab5a230bb55a5f6f11ae547e6d7e6b79ec79264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000001b58000000000000000000000000000000000000000000000000000000000000232800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : U_1 (uint16): 7000
Arg [1] : U_2 (uint16): 9000
Arg [2] : R_base (uint16): 0
Arg [3] : R_slope1 (uint16): 100
Arg [4] : R_slope2 (uint16): 125
Arg [5] : R_slope3 (uint16): 10000
Arg [6] : _isBorrowingMoreU2Forbidden (bool): True
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001b58
Arg [1] : 0000000000000000000000000000000000000000000000000000000000002328
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [4] : 000000000000000000000000000000000000000000000000000000000000007d
Arg [5] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
🤖 Code Reader
Generate instant answers for your smart contract questions using Al Models. Read more.
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.


