Source Code
Latest 9 internal transactions
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 152739379 | 90 days ago | Contract Creation | 0 ETH | |||
| 152739379 | 90 days ago | Contract Creation | 0 ETH | |||
| 152739379 | 90 days ago | Contract Creation | 0 ETH | |||
| 152739328 | 90 days ago | Contract Creation | 0 ETH | |||
| 152739328 | 90 days ago | Contract Creation | 0 ETH | |||
| 152739328 | 90 days ago | Contract Creation | 0 ETH | |||
| 152707737 | 90 days ago | Contract Creation | 0 ETH | |||
| 152707737 | 90 days ago | Contract Creation | 0 ETH | |||
| 152707737 | 90 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Source Code (Vyper Json-Input format)
Contract Security Audit
No Contract Security Audit SubmittedSubmit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"name":"blueprint_id","type":"string"},{"indexed":false,"name":"blueprint_address","type":"address"}],"name":"BlueprintSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previous_owner","type":"address"},{"indexed":true,"name":"new_owner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"fee_receiver","type":"address"}],"name":"SetFeeReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"uint256"},{"indexed":true,"name":"collateral_token","type":"address"},{"indexed":true,"name":"borrowed_token","type":"address"},{"indexed":false,"name":"vault","type":"address"},{"indexed":false,"name":"controller","type":"address"},{"indexed":false,"name":"amm","type":"address"},{"indexed":false,"name":"price_oracle","type":"address"},{"indexed":false,"name":"monetary_policy","type":"address"}],"name":"NewVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"controller","type":"address"},{"indexed":false,"name":"fee_receiver","type":"address"}],"name":"SetCustomFeeReceiver","type":"event"},{"inputs":[{"name":"new_owner","type":"address"}],"name":"transfer_ownership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"_borrowed_token","type":"address"},{"name":"_collateral_token","type":"address"},{"name":"_A","type":"uint256"},{"name":"_fee","type":"uint256"},{"name":"_loan_discount","type":"uint256"},{"name":"_liquidation_discount","type":"uint256"},{"name":"_price_oracle","type":"address"},{"name":"_monetary_policy","type":"address"},{"name":"_supply_limit","type":"uint256"}],"name":"create","outputs":[{"name":"","type":"address[3]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_n","type":"uint256"}],"name":"markets","outputs":[{"components":[{"name":"vault","type":"address"},{"name":"controller","type":"address"},{"name":"amm","type":"address"},{"name":"collateral_token","type":"address"},{"name":"borrowed_token","type":"address"},{"name":"price_oracle","type":"address"},{"name":"monetary_policy","type":"address"}],"name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"_vault","type":"address"}],"name":"vaults_index","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amm_blueprint","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller_blueprint","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault_blueprint","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller_view_blueprint","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee_receiver","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"_controller","type":"address"}],"name":"fee_receiver","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"_controller","type":"address"},{"name":"_fee_receiver","type":"address"}],"name":"set_custom_fee_receiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_fee_receiver","type":"address"}],"name":"set_default_fee_receiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_vault_id","type":"uint256"}],"name":"coins","outputs":[{"name":"","type":"address[2]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"market_count","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_A","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_A","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"default_fee_receiver","outputs":[{"name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"arg0","type":"address"}],"name":"check_contract","outputs":[{"components":[{"name":"market_index","type":"uint256"},{"name":"contract_type","type":"uint256"}],"name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"name":"_amm_blueprint","type":"address"},{"name":"_controller_blueprint","type":"address"},{"name":"_vault_blueprint","type":"address"},{"name":"_controller_view_blueprint","type":"address"},{"name":"_configurator","type":"address"},{"name":"_admin","type":"address"},{"name":"_fee_receiver","type":"address"}],"outputs":[],"stateMutability":"nonpayable","type":"constructor"}]Deployed Bytecode
0x5f3560e01c60026013820660011b611bc901601e395f51565b63f0350c0481186100fa57602436103417611bc5576004358060a01c611bc557610100526100446114c6565b610100516100e9576020806101a0526026610120527f6f776e61626c653a206e6577206f776e657220697320746865207a65726f2061610140527f646472657373000000000000000000000000000000000000000000000000000061016052610120816101a001604682825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610180528060040161019cfd5b610100516040526100f8611542565b005b63cab4d3db81186101135734611bc557336040526110d1565b633969841581186114c25734611bc55761271060405260206040f35b635c975abb811861014b5734611bc55760015460405260206040f35b63ad4359c981186101a65734611bc5575f5c600114611bc5576020600360a0527f435452000000000000000000000000000000000000000000000000000000000060c05260a060238160405e506101a260e06115f4565b60e0f35b638456cb5981186114c25734611bc5575f5c600114611bc55760015f5d6101cb6114c6565b6101d3611a2a565b5f5f5d005b6354fd4d5081186102565734611bc5575f5c600114611bc55760208060805260056040527f322e302e30000000000000000000000000000000000000000000000000000000606052604081608001602582825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506080f35b633fb85b1c8118610d855761012436103417611bc5576004358060a01c611bc5576101a0526024358060a01c611bc5576101c05260c4358060a01c611bc5576101e05260e4358060a01c611bc557610200525f5c600114611bc55760015f5d6102bd611579565b6101c0516101a051186103425760208061028052600a610220527f53616d6520746f6b656e00000000000000000000000000000000000000000000610240526102208161028001602a82825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610260528060040161027cfd5b60026044351015610353575f61035c565b61271060443511155b6103d857602080610280526007610220527f57726f6e67204100000000000000000000000000000000000000000000000000610240526102208161028001602782825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610260528060040161027cfd5b60a43561045757602080610280526018610220527f6c69717569646174696f6e20646973636f756e74203d20300000000000000000610240526102208161028001603882825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610260528060040161027cfd5b670de0b6b3a763ffff60843511156104e157602080610280526015610220527f6c6f616e20646973636f756e74203e3d20313030250000000000000000000000610240526102208161028001603582825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610260528060040161027cfd5b60a43560843511610589576020806102a0526025610220527f6c6f616e20646973636f756e74203c3d206c69717569646174696f6e20646973610240527f636f756e7400000000000000000000000000000000000000000000000000000061026052610220816102a001604582825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610280528060040161029cfd5b604435670de0b6b3a7640000810281670de0b6b3a7640000820418611bc557905060443560018103818111611bc55790508015611bc55780820490509050610220526101e05163a035b1fe610260526020610260600461027c845afa6105f1573d5f5f3e3d5ffd5b60203d10611bc557610260905051610240526102405115611bc557610240516101e05163ceb7f759610260526020610260600461027c5f855af1610637573d5f5f3e3d5ffd5b60203d10611bc55761026090505118611bc5576003610280527f564c5400000000000000000000000000000000000000000000000000000000006102a05261028060238160405e5061068a6102c06115f4565b6102c0516003813b035960018212611bc55781600382853c8181015081815ff0806106b7573d5f5f3e3d5ffd5b9050905090506102605260036102a0527f414d4d00000000000000000000000000000000000000000000000000000000006102c0526102a060238160405e506107016102e06115f4565b6102e0516101a0516103e0526103e051610540526101a05163313ce567610300526020610300600461031c845afa61073b573d5f5f3e3d5ffd5b3d602081183d6020100218806103000161032011611bc557610300518060081c611bc5576103405250610340905051806012038060081c611bc5579050604d8111611bc55780600a0a90506104005261040051610560526101c0516104205261042051610580526101c05163313ce567610360526020610360600461037c845afa6107c8573d5f5f3e3d5ffd5b3d602081183d6020100218806103600161038011611bc557610360518060081c611bc5576103a052506103a0905051806012038060081c611bc5579050604d8111611bc55780600a0a905061044052610440516105a05260443561046052610460516105c05261022051670de0b6b3a7640000810281670de0b6b3a7640000820418611bc55790508060b5710100000000000000000000000000000000008210610879578160801c91508060401b90505b69010000000000000000008210610897578160401c91508060201b90505b6501000000000082106108b1578160201c91508060101b90505b630100000082106108c9578160101c91508060081b90505b620100008201810260121c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808184040160011c9050808304808281188284100218905090509050905061048052610480516105e052610220518060ff1c611bc55760c0526109566103c0611746565b6103c0516104a0526104a05161060052610240516104c0526104c051610620526064356104e0526104e051610640525f6105005261050051610660526101e0516105205261052051610680526101606003823b035960018212611bc55781600382863c81810183610540825e50828201815ff0806109d6573d5f5f3e3d5ffd5b90509050905090506102805260036102c0527f43545200000000000000000000000000000000000000000000000000000000006102e0526102c060238160405e50610a226103006115f4565b610300516102605161038052610380516104a052610280516103a0526103a0516104c0526101a0516103c0526103c0516104e0526101c0516103e0526103e051610500526102005161040052610400516105205260843561042052610420516105405260a4356104405261044051610560526004610320527f43545256000000000000000000000000000000000000000000000000000000006103405261032060248160405e50610ad46103606115f4565b610360516104605261046051610580526020611e8f61048039610480516105a0526101206003823b035960018212611bc55781600382863c818101836104a0825e50828201815ff080610b29573d5f5f3e3d5ffd5b90509050905090506102a0526005546102c052670de0b6b3a7640007610260516020525f5260405f206102c05181556001600182015550670de0b6b3a76400076102a0516020525f5260405f206102c05181556002600182015550670de0b6b3a7640007610280516020525f5260405f206102c051815560046001820155506102805163e9333fab6102e0526102a05161030052803b15611bc5575f6102e060246102fc5f855af1610bdd573d5f5f3e3d5ffd5b506102605163f8c8765e6102e05260406102806103005e60406101a06103405e803b15611bc5575f6102e060846102fc5f855af1610c1d573d5f5f3e3d5ffd5b506102a0516369c6804e6102e052803b15611bc5575f6102e060046102fc5f855af1610c4b573d5f5f3e3d5ffd5b506101a0516101c0516102c0517f2a854a597908740dff5f0846840f167547ea0d7614c43bde3ea49be2e68c07ec610260516102e0526102a0516103005261028051610320526101e05161034052610200516103605260a06102e0a4600554670de0b6b3a763ffff8111611bc55761026051816006015560018101600555506102c0517001000000000000000000000000000000008101818110611bc5579050670de0b6b3a7640006610260516020525f5260405f20557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101043514610d635761026051638a938f2f6102e0526101043561030052803b15611bc5575f6102e060246102fc5f855af1610d61573d5f5f3e3d5ffd5b505b610260516102e0526102a05161030052610280516103205260606102e05f5f5df35b636e9fe67081186114c25734611bc557600260405260206040f35b63b1283e7781186114c257602436103417611bc557600435600554811015611bc5576006015460405260405163f77c4791608052602060806004609c845afa610deb573d5f5f3e3d5ffd5b3d602081183d60201002188060800160a011611bc5576080518060a01c611bc55760c0525060c0905051606052604051632a94394560a052602060a0600460bc845afa610e3a573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c011611bc55760a0518060a01c611bc55760e0525060e0905051608052606060406102205e604051632621db2f60a052602060a0600460bc845afa610e91573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c011611bc55760a0518060a01c611bc55760e0525060e09050516102805260405163765337b6610100526020610100600461011c845afa610ee4573d5f5f3e3d5ffd5b3d602081183d6020100218806101000161012011611bc557610100518060a01c611bc55761014052506101409050516102a052608051635ea0e01b610160526020610160600461017c845afa610f3c573d5f5f3e3d5ffd5b3d602081183d6020100218806101600161018011611bc557610160518060a01c611bc5576101a052506101a09050516102c05260605163adfae4ce6101c05260206101c060046101dc845afa610f94573d5f5f3e3d5ffd5b3d602081183d6020100218806101c0016101e011611bc5576101c0518060a01c611bc55761020052506102009050516102e05260e0610220f35b63bcf75a8f811861102d57602436103417611bc5576004358060a01c611bc557604052670de0b6b3a76400066040516020525f5260405f20547001000000000000000000000000000000008103818111611bc557905060605260206060f35b63fd775c7881186114c25734611bc5575f5c600114611bc55760055460405260206040f35b6324747f9781186110ad5734611bc5575f5c600114611bc5576020600360a0527f414d4d000000000000000000000000000000000000000000000000000000000060c05260a060238160405e506110a960e06115f4565b60e0f35b6372b38d98811861110857602436103417611bc5576004358060a01c611bc5576040525b5f5c600114611bc55760046040516020525f5260405f20546060526020606051156110fd576060611106565b60035460805260805bf35b63c661065781186114c257602436103417611bc557600435600554811015611bc5576006015460405260405163765337b6606052602060606004607c845afa611153573d5f5f3e3d5ffd5b3d602081183d602010021880606001608011611bc5576060518060a01c611bc55760a0525060a090505161012052604051632621db2f60c052602060c0600460dc845afa6111a3573d5f5f3e3d5ffd5b3d602081183d60201002188060c00160e011611bc55760c0518060a01c611bc5576101005250610100905051610140526040610120f35b6305f16b0f81186112355734611bc5575f5c600114611bc5576020600360a0527f564c54000000000000000000000000000000000000000000000000000000000060c05260a060238160405e5061123160e06115f4565b60e0f35b63f851a44081186112505734611bc5575f5460405260206040f35b63ab12e41381186114c257604436103417611bc5576004358060a01c611bc557610100526024358060a01c611bc5576101205261128b6114c6565b670de0b6b3a7640007610100516020525f5260405f20805461014052600181015461016052506002610160511815611335576020806101e0526010610180527f6e6f74206120636f6e74726f6c6c6572000000000000000000000000000000006101a052610180816101e001603082825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a06101c052806004016101dcfd5b610120516004610100516020525f5260405f2055610100517f77ee820cf15a6616d8aa6d5483da8532e3840422c3c552284d7e02be6c9d8e7661012051610180526020610180a2005b6337042c3581186114c25734611bc5575f5c600114611bc5576020600460a0527f435452560000000000000000000000000000000000000000000000000000000060c05260a060248160405e506113d560e06115f4565b60e0f35b633f4ba83a81186114c25734611bc5575f5c600114611bc55760015f5d6113fe6114c6565b611406611adf565b5f5f5d005b632a6dc2dd81186114c257602436103417611bc5576004358060a01c611bc557610120526114376114c6565b61012051604052611446611b19565b005b63257626f4811861146d5734611bc5575f5c600114611bc55760035460405260206040f35b63771cc9d381186114c257602436103417611bc5576004358060a01c611bc5576040525f5c600114611bc557670de0b6b3a76400076040516020525f5260405f20805460605260018101546080525060406060f35b5f5ffd5b5f543318156115405760208060a05260206040527f6f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260605260408160a001604082825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a060805280600401609cfd5b565b5f546060526040515f556040516060517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f6080a3565b600154156115f25760208060a052601c6040527f7061757361626c653a20636f6e7472616374206973207061757365640000000060605260408160a001603c82825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a060805280600401609cfd5b565b60026040516060206020525f5260405f205460805260805115611bc557608051815250565b604051611629575f815250611744565b6040516080525f60a05260405160801c1561164d5760405160801c604052608060a0525b60405160401c1561166b5760405160401c604052604060a0510160a0525b60405160201c156116895760405160201c604052602060a0510160a0525b60405160101c156116a75760405160101c604052601060a0510160a0525b60405160081c156116c55760405160081c604052600860a0510160a0525b60405160041c156116e35760405160041c604052600460a0510160a0525b60405160021c156117015760405160021c604052600260a0510160a0525b60405160011c1561171657600160a0510160a0525b606051611723575f61172e565b608051600160a0511b105b1561173d57600160a0510160a0525b60a0518152505b565b5f60c05112156117c65760208061014052601660e0527f6d6174683a207761645f6c6e20756e646566696e6564000000000000000000006101005260e08161014001603682825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a0610120528060040161013cfd5b60c0516117d6575f815250611a28565b606060c0515f8112611bc5576040525f6060526117f4610100611619565b610100518060ff1c611bc5570360e05260c05160e051609f035f8112611bc5571b609f1c8060ff1c611bc55760c0526d0139601a2efabe717e604cbb489460c0516c29508e458543d8aa4df2abee7860c051010260601d01610100526d02247f7a7b6594320649aa03aba160c051610100510260601d01610100526c8c3f38e95a6b1ff2ab1c3b343760c051610100510260601d03610100526d02384773bdf1ac5676facced609160c051610100510260601d03610100526cb9a025d814b29c212b8b1a07ce60c051610100510260601d0361010052780a09507084cc699bb0e71ea86a00000000000000000000000060c051610100510203610100526d0388eaa27412d5aca026815d636e60c0516c465772b2bbbb5f824b15207a3060c051010260601d01610120526d0df99ac502031bf953eff472fdcc60c051610120510260601d01610120526d13cdffb29d51d99322bdff5f221160c051610120510260601d01610120526d0a0f742023def783a307a986912e60c051610120510260601d01610120526d01920d8043ca89b5239253284e4260c051610120510260601d01610120526c0b7a86d7375468fac667a0a52760c051610120510260601d0161012052610120516101005105610140527d57115e47018c7177eebf7cd370a3356a1b7863008a5ae8028c72b88642847d0267a36c0c95b3975ab3ee5b203a7614a3f75373f047d803ae7b6687f2b360e05102711340daa0d5f769dba1915cef59f0815a55066101405102010160ae1d8152505b565b611a32611579565b60016001557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610100526020610100a1565b600154611add5760208060a05260206040527f7061757361626c653a20636f6e7472616374206973206e6f742070617573656460605260408160a001604082825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a060805280600401609cfd5b565b611ae7611a65565b5f6001557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610100526020610100a1565b604051611b915760208060c05260106060527f696e76616c69642072656365697665720000000000000000000000000000000060805260608160c001603082825e8051806020830101601f825f03163682375050601f19601f8251602001011690509050810190506308c379a060a0528060040160bcfd5b6040516003557fffb40bfdfd246e95f543d08d9713c339f1d90fa9265e39b4f562f9011d7c919f60405160605260206060a1565b5f80fd14c214c2012f14c201d8001814c20da00fce14c2144813d914c2140b11da14c214c21052137e00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003414d4d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000343545200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003564c54000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044354525600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d36c590531caf5f620c57faf5827ce8e7f6e5bec
🤖 Code Reader
Generate instant answers for your smart contract questions using Al Models. Read more.
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 30 Chains
Tokens
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.