0 txs
0 calls
constructor
No constructor.
functions
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
description
viewfunction description() view returns (string)
dstLzChainId
viewfunction dstLzChainId() view returns (uint32)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
l2Receiver
viewfunction l2Receiver() view returns (address)
lrtDepositPool
viewfunction lrtDepositPool() view returns (address)
MANAGER_ROLE
viewfunction MANAGER_ROLE() view returns (bytes32)
oftAdapter
viewfunction oftAdapter() view returns (address)
rsETH
viewfunction rsETH() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
bridgeRsETHToL2
payablefunction bridgeRsETHToL2(uint256 amount, uint256 minAmount) payable
depositETHForL1VaultETH
payablefunction depositETHForL1VaultETH() payable
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(address admin, address _lrtDepositPool, address _rsETH, address _oftAdapter, uint32 _dstLzChainId, address _l2Receiver, string _description)
renounceRole
nonpayablefunction renounceRole(bytes32 role, address account)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
setLrtDepositPool
nonpayablefunction setLrtDepositPool(address _lrtDepositPool)
setOFTAdapter
nonpayablefunction setOFTAdapter(address _oftAdapter)
setRsETH
nonpayablefunction setRsETH(address _rsETH)
events
BridgedRsETHToL2
event BridgedRsETHToL2(uint32 lzChainId, address l2Receiver, uint256 amount, uint256 minAmount)
Initialized
event Initialized(uint8 version)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
errors
InsufficientRsETHBalance
error InsufficientRsETHBalance()
InvalidLzChainId
error InvalidLzChainId()
InvalidMinAmount
error InvalidMinAmount()
InvalidMinRSETHAmountExpected
error InvalidMinRSETHAmountExpected()
ZeroAddressNotAllowed
error ZeroAddressNotAllowed()
creation bytecode
0x608060405234801561000f575f80fd5b506120778061001d5f395ff3fe608060405260043610610159575f3560e01c806391d14854116100bb578063d547741f11610071578063da34cfbb11610057578063da34cfbb14610452578063e9a11fe714610465578063ec87621c1461046d575f80fd5b8063d547741f14610414578063d7d2aeec14610433575f80fd5b8063a7b0bec8116100a1578063a7b0bec8146103aa578063be97b7e2146103c9578063bf36538a146103e8575f80fd5b806391d1485414610346578063a217fddf14610397575f80fd5b806336568abe116101105780636de8eeb9116100f65780636de8eeb9146102b05780637284e416146102dc5780637beb5929146102fd575f80fd5b806336568abe146102725780634a21f39214610291575f80fd5b8063248a9ca311610140578063248a9ca3146101e95780632f2ff15d1461022557806335b6d1ba14610246575f80fd5b8062b83bce1461016457806301ffc9a7146101ba575f80fd5b3661016057005b5f80fd5b34801561016f575f80fd5b5060ca546101909073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101c5575f80fd5b506101d96101d4366004611853565b6104a0565b60405190151581526020016101b1565b3480156101f4575f80fd5b50610217610203366004611892565b5f9081526097602052604090206001015490565b6040519081526020016101b1565b348015610230575f80fd5b5061024461023f3660046118d1565b610538565b005b348015610251575f80fd5b5060c9546101909073ffffffffffffffffffffffffffffffffffffffff1681565b34801561027d575f80fd5b5061024461028c3660046118d1565b610561565b34801561029c575f80fd5b506102446102ab3660046118fb565b610619565b3480156102bb575f80fd5b5060cb546101909073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102e7575f80fd5b506102f0610674565b6040516101b1919061197f565b348015610308575f80fd5b5060cb546103319074010000000000000000000000000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020016101b1565b348015610351575f80fd5b506101d96103603660046118d1565b5f91825260976020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156103a2575f80fd5b506102175f81565b3480156103b5575f80fd5b506102446103c4366004611a0d565b610700565b3480156103d4575f80fd5b506102446103e33660046118fb565b610a31565b3480156103f3575f80fd5b5060cc546101909073ffffffffffffffffffffffffffffffffffffffff1681565b34801561041f575f80fd5b5061024461042e3660046118d1565b610a8c565b34801561043e575f80fd5b5061024461044d3660046118fb565b610ab0565b610244610460366004611b25565b610b0b565b610244610f26565b348015610478575f80fd5b506102177f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061053257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b5f82815260976020526040902060010154610552816110e5565b61055c83836110f2565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461060b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61061582826111e4565b5050565b5f610623816110e5565b61062c8261129d565b5060cb80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60cd805461068190611b45565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad90611b45565b80156106f85780601f106106cf576101008083540402835291602001916106f8565b820191905f5260205f20905b8154815290600101906020018083116106db57829003601f168201915b505050505081565b5f54610100900460ff161580801561071e57505f54600160ff909116105b806107375750303b15801561073757505f5460ff166001145b6107c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610602565b5f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561081f575f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6108288761129d565b6108318661129d565b61083a8861129d565b6108438561129d565b61084c8361129d565b8363ffffffff165f0361088b576040517fad37f3b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cb80547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff87160217905560cc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851617905560cd61091e8382611be3565b506109276112ea565b61092f611388565b6109395f8961141e565b6109637f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b088961141e565b60c9805473ffffffffffffffffffffffffffffffffffffffff808a167fffffffffffffffffffffffff00000000000000000000000000000000000000009283161790925560ca805489841690831617905560cb8054928816929091169190911790558015610a27575f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b5f610a3b816110e5565b610a448261129d565b5060c980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f82815260976020526040902060010154610aa6816110e5565b61055c83836111e4565b5f610aba816110e5565b610ac38261129d565b5060ca80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b13611428565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610b3d816110e5565b60ca546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152849173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610ba9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bcd9190611cfb565b1015610c05576040517fb9301e8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82821180610c11575081155b15610c48576040517f9c68554f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60ca5460cb546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810186905291169063095ea7b3906044016020604051808303815f875af1158015610cc0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ce49190611d12565b506040805160e08101825260cb5463ffffffff74010000000000000000000000000000000000000000820416825260cc5473ffffffffffffffffffffffffffffffffffffffff90811660208085019190915283850188905260608401879052845180820186525f80825260808601919091528551808301875281815260a08601528551918201865280825260c085019190915293517f3b6f743b000000000000000000000000000000000000000000000000000000008152929392911690633b6f743b90610db89085908590600401611daf565b6040805180830381865afa158015610dd2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610df69190611e1f565b60cb5481516040517fc7c7f5b300000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff9091169163c7c7f5b39190610e5690869086903390600401611e39565b60c06040518083038185885af1158015610e72573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610e979190611e82565b505060cb5460cc54604080517401000000000000000000000000000000000000000090930463ffffffff16835273ffffffffffffffffffffffffffffffffffffffff90911660208301528101869052606081018590527f48e35858de924f81ed12208a490444b2d42f2447c5c7439c2e5ab2dff5d483609060800160405180910390a150505061061560018055565b610f2e611428565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f58816110e5565b60c9546040517fba5bb44200000000000000000000000000000000000000000000000000000000815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600482018190524760248301819052909290915f9173ffffffffffffffffffffffffffffffffffffffff169063ba5bb44290604401602060405180830381865afa158015610fe6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100a9190611cfb565b9050805f03611045576040517f6232bdd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60c954604080517f72c51c0b0000000000000000000000000000000000000000000000000000000081526004810184905260248101919091525f604482015273ffffffffffffffffffffffffffffffffffffffff909116906372c51c0b9084906064015f604051808303818588803b1580156110bf575f80fd5b505af11580156110d1573d5f803e3d5ffd5b5050505050505050506110e360018055565b565b6110ef81336114a1565b50565b5f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610615575f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556111863390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610615575f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b73ffffffffffffffffffffffffffffffffffffffff81166110ef576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f54610100900460ff16611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610602565b6110e361155a565b5f54610100900460ff166110e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610602565b61061582826110f2565b600260015403611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610602565b6002600155565b60018055565b5f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610615576114e0816115f0565b6114eb83602061160f565b6040516020016114fc929190611f09565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526106029160040161197f565b5f54610100900460ff1661149b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610602565b606061053273ffffffffffffffffffffffffffffffffffffffff831660145b60605f61161d836002611fb6565b611628906002611fcd565b67ffffffffffffffff81111561164057611640611991565b6040519080825280601f01601f19166020018201604052801561166a576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f815181106116a0576116a0611fe0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061170257611702611fe0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f61173c846002611fb6565b611747906001611fcd565b90505b60018111156117e3577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061178857611788611fe0565b1a60f81b82828151811061179e5761179e611fe0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535060049490941c936117dc8161200d565b905061174a565b50831561184c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610602565b9392505050565b5f60208284031215611863575f80fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461184c575f80fd5b5f602082840312156118a2575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146118cc575f80fd5b919050565b5f80604083850312156118e2575f80fd5b823591506118f2602084016118a9565b90509250929050565b5f6020828403121561190b575f80fd5b61184c826118a9565b5f5b8381101561192e578181015183820152602001611916565b50505f910152565b5f815180845261194d816020860160208601611914565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f61184c6020830184611936565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611a0557611a05611991565b604052919050565b5f805f805f805f60e0888a031215611a23575f80fd5b611a2c886118a9565b96506020611a3b818a016118a9565b9650611a4960408a016118a9565b9550611a5760608a016118a9565b9450608089013563ffffffff81168114611a6f575f80fd5b9350611a7d60a08a016118a9565b925060c089013567ffffffffffffffff80821115611a99575f80fd5b818b0191508b601f830112611aac575f80fd5b813581811115611abe57611abe611991565b611aee847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016119be565b91508082528c84828501011115611b03575f80fd5b80848401858401375f8482840101525080935050505092959891949750929550565b5f8060408385031215611b36575f80fd5b50508035926020909101359150565b600181811c90821680611b5957607f821691505b602082108103611b90577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b601f82111561055c575f81815260208120601f850160051c81016020861015611bbc5750805b601f850160051c820191505b81811015611bdb57828155600101611bc8565b505050505050565b815167ffffffffffffffff811115611bfd57611bfd611991565b611c1181611c0b8454611b45565b84611b96565b602080601f831160018114611c63575f8415611c2d5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611bdb565b5f858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015611caf57888601518255948401946001909101908401611c90565b5085821015611ceb57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215611d0b575f80fd5b5051919050565b5f60208284031215611d22575f80fd5b8151801515811461184c575f80fd5b63ffffffff81511682526020810151602083015260408101516040830152606081015160608301525f608082015160e06080850152611d7360e0850182611936565b905060a083015184820360a0860152611d8c8282611936565b91505060c083015184820360c0860152611da68282611936565b95945050505050565b604081525f611dc16040830185611d31565b905082151560208301529392505050565b5f60408284031215611de2575f80fd5b6040516040810181811067ffffffffffffffff82111715611e0557611e05611991565b604052825181526020928301519281019290925250919050565b5f60408284031215611e2f575f80fd5b61184c8383611dd2565b608081525f611e4b6080830186611d31565b9050835160208301526020840151604083015273ffffffffffffffffffffffffffffffffffffffff83166060830152949350505050565b5f8082840360c0811215611e94575f80fd5b6080811215611ea1575f80fd5b506040516060810167ffffffffffffffff8282108183111715611ec657611ec6611991565b8160405285518352602086015191508082168214611ee2575f80fd5b506020820152611ef58560408601611dd2565b604082015291506118f28460808501611dd2565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f8351611f40816017850160208801611914565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611f7d816028840160208801611914565b01602801949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808202811582820484141761053257610532611f89565b8082018082111561053257610532611f89565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8161201b5761201b611f89565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea26469706673582212207611d62c5cdf9d40f51a0faeb66dfd9ba4aade0db34d1464a5e18966059ccaee64736f6c63430008150033