Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,548 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20462202 | 25 days ago | IN | 0 ETH | 0.00151218 | ||||
Withdraw | 20461712 | 25 days ago | IN | 0 ETH | 0.00089715 | ||||
Withdraw | 20448426 | 27 days ago | IN | 0 ETH | 0.0001113 | ||||
Withdraw | 20410434 | 32 days ago | IN | 0 ETH | 0.00005285 | ||||
Withdraw | 20410423 | 32 days ago | IN | 0 ETH | 0.00005146 | ||||
Withdraw | 20410408 | 32 days ago | IN | 0 ETH | 0.00005396 | ||||
Withdraw | 20410404 | 32 days ago | IN | 0 ETH | 0.00005396 | ||||
Withdraw | 20361544 | 39 days ago | IN | 0 ETH | 0.0002632 | ||||
Withdraw | 20277431 | 51 days ago | IN | 0 ETH | 0.00048407 | ||||
Withdraw | 20275576 | 51 days ago | IN | 0 ETH | 0.0002546 | ||||
Withdraw | 20224928 | 58 days ago | IN | 0 ETH | 0.00022501 | ||||
Withdraw | 20214644 | 59 days ago | IN | 0 ETH | 0.00027168 | ||||
Withdraw | 20200561 | 61 days ago | IN | 0 ETH | 0.00009808 | ||||
Withdraw | 20164378 | 66 days ago | IN | 0 ETH | 0.00056711 | ||||
Withdraw | 20162346 | 67 days ago | IN | 0 ETH | 0.00063779 | ||||
Withdraw | 20157792 | 67 days ago | IN | 0 ETH | 0.00015493 | ||||
Withdraw | 20154388 | 68 days ago | IN | 0 ETH | 0.00014906 | ||||
Withdraw | 20153937 | 68 days ago | IN | 0 ETH | 0.00017185 | ||||
Withdraw | 20144190 | 69 days ago | IN | 0 ETH | 0.00014736 | ||||
Withdraw | 20118253 | 73 days ago | IN | 0 ETH | 0.00024333 | ||||
Withdraw | 20071699 | 79 days ago | IN | 0 ETH | 0.00050362 | ||||
Withdraw | 20071679 | 79 days ago | IN | 0 ETH | 0.0006535 | ||||
Withdraw | 20060990 | 81 days ago | IN | 0 ETH | 0.00029728 | ||||
Withdraw | 19985654 | 91 days ago | IN | 0 ETH | 0.00042989 | ||||
Withdraw | 19860326 | 109 days ago | IN | 0 ETH | 0.00033639 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19968642 | 94 days ago | 0.00040225 ETH | ||||
19968642 | 94 days ago | 0.00040225 ETH | ||||
19535512 | 154 days ago | 0.0007968 ETH | ||||
19535491 | 154 days ago | 0.0007968 ETH | ||||
19503966 | 159 days ago | 0.00038101 ETH | ||||
19495081 | 160 days ago | 0.00038442 ETH | ||||
19450768 | 166 days ago | 0.00067182 ETH | ||||
19424465 | 170 days ago | 0.00091353 ETH | ||||
19417875 | 171 days ago | 0.00117375 ETH | ||||
19393160 | 174 days ago | 0.00151266 ETH | ||||
19303460 | 187 days ago | 0.00052559 ETH | ||||
19285566 | 189 days ago | 0.00131736 ETH | ||||
19260665 | 193 days ago | 0.00059635 ETH | ||||
19211008 | 200 days ago | 0.00046129 ETH | ||||
19206519 | 201 days ago | 0.00055869 ETH | ||||
19174293 | 205 days ago | 0.00066193 ETH | ||||
19136810 | 210 days ago | 0.00057681 ETH | ||||
19129944 | 211 days ago | 0.00055815 ETH | ||||
19120301 | 213 days ago | 0.00097503 ETH | ||||
19112631 | 214 days ago | 0.00040948 ETH | ||||
19085379 | 218 days ago | 0.0006537 ETH | ||||
19078789 | 219 days ago | 0.0002735 ETH | ||||
19070039 | 220 days ago | 0.00036861 ETH | ||||
19061235 | 221 days ago | 0.0010359 ETH | ||||
19061235 | 221 days ago | 0.0010359 ETH |
Loading...
Loading
Contract Name:
L1DAIBridge
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-or-later // Copyright (C) 2021 Dai Foundation // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. pragma solidity ^0.8.14; interface TokenLike { function transferFrom( address from, address to, uint256 value ) external returns (bool success); function balanceOf(address account) external view returns (uint256); } interface StarkNetLike { function sendMessageToL2( uint256 to, uint256 selector, uint256[] calldata payload ) external payable returns (bytes32); function consumeMessageFromL2( uint256 from, uint256[] calldata payload ) external returns (bytes32); function startL1ToL2MessageCancellation( uint256 toAddress, uint256 selector, uint256[] calldata payload, uint256 nonce ) external; function cancelL1ToL2Message( uint256 toAddress, uint256 selector, uint256[] calldata payload, uint256 nonce ) external; } contract L1DAIBridge { // --- Auth --- mapping(address => uint256) public wards; function rely(address usr) external auth { wards[usr] = 1; emit Rely(usr); } function deny(address usr) external auth { wards[usr] = 0; emit Deny(usr); } modifier auth() { require(wards[msg.sender] == 1, "L1DAIBridge/not-authorized"); _; } event Rely(address indexed usr); event Deny(address indexed usr); uint256 public isOpen = 1; modifier whenOpen() { require(isOpen == 1, "L1DAIBridge/closed"); _; } function close() external auth { isOpen = 0; emit Closed(); } event Closed(); address public immutable starkNet; address public immutable dai; uint256 public immutable l2Dai; address public immutable escrow; uint256 public immutable l2DaiBridge; uint256 public ceiling = 0; uint256 public maxDeposit = type(uint256).max; uint256 constant HANDLE_WITHDRAW = 0; // src/starkware/cairo/lang/cairo_constants.py // 2 ** 251 + 17 * 2 ** 192 + 1; uint256 constant SN_PRIME = 3618502788666131213697322783095070105623107215331596699973092056135872020481; // from starkware.starknet.compiler.compile import get_selector_from_name // print(get_selector_from_name('handle_deposit')) uint256 constant DEPOSIT = 1285101517810983806491589552491143496277809242732141897358598292095611420389; // print(get_selector_from_name('handle_force_withdrawal')) uint256 constant FORCE_WITHDRAW = 1137729855293860737061629600728503767337326808607526258057644140918272132445; event LogCeiling(uint256 ceiling); event LogMaxDeposit(uint256 maxDeposit); event LogDeposit(address indexed l1Sender, uint256 amount, uint256 l2Recipient); event LogWithdrawal(address indexed l1Recipient, uint256 amount); event LogForceWithdrawal(address indexed l1Recipient, uint256 amount, uint256 indexed l2Sender); event LogStartDepositCancellation(uint256 indexed l2Receipient, uint256 amount, uint256 nonce); event LogCancelDeposit( uint256 indexed l2Recipient, address l1Recipient, uint256 amount, uint256 nonce ); constructor( address _starkNet, address _dai, uint256 _l2Dai, address _escrow, uint256 _l2DaiBridge ) { wards[msg.sender] = 1; emit Rely(msg.sender); starkNet = _starkNet; dai = _dai; l2Dai = _l2Dai; escrow = _escrow; l2DaiBridge = _l2DaiBridge; } function setCeiling(uint256 _ceiling) external auth whenOpen { ceiling = _ceiling; emit LogCeiling(_ceiling); } function setMaxDeposit(uint256 _maxDeposit) external auth whenOpen { maxDeposit = _maxDeposit; emit LogMaxDeposit(_maxDeposit); } // slither-disable-next-line similar-names function deposit( uint256 amount, uint256 l2Recipient ) external payable whenOpen { emit LogDeposit(msg.sender, amount, l2Recipient); require(l2Recipient != 0 && l2Recipient != l2Dai && l2Recipient < SN_PRIME, "L1DAIBridge/invalid-address"); require(amount <= maxDeposit, "L1DAIBridge/above-max-deposit"); TokenLike(dai).transferFrom(msg.sender, escrow, amount); require( TokenLike(dai).balanceOf(escrow) <= ceiling, "L1DAIBridge/above-ceiling" ); uint256[] memory payload = new uint256[](4); payload[0] = l2Recipient; (payload[1], payload[2]) = toSplitUint(amount); payload[3] = uint256(uint160(msg.sender)); StarkNetLike(starkNet).sendMessageToL2{value: msg.value}(l2DaiBridge, DEPOSIT, payload); } function toSplitUint(uint256 value) internal pure returns (uint256, uint256) { uint256 low = value & ((1 << 128) - 1); uint256 high = value >> 128; return (low, high); } // slither-disable-next-line similar-names function withdraw(uint256 amount, address l1Recipient) external { emit LogWithdrawal(l1Recipient, amount); uint256[] memory payload = new uint256[](4); payload[0] = HANDLE_WITHDRAW; payload[1] = uint256(uint160(msg.sender)); (payload[2], payload[3]) = toSplitUint(amount); StarkNetLike(starkNet).consumeMessageFromL2(l2DaiBridge, payload); TokenLike(dai).transferFrom(escrow, l1Recipient, amount); } function forceWithdrawal(uint256 amount, uint256 l2Sender) external payable whenOpen { emit LogForceWithdrawal(msg.sender, amount, l2Sender); uint256[] memory payload = new uint256[](4); payload[0] = l2Sender; payload[1] = uint256(uint160(msg.sender)); (payload[2], payload[3]) = toSplitUint(amount); StarkNetLike(starkNet).sendMessageToL2{value: msg.value}(l2DaiBridge, FORCE_WITHDRAW, payload); } function startDepositCancellation( uint256 amount, uint256 l2Recipient, uint256 nonce ) external { emit LogStartDepositCancellation(l2Recipient, amount, nonce); uint256[] memory payload = new uint256[](4); payload[0] = l2Recipient; (payload[1], payload[2]) = toSplitUint(amount); payload[3] = uint256(uint160(msg.sender)); StarkNetLike(starkNet).startL1ToL2MessageCancellation(l2DaiBridge, DEPOSIT, payload, nonce); } function cancelDeposit( uint256 amount, uint256 l2Recipient, // slither-disable-next-line similar-names address l1Recipient, uint256 nonce ) external { emit LogCancelDeposit(l2Recipient, l1Recipient, amount, nonce); uint256[] memory payload = new uint256[](4); payload[0] = l2Recipient; (payload[1], payload[2]) = toSplitUint(amount); payload[3] = uint256(uint160(msg.sender)); StarkNetLike(starkNet).cancelL1ToL2Message(l2DaiBridge, DEPOSIT, payload, nonce); TokenLike(dai).transferFrom(escrow, l1Recipient, amount); } }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_starkNet","type":"address"},{"internalType":"address","name":"_dai","type":"address"},{"internalType":"uint256","name":"_l2Dai","type":"uint256"},{"internalType":"address","name":"_escrow","type":"address"},{"internalType":"uint256","name":"_l2DaiBridge","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Closed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"}],"name":"Deny","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"l2Recipient","type":"uint256"},{"indexed":false,"internalType":"address","name":"l1Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"LogCancelDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ceiling","type":"uint256"}],"name":"LogCeiling","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"l1Sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"l2Recipient","type":"uint256"}],"name":"LogDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"l1Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"l2Sender","type":"uint256"}],"name":"LogForceWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxDeposit","type":"uint256"}],"name":"LogMaxDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"l2Receipient","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"LogStartDepositCancellation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"l1Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"}],"name":"Rely","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"l2Recipient","type":"uint256"},{"internalType":"address","name":"l1Recipient","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"cancelDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ceiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"close","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dai","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"l2Recipient","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"l2Sender","type":"uint256"}],"name":"forceWithdrawal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isOpen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2Dai","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2DaiBridge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ceiling","type":"uint256"}],"name":"setCeiling","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxDeposit","type":"uint256"}],"name":"setMaxDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"starkNet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"l2Recipient","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"startDepositCancellation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"l1Recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040526001805560006002556000196003553480156200002157600080fd5b5060405162001907380380620019078339810160408190526200004491620000c4565b3360008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a26001600160a01b0394851660805292841660a05260c09190915290911660e0526101005262000122565b80516001600160a01b0381168114620000bf57600080fd5b919050565b600080600080600060a08688031215620000dd57600080fd5b620000e886620000a7565b9450620000f860208701620000a7565b9350604086015192506200010f60608701620000a7565b9150608086015190509295509295909350565b60805160a05160c05160e0516101005161171b620001ec6000396000818161023a015281816105490152818161090001528181610b820152818161129d01526114af01526000818161039a015281816105ce0152818161099501528181610fff01526110b60152600081816101cd0152610ef60152600081816103ce01528181610605015281816109cc0152818161102e01526110de01526000818161017c0152818161051c015281816108d301528181610b550152818161126e0152611480015261171b6000f3fe6080604052600436106101435760003560e01c8063753ed1bd116100c0578063bf353dbb11610074578063e2fdcc1711610059578063e2fdcc1714610388578063f4b9fa75146103bc578063fd1275eb146103f057600080fd5b8063bf353dbb14610348578063e2bbb1581461037557600080fd5b80638f02cf97116100a55780638f02cf97146102e85780639c52a7f114610308578063bb371fdd1461032857600080fd5b8063753ed1bd146102b25780637c1c29ac146102c857600080fd5b806347535d7b116101175780636083e59a116100fc5780636083e59a1461025c57806365fae35e146102725780636c6e4ae31461029257600080fd5b806347535d7b146102125780635417908f1461022857600080fd5b8062f714ce146101485780630b43773e1461016a578063422e67f4146101bb57806343d726d6146101fd575b600080fd5b34801561015457600080fd5b50610168610163366004611517565b610403565b005b34801561017657600080fd5b5061019e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101c757600080fd5b506101ef7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101b2565b34801561020957600080fd5b50610168610678565b34801561021e57600080fd5b506101ef60015481565b34801561023457600080fd5b506101ef7f000000000000000000000000000000000000000000000000000000000000000081565b34801561026857600080fd5b506101ef60035481565b34801561027e57600080fd5b5061016861028d366004611543565b61070c565b34801561029e57600080fd5b506101686102ad366004611565565b6107b0565b3480156102be57600080fd5b506101ef60025481565b3480156102d457600080fd5b506101686102e33660046115a2565b610a43565b3480156102f457600080fd5b506101686103033660046115ce565b610c08565b34801561031457600080fd5b50610168610323366004611543565b610cea565b34801561033457600080fd5b506101686103433660046115ce565b610d8d565b34801561035457600080fd5b506101ef610363366004611543565b60006020819052908152604090205481565b6101686103833660046115e7565b610e68565b34801561039457600080fd5b5061019e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103c857600080fd5b5061019e7f000000000000000000000000000000000000000000000000000000000000000081565b6101686103fe3660046115e7565b61132c565b806001600160a01b03167fb4214c8c54fc7442f36d3682f59aebaf09358a4431835b30efb29d52cf9e1e918360405161043e91815260200190565b60405180910390a260408051600480825260a082019092526000916020820160808036833701905050905060008160008151811061047e5761047e611609565b602002602001018181525050336001600160a01b0316816001815181106104a7576104a7611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8316608084901c826002815181106104dd576104dd611609565b60200260200101836003815181106104f7576104f7611609565b60209081029190910101919091525260405162b2775760e61b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632c9dd5c090610573907f000000000000000000000000000000000000000000000000000000000000000090859060040161165a565b6020604051808303816000875af1158015610592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b6919061167b565b506040516323b872dd60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301528381166024830152604482018590527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af115801561064e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106729190611694565b50505050565b336000908152602081905260409020546001146106dc5760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064015b60405180910390fd5b600060018190556040517f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a9190a1565b3360009081526020819052604090205460011461076b5760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b6001600160a01b03811660008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a250565b604080516001600160a01b03841681526020810186905290810182905283907f27342a36c014a937136f67690b80039f954cc7acd1d6a2f5bca3f3d3e7b948379060600160405180910390a260408051600480825260a0820190925260009160208201608080368337019050509050838160008151811061083357610833611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8516608086901c8260018151811061086957610869611609565b602002602001018360028151811061088357610883611609565b6020026020010182815250828152505050336001600160a01b0316816003815181106108b1576108b1611609565b6020908102919091010152604051636170ff1b60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636170ff1b9061094e907f0000000000000000000000000000000000000000000000000000000000000000907f02d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee590869088906004016116b6565b600060405180830381600087803b15801561096857600080fd5b505af115801561097c573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301528681166024830152604482018990527f00000000000000000000000000000000000000000000000000000000000000001692506323b872dd91506064016020604051808303816000875af1158015610a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3b9190611694565b505050505050565b604080518481526020810183905283917fb8b6bc18e48f410a36e8867df19f26eb867bad25616833b0ed9141f6d8933929910160405180910390a260408051600480825260a08201909252600091602082016080803683370190505090508281600081518110610ab557610ab5611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8416608085901c82600181518110610aeb57610aeb611609565b6020026020010183600281518110610b0557610b05611609565b6020026020010182815250828152505050336001600160a01b031681600381518110610b3357610b33611609565b6020908102919091010152604051637a98660b60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637a98660b90610bd0907f0000000000000000000000000000000000000000000000000000000000000000907f02d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee590869088906004016116b6565b600060405180830381600087803b158015610bea57600080fd5b505af1158015610bfe573d6000803e3d6000fd5b5050505050505050565b33600090815260208190526040902054600114610c675760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b600154600114610cae5760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b60028190556040518181527f6defc6f2eb7fe7d2a05d39d89d53405300c4dafb0e9cd1d6affeb7c02a9c3e54906020015b60405180910390a150565b33600090815260208190526040902054600114610d495760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b6001600160a01b038116600081815260208190526040808220829055517f184450df2e323acec0ed3b5c7531b81f9b4cdef7914dfd4c0a4317416bb5251b9190a250565b33600090815260208190526040902054600114610dec5760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b600154600114610e335760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b60038190556040518181527f0abf56f125eb3b9ec6b166b22f262406810c29da2da4c902a6ee31694ae11a3990602001610cdf565b600154600114610eaf5760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b604080518381526020810183905233917f9dbb0e7dda3e09710ce75b801addc87cf9d9c6c581641b3275fca409ad086c62910160405180910390a28015801590610f1957507f00000000000000000000000000000000000000000000000000000000000000008114155b8015610f4457507f080000000000001100000000000000000000000000000000000000000000000181105b610f905760405162461bcd60e51b815260206004820152601b60248201527f4c314441494272696467652f696e76616c69642d61646472657373000000000060448201526064016106d3565b600354821115610fe25760405162461bcd60e51b815260206004820152601d60248201527f4c314441494272696467652f61626f76652d6d61782d6465706f73697400000060448201526064016106d3565b6040516323b872dd60e01b81523360048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015611077573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109b9190611694565b506002546040516370a0823160e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611125573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611149919061167b565b11156111975760405162461bcd60e51b815260206004820152601960248201527f4c314441494272696467652f61626f76652d6365696c696e670000000000000060448201526064016106d3565b60408051600480825260a082019092526000916020820160808036833701905050905081816000815181106111ce576111ce611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8316608084901c8260018151811061120457611204611609565b602002602001018360028151811061121e5761121e611609565b6020026020010182815250828152505050336001600160a01b03168160038151811061124c5761124c611609565b6020908102919091010152604051633e3aa6c560e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633e3aa6c59034906112e9907f0000000000000000000000000000000000000000000000000000000000000000907f02d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee59087906004016116e6565b60206040518083038185885af1158015611307573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610672919061167b565b6001546001146113735760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b604051828152819033907fdee288762e02cf1a2e99896626b9675625e9fa32cce23d9ee7d490763436eaa39060200160405180910390a360408051600480825260a082019092526000916020820160808036833701905050905081816000815181106113e1576113e1611609565b602002602001018181525050336001600160a01b03168160018151811061140a5761140a611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8316608084901c8260028151811061144057611440611609565b602002602001018360038151811061145a5761145a611609565b602090810291909101019190915252604051633e3aa6c560e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690633e3aa6c59034906112e9907f0000000000000000000000000000000000000000000000000000000000000000907f0283eea9c550fc21d0a9053ca1a8ee6f1cb531fd758474d1b82cc67c236b855d9087906004016116e6565b80356001600160a01b038116811461151257600080fd5b919050565b6000806040838503121561152a57600080fd5b8235915061153a602084016114fb565b90509250929050565b60006020828403121561155557600080fd5b61155e826114fb565b9392505050565b6000806000806080858703121561157b57600080fd5b8435935060208501359250611592604086016114fb565b9396929550929360600135925050565b6000806000606084860312156115b757600080fd5b505081359360208301359350604090920135919050565b6000602082840312156115e057600080fd5b5035919050565b600080604083850312156115fa57600080fd5b50508035926020909101359150565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b8381101561164f57815187529582019590820190600101611633565b509495945050505050565b828152604060208201526000611673604083018461161f565b949350505050565b60006020828403121561168d57600080fd5b5051919050565b6000602082840312156116a657600080fd5b8151801515811461155e57600080fd5b8481528360208201526080604082015260006116d5608083018561161f565b905082606083015295945050505050565b838152826020820152606060408201526000611705606083018461161f565b9594505050505056fea164736f6c634300080e000a000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c40000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb30000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60
Deployed Bytecode
0x6080604052600436106101435760003560e01c8063753ed1bd116100c0578063bf353dbb11610074578063e2fdcc1711610059578063e2fdcc1714610388578063f4b9fa75146103bc578063fd1275eb146103f057600080fd5b8063bf353dbb14610348578063e2bbb1581461037557600080fd5b80638f02cf97116100a55780638f02cf97146102e85780639c52a7f114610308578063bb371fdd1461032857600080fd5b8063753ed1bd146102b25780637c1c29ac146102c857600080fd5b806347535d7b116101175780636083e59a116100fc5780636083e59a1461025c57806365fae35e146102725780636c6e4ae31461029257600080fd5b806347535d7b146102125780635417908f1461022857600080fd5b8062f714ce146101485780630b43773e1461016a578063422e67f4146101bb57806343d726d6146101fd575b600080fd5b34801561015457600080fd5b50610168610163366004611517565b610403565b005b34801561017657600080fd5b5061019e7f000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c481565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101c757600080fd5b506101ef7f00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb381565b6040519081526020016101b2565b34801561020957600080fd5b50610168610678565b34801561021e57600080fd5b506101ef60015481565b34801561023457600080fd5b506101ef7f075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e6081565b34801561026857600080fd5b506101ef60035481565b34801561027e57600080fd5b5061016861028d366004611543565b61070c565b34801561029e57600080fd5b506101686102ad366004611565565b6107b0565b3480156102be57600080fd5b506101ef60025481565b3480156102d457600080fd5b506101686102e33660046115a2565b610a43565b3480156102f457600080fd5b506101686103033660046115ce565b610c08565b34801561031457600080fd5b50610168610323366004611543565b610cea565b34801561033457600080fd5b506101686103433660046115ce565b610d8d565b34801561035457600080fd5b506101ef610363366004611543565b60006020819052908152604090205481565b6101686103833660046115e7565b610e68565b34801561039457600080fd5b5061019e7f0000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c81565b3480156103c857600080fd5b5061019e7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f81565b6101686103fe3660046115e7565b61132c565b806001600160a01b03167fb4214c8c54fc7442f36d3682f59aebaf09358a4431835b30efb29d52cf9e1e918360405161043e91815260200190565b60405180910390a260408051600480825260a082019092526000916020820160808036833701905050905060008160008151811061047e5761047e611609565b602002602001018181525050336001600160a01b0316816001815181106104a7576104a7611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8316608084901c826002815181106104dd576104dd611609565b60200260200101836003815181106104f7576104f7611609565b60209081029190910101919091525260405162b2775760e61b81526001600160a01b037f000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c41690632c9dd5c090610573907f075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e6090859060040161165a565b6020604051808303816000875af1158015610592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b6919061167b565b506040516323b872dd60e01b81526001600160a01b037f0000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c811660048301528381166024830152604482018590527f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f16906323b872dd906064016020604051808303816000875af115801561064e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106729190611694565b50505050565b336000908152602081905260409020546001146106dc5760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064015b60405180910390fd5b600060018190556040517f1cdde67b72a90f19919ac732a437ac2f7a10fc128d28c2a6e525d89ce5cd9d3a9190a1565b3360009081526020819052604090205460011461076b5760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b6001600160a01b03811660008181526020819052604080822060019055517fdd0e34038ac38b2a1ce960229778ac48a8719bc900b6c4f8d0475c6e8b385a609190a250565b604080516001600160a01b03841681526020810186905290810182905283907f27342a36c014a937136f67690b80039f954cc7acd1d6a2f5bca3f3d3e7b948379060600160405180910390a260408051600480825260a0820190925260009160208201608080368337019050509050838160008151811061083357610833611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8516608086901c8260018151811061086957610869611609565b602002602001018360028151811061088357610883611609565b6020026020010182815250828152505050336001600160a01b0316816003815181106108b1576108b1611609565b6020908102919091010152604051636170ff1b60e01b81526001600160a01b037f000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c41690636170ff1b9061094e907f075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60907f02d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee590869088906004016116b6565b600060405180830381600087803b15801561096857600080fd5b505af115801561097c573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f0000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c811660048301528681166024830152604482018990527f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f1692506323b872dd91506064016020604051808303816000875af1158015610a17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3b9190611694565b505050505050565b604080518481526020810183905283917fb8b6bc18e48f410a36e8867df19f26eb867bad25616833b0ed9141f6d8933929910160405180910390a260408051600480825260a08201909252600091602082016080803683370190505090508281600081518110610ab557610ab5611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8416608085901c82600181518110610aeb57610aeb611609565b6020026020010183600281518110610b0557610b05611609565b6020026020010182815250828152505050336001600160a01b031681600381518110610b3357610b33611609565b6020908102919091010152604051637a98660b60e01b81526001600160a01b037f000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c41690637a98660b90610bd0907f075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60907f02d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee590869088906004016116b6565b600060405180830381600087803b158015610bea57600080fd5b505af1158015610bfe573d6000803e3d6000fd5b5050505050505050565b33600090815260208190526040902054600114610c675760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b600154600114610cae5760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b60028190556040518181527f6defc6f2eb7fe7d2a05d39d89d53405300c4dafb0e9cd1d6affeb7c02a9c3e54906020015b60405180910390a150565b33600090815260208190526040902054600114610d495760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b6001600160a01b038116600081815260208190526040808220829055517f184450df2e323acec0ed3b5c7531b81f9b4cdef7914dfd4c0a4317416bb5251b9190a250565b33600090815260208190526040902054600114610dec5760405162461bcd60e51b815260206004820152601a60248201527f4c314441494272696467652f6e6f742d617574686f72697a656400000000000060448201526064016106d3565b600154600114610e335760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b60038190556040518181527f0abf56f125eb3b9ec6b166b22f262406810c29da2da4c902a6ee31694ae11a3990602001610cdf565b600154600114610eaf5760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b604080518381526020810183905233917f9dbb0e7dda3e09710ce75b801addc87cf9d9c6c581641b3275fca409ad086c62910160405180910390a28015801590610f1957507f00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb38114155b8015610f4457507f080000000000001100000000000000000000000000000000000000000000000181105b610f905760405162461bcd60e51b815260206004820152601b60248201527f4c314441494272696467652f696e76616c69642d61646472657373000000000060448201526064016106d3565b600354821115610fe25760405162461bcd60e51b815260206004820152601d60248201527f4c314441494272696467652f61626f76652d6d61782d6465706f73697400000060448201526064016106d3565b6040516323b872dd60e01b81523360048201526001600160a01b037f0000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c81166024830152604482018490527f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f16906323b872dd906064016020604051808303816000875af1158015611077573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109b9190611694565b506002546040516370a0823160e01b81526001600160a01b037f0000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c811660048301527f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f16906370a0823190602401602060405180830381865afa158015611125573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611149919061167b565b11156111975760405162461bcd60e51b815260206004820152601960248201527f4c314441494272696467652f61626f76652d6365696c696e670000000000000060448201526064016106d3565b60408051600480825260a082019092526000916020820160808036833701905050905081816000815181106111ce576111ce611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8316608084901c8260018151811061120457611204611609565b602002602001018360028151811061121e5761121e611609565b6020026020010182815250828152505050336001600160a01b03168160038151811061124c5761124c611609565b6020908102919091010152604051633e3aa6c560e01b81526001600160a01b037f000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c41690633e3aa6c59034906112e9907f075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60907f02d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee59087906004016116e6565b60206040518083038185885af1158015611307573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610672919061167b565b6001546001146113735760405162461bcd60e51b8152602060048201526012602482015271130c511052509c9a5919d94bd8db1bdcd95960721b60448201526064016106d3565b604051828152819033907fdee288762e02cf1a2e99896626b9675625e9fa32cce23d9ee7d490763436eaa39060200160405180910390a360408051600480825260a082019092526000916020820160808036833701905050905081816000815181106113e1576113e1611609565b602002602001018181525050336001600160a01b03168160018151811061140a5761140a611609565b60209081029190910101526fffffffffffffffffffffffffffffffff8316608084901c8260028151811061144057611440611609565b602002602001018360038151811061145a5761145a611609565b602090810291909101019190915252604051633e3aa6c560e01b81526001600160a01b037f000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c41690633e3aa6c59034906112e9907f075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60907f0283eea9c550fc21d0a9053ca1a8ee6f1cb531fd758474d1b82cc67c236b855d9087906004016116e6565b80356001600160a01b038116811461151257600080fd5b919050565b6000806040838503121561152a57600080fd5b8235915061153a602084016114fb565b90509250929050565b60006020828403121561155557600080fd5b61155e826114fb565b9392505050565b6000806000806080858703121561157b57600080fd5b8435935060208501359250611592604086016114fb565b9396929550929360600135925050565b6000806000606084860312156115b757600080fd5b505081359360208301359350604090920135919050565b6000602082840312156115e057600080fd5b5035919050565b600080604083850312156115fa57600080fd5b50508035926020909101359150565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b8381101561164f57815187529582019590820190600101611633565b509495945050505050565b828152604060208201526000611673604083018461161f565b949350505050565b60006020828403121561168d57600080fd5b5051919050565b6000602082840312156116a657600080fd5b8151801515811461155e57600080fd5b8481528360208201526080604082015260006116d5608083018561161f565b905082606083015295945050505050565b838152826020820152606060408201526000611705606083018461161f565b9594505050505056fea164736f6c634300080e000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c40000000000000000000000006b175474e89094c44da98b954eedeac495271d0f00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb30000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60
-----Decoded View---------------
Arg [0] : _starkNet (address): 0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4
Arg [1] : _dai (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [2] : _l2Dai (uint256): 385291772725090318157700937045086145273563247402457518748197066808155336371
Arg [3] : _escrow (address): 0x0437465dfb5B79726e35F08559B0cBea55bb585C
Arg [4] : _l2DaiBridge (uint256): 3326542335218638260710262166293903627998802370811525948909206799059756478048
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000c662c410c0ecf747543f5ba90660f6abebd9c8c4
Arg [1] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [2] : 00da114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3
Arg [3] : 0000000000000000000000000437465dfb5b79726e35f08559b0cbea55bb585c
Arg [4] : 075ac198e734e289a6892baa8dd14b21095f13bf8401900f5349d5569c3f6e60
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.