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
0x608060405234801561000f575f80fd5b5061206d8061001d5f395ff3fe608060405260043610610156575f3560e01c806391d14854116100bb578063d547741f11610071578063da34cfbb11610057578063da34cfbb14610448578063e9a11fe71461045b578063ec87621c14610463575f80fd5b8063d547741f1461040a578063d7d2aeec14610429575f80fd5b8063a7b0bec8116100a1578063a7b0bec8146103a0578063be97b7e2146103bf578063bf36538a146103de575f80fd5b806391d148541461033c578063a217fddf1461038d575f80fd5b806336568abe116101105780636de8eeb9116100f65780636de8eeb9146102a65780637284e416146102d25780637beb5929146102f3575f80fd5b806336568abe146102685780634a21f39214610287575f80fd5b8063248a9ca311610140578063248a9ca3146101df5780632f2ff15d1461021b57806335b6d1ba1461023c575f80fd5b8062b83bce1461015a57806301ffc9a7146101b0575b5f80fd5b348015610165575f80fd5b5060ca546101869073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101bb575f80fd5b506101cf6101ca366004611849565b610496565b60405190151581526020016101a7565b3480156101ea575f80fd5b5061020d6101f9366004611888565b5f9081526097602052604090206001015490565b6040519081526020016101a7565b348015610226575f80fd5b5061023a6102353660046118c7565b61052e565b005b348015610247575f80fd5b5060c9546101869073ffffffffffffffffffffffffffffffffffffffff1681565b348015610273575f80fd5b5061023a6102823660046118c7565b610557565b348015610292575f80fd5b5061023a6102a13660046118f1565b61060f565b3480156102b1575f80fd5b5060cb546101869073ffffffffffffffffffffffffffffffffffffffff1681565b3480156102dd575f80fd5b506102e661066a565b6040516101a79190611975565b3480156102fe575f80fd5b5060cb546103279074010000000000000000000000000000000000000000900463ffffffff1681565b60405163ffffffff90911681526020016101a7565b348015610347575f80fd5b506101cf6103563660046118c7565b5f91825260976020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b348015610398575f80fd5b5061020d5f81565b3480156103ab575f80fd5b5061023a6103ba366004611a03565b6106f6565b3480156103ca575f80fd5b5061023a6103d93660046118f1565b610a27565b3480156103e9575f80fd5b5060cc546101869073ffffffffffffffffffffffffffffffffffffffff1681565b348015610415575f80fd5b5061023a6104243660046118c7565b610a82565b348015610434575f80fd5b5061023a6104433660046118f1565b610aa6565b61023a610456366004611b1b565b610b01565b61023a610f1c565b34801561046e575f80fd5b5061020d7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061052857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b5f82815260976020526040902060010154610548816110db565b61055283836110e8565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610601576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61060b82826111da565b5050565b5f610619816110db565b61062282611293565b5060cb80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60cd805461067790611b3b565b80601f01602080910402602001604051908101604052809291908181526020018280546106a390611b3b565b80156106ee5780601f106106c5576101008083540402835291602001916106ee565b820191905f5260205f20905b8154815290600101906020018083116106d157829003601f168201915b505050505081565b5f54610100900460ff161580801561071457505f54600160ff909116105b8061072d5750303b15801561072d57505f5460ff166001145b6107b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016105f8565b5f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610815575f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b61081e87611293565b61082786611293565b61083088611293565b61083985611293565b61084283611293565b8363ffffffff165f03610881576040517fad37f3b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60cb80547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff87160217905560cc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff851617905560cd6109148382611bd9565b5061091d6112e0565b61092561137e565b61092f5f89611414565b6109597f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0889611414565b60c9805473ffffffffffffffffffffffffffffffffffffffff808a167fffffffffffffffffffffffff00000000000000000000000000000000000000009283161790925560ca805489841690831617905560cb8054928816929091169190911790558015610a1d575f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b5f610a31816110db565b610a3a82611293565b5060c980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b5f82815260976020526040902060010154610a9c816110db565b61055283836111da565b5f610ab0816110db565b610ab982611293565b5060ca80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b0961141e565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610b33816110db565b60ca546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152849173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610b9f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bc39190611cf1565b1015610bfb576040517fb9301e8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82821180610c07575081155b15610c3e576040517f9c68554f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60ca5460cb546040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810186905291169063095ea7b3906044016020604051808303815f875af1158015610cb6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cda9190611d08565b506040805160e08101825260cb5463ffffffff74010000000000000000000000000000000000000000820416825260cc5473ffffffffffffffffffffffffffffffffffffffff90811660208085019190915283850188905260608401879052845180820186525f80825260808601919091528551808301875281815260a08601528551918201865280825260c085019190915293517f3b6f743b000000000000000000000000000000000000000000000000000000008152929392911690633b6f743b90610dae9085908590600401611da5565b6040805180830381865afa158015610dc8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dec9190611e15565b60cb5481516040517fc7c7f5b300000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff9091169163c7c7f5b39190610e4c90869086903390600401611e2f565b60c06040518083038185885af1158015610e68573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610e8d9190611e78565b505060cb5460cc54604080517401000000000000000000000000000000000000000090930463ffffffff16835273ffffffffffffffffffffffffffffffffffffffff90911660208301528101869052606081018590527f48e35858de924f81ed12208a490444b2d42f2447c5c7439c2e5ab2dff5d483609060800160405180910390a150505061060b60018055565b610f2461141e565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f4e816110db565b60c9546040517fba5bb44200000000000000000000000000000000000000000000000000000000815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee600482018190524760248301819052909290915f9173ffffffffffffffffffffffffffffffffffffffff169063ba5bb44290604401602060405180830381865afa158015610fdc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110009190611cf1565b9050805f0361103b576040517f6232bdd000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60c954604080517f72c51c0b0000000000000000000000000000000000000000000000000000000081526004810184905260248101919091525f604482015273ffffffffffffffffffffffffffffffffffffffff909116906372c51c0b9084906064015f604051808303818588803b1580156110b5575f80fd5b505af11580156110c7573d5f803e3d5ffd5b5050505050505050506110d960018055565b565b6110e58133611497565b50565b5f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661060b575f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561117c3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b5f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561060b575f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b73ffffffffffffffffffffffffffffffffffffffff81166110e5576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f54610100900460ff16611376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016105f8565b6110d9611550565b5f54610100900460ff166110d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016105f8565b61060b82826110e8565b60026001540361148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105f8565b6002600155565b60018055565b5f82815260976020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661060b576114d6816115e6565b6114e1836020611605565b6040516020016114f2929190611eff565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526105f891600401611975565b5f54610100900460ff16611491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016105f8565b606061052873ffffffffffffffffffffffffffffffffffffffff831660145b60605f611613836002611fac565b61161e906002611fc3565b67ffffffffffffffff81111561163657611636611987565b6040519080825280601f01601f191660200182016040528015611660576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f8151811061169657611696611fd6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106116f8576116f8611fd6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f611732846002611fac565b61173d906001611fc3565b90505b60018111156117d9577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061177e5761177e611fd6565b1a60f81b82828151811061179457611794611fd6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535060049490941c936117d281612003565b9050611740565b508315611842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105f8565b9392505050565b5f60208284031215611859575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611842575f80fd5b5f60208284031215611898575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146118c2575f80fd5b919050565b5f80604083850312156118d8575f80fd5b823591506118e86020840161189f565b90509250929050565b5f60208284031215611901575f80fd5b6118428261189f565b5f5b8381101561192457818101518382015260200161190c565b50505f910152565b5f815180845261194381602086016020860161190a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f611842602083018461192c565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156119fb576119fb611987565b604052919050565b5f805f805f805f60e0888a031215611a19575f80fd5b611a228861189f565b96506020611a31818a0161189f565b9650611a3f60408a0161189f565b9550611a4d60608a0161189f565b9450608089013563ffffffff81168114611a65575f80fd5b9350611a7360a08a0161189f565b925060c089013567ffffffffffffffff80821115611a8f575f80fd5b818b0191508b601f830112611aa2575f80fd5b813581811115611ab457611ab4611987565b611ae4847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016119b4565b91508082528c84828501011115611af9575f80fd5b80848401858401375f8482840101525080935050505092959891949750929550565b5f8060408385031215611b2c575f80fd5b50508035926020909101359150565b600181811c90821680611b4f57607f821691505b602082108103611b86577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b601f821115610552575f81815260208120601f850160051c81016020861015611bb25750805b601f850160051c820191505b81811015611bd157828155600101611bbe565b505050505050565b815167ffffffffffffffff811115611bf357611bf3611987565b611c0781611c018454611b3b565b84611b8c565b602080601f831160018114611c59575f8415611c235750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611bd1565b5f858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015611ca557888601518255948401946001909101908401611c86565b5085821015611ce157878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215611d01575f80fd5b5051919050565b5f60208284031215611d18575f80fd5b81518015158114611842575f80fd5b63ffffffff81511682526020810151602083015260408101516040830152606081015160608301525f608082015160e06080850152611d6960e085018261192c565b905060a083015184820360a0860152611d82828261192c565b91505060c083015184820360c0860152611d9c828261192c565b95945050505050565b604081525f611db76040830185611d27565b905082151560208301529392505050565b5f60408284031215611dd8575f80fd5b6040516040810181811067ffffffffffffffff82111715611dfb57611dfb611987565b604052825181526020928301519281019290925250919050565b5f60408284031215611e25575f80fd5b6118428383611dc8565b608081525f611e416080830186611d27565b9050835160208301526020840151604083015273ffffffffffffffffffffffffffffffffffffffff83166060830152949350505050565b5f8082840360c0811215611e8a575f80fd5b6080811215611e97575f80fd5b506040516060810167ffffffffffffffff8282108183111715611ebc57611ebc611987565b8160405285518352602086015191508082168214611ed8575f80fd5b506020820152611eeb8560408601611dc8565b604082015291506118e88460808501611dc8565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081525f8351611f3681601785016020880161190a565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611f7381602884016020880161190a565b01602801949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808202811582820484141761052857610528611f7f565b8082018082111561052857610528611f7f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8161201157612011611f7f565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220a3e9c56ccf328e68871a80b87d22d4d30eb6291519befad581eca600e544a91164736f6c63430008150033