0 txs
6.4k calls
constructor
constructor()
functions
calculateLevEthAmount
purefunction calculateLevEthAmount(uint256 wethAmount) pure returns (uint256 levEthAmount)
calculateWethAmount
purefunction calculateWethAmount(uint256 levEthAmount) pure returns (uint256 wethAmount)
getLevEthBalance
viewfunction getLevEthBalance() view returns (uint256 balance)
getWethBalance
viewfunction getWethBalance() view returns (uint256 balance)
LEVETH_TOKEN
viewfunction LEVETH_TOKEN() view returns (address)
owner
viewfunction owner() view returns (address)
PRECISION
viewfunction PRECISION() view returns (uint256)
WETH_PER_LEVETH
viewfunction WETH_PER_LEVETH() view returns (uint256)
WETH_TOKEN
viewfunction WETH_TOKEN() view returns (address)
renounceOwnership
nonpayablefunction renounceOwnership()
swap
nonpayablefunction swap(uint256 levEthAmount, uint256 minWethAmount) returns (uint256 wethAmount)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdrawAllLevEth
nonpayablefunction withdrawAllLevEth(address to) returns (uint256 amount)
withdrawAllWeth
nonpayablefunction withdrawAllWeth(address to) returns (uint256 amount)
withdrawLevEth
nonpayablefunction withdrawLevEth(uint256 amount, address to)
withdrawWeth
nonpayablefunction withdrawWeth(uint256 amount, address to)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Swap
event Swap(address indexed user, uint256 levEthAmount, uint256 wethAmount)
Withdraw
event Withdraw(address indexed token, uint256 amount, address indexed to)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
FailedInnerCall
error FailedInnerCall()
InsufficientLevEthBalance
error InsufficientLevEthBalance()
InsufficientWethBalance
error InsufficientWethBalance()
MinAmountNotMet
error MinAmountNotMet()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
ZeroAmount
error ZeroAmount()
creation bytecode
0x608080604052346071573315605e575f8054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3610bfd90816100768239f35b631e4fbdf760e01b5f525f60045260245ffd5b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c806301d645541461089a57806302a0ba3f146107cb5780631742818b1461078157806337d277d41461075f578063715018a6146107085780638702b0d8146106e65780638da5cb5b146106bf57806390facc2d146105d75780639dd58b581461058d578063a54df49c146104c0578063aaf5eb681461049e578063ba6bd01214610454578063d96073cf14610208578063dc8d23ef14610179578063f2fde38b146100f45763f403476b146100c9575f80fd5b346100f0575f3660031901126100f05760206040515f516020610b885f395f51905f528152f35b5f80fd5b346100f05760203660031901126100f05761010d61096e565b6101156109bc565b6001600160a01b03168015610166575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b346100f0575f3660031901126100f0576040516370a0823160e01b81523060048201526020816024815f516020610b885f395f51905f525afa80156101fd575f906101ca575b602090604051908152f35b506020813d6020116101f5575b816101e46020938361099a565b810103126100f057602090516101bf565b3d91506101d7565b6040513d5f823e3d90fd5b346100f05760403660031901126100f05760043580156104455767077754ba9227df10810281810467077754ba9227df100361043157670de0b6b3a764000090046024358110610422576040516370a0823160e01b81523060048201526020816024816006602160991b015afa80156101fd5782915f916103ed575b50106103de575f8060405160208101906323b872dd60e01b8252336024820152306044820152856064820152606481526102bf60848261099a565b5190825f516020610b885f395f51905f525af13d156103d2573d67ffffffffffffffff81116103be5761032191604051916103046020601f19601f840116018461099a565b82523d5f602084013e5b5f516020610b885f395f51905f52610b29565b805190811515918261039a575b505061037a576020916103418233610a32565b60405190815281838201527f77f92a1b6a1a11de8ca49515ad4c1fad45632dd3442167d74b90b304a3c7a75860403392a2604051908152f35b635274afe760e01b5f525f516020610b885f395f51905f5260045260245ffd5b81925090602091810103126100f057602001518015908115036100f057838061032e565b634e487b7160e01b5f52604160045260245ffd5b6103219060609061030e565b6318fb0fc360e11b5f5260045ffd5b9150506020813d60201161041a575b816104096020938361099a565b810103126100f05781905184610284565b3d91506103fc565b632fe65d3d60e01b5f5260045ffd5b634e487b7160e01b5f52601160045260245ffd5b631f2a200560e01b5f5260045ffd5b346100f05760203660031901126100f057600435670de0b6b3a7640000810290808204670de0b6b3a764000014901517156104315760209067077754ba9227df1060405191048152f35b346100f0575f3660031901126100f0576020604051670de0b6b3a76400008152f35b346100f05760203660031901126100f0576104d961096e565b6104e16109bc565b6040516370a0823160e01b81523060048201526020816024816006602160991b015afa9081156101fd575f9161055b575b508015610445578161052682602094610a32565b6040518281526001600160a01b03909116906006602160991b01905f516020610ba85f395f51905f52908590a3604051908152f35b90506020813d602011610585575b816105766020938361099a565b810103126100f0575182610512565b3d9150610569565b346100f0575f3660031901126100f0576040516370a0823160e01b81523060048201526020816024816006602160991b015afa80156101fd575f906101ca57602090604051908152f35b346100f05760403660031901126100f0576004356105f3610984565b6105fb6109bc565b8115610445576040516370a0823160e01b81523060048201526020816024815f516020610b885f395f51905f525afa80156101fd5783915f9161068a575b501061067b575f516020610ba85f395f51905f52602082610668855f516020610b885f395f51905f52956109e2565b6040519485526001600160a01b031693a3005b63015cf80760e51b5f5260045ffd5b9150506020813d6020116106b7575b816106a66020938361099a565b810103126100f05782905184610639565b3d9150610699565b346100f0575f3660031901126100f0575f546040516001600160a01b039091168152602090f35b346100f0575f3660031901126100f057602060405167077754ba9227df108152f35b346100f0575f3660031901126100f0576107206109bc565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346100f0575f3660031901126100f0576040516006602160991b018152602090f35b346100f05760203660031901126100f05760043567077754ba9227df1081029080820467077754ba9227df10149015171561043157602090670de0b6b3a764000060405191048152f35b346100f05760403660031901126100f0576004356107e7610984565b6107ef6109bc565b8115610445576040516370a0823160e01b81523060048201526020816024816006602160991b015afa80156101fd5783915f91610865575b50106103de576108378282610a32565b6040519182526001600160a01b0316906006602160991b01905f516020610ba85f395f51905f5290602090a3005b9150506020813d602011610892575b816108816020938361099a565b810103126100f05782905184610827565b3d9150610874565b346100f05760203660031901126100f0576108b361096e565b6108bb6109bc565b6040516370a0823160e01b81523060048201526020816024815f516020610b885f395f51905f525afa9081156101fd575f9161093c575b5080156104455781610906826020946109e2565b5f516020610b885f395f51905f525f516020610ba85f395f51905f52846040519385855260018060a01b031693a3604051908152f35b90506020813d602011610966575b816109576020938361099a565b810103126100f05751826108f2565b3d915061094a565b600435906001600160a01b03821682036100f057565b602435906001600160a01b03821682036100f057565b90601f8019910116810190811067ffffffffffffffff8211176103be57604052565b5f546001600160a01b031633036109cf57565b63118cdaa760e01b5f523360045260245ffd5b60405163a9059cbb60e01b60208201526001600160a01b039091166024820152604480820192909252908152610a3090610a1d60648261099a565b5f516020610b885f395f51905f52610a76565b565b60405163a9059cbb60e01b60208201526001600160a01b039091166024820152604480820192909252908152610a3090610a6d60648261099a565b6006602160991b015b81516001600160a01b03909116915f91829160200182855af13d15610b1d573d67ffffffffffffffff81116103be57610ad19160405191610ac16020601f19601f840116018461099a565b82523d5f602084013e5b83610b29565b8051908115159182610af9575b5050610ae75750565b635274afe760e01b5f5260045260245ffd5b81925090602091810103126100f057602001518015908115036100f0575f80610ade565b610ad190606090610acb565b90610b4d5750805115610b3e57805190602001fd5b630a12f52160e11b5f5260045ffd5b81511580610b7e575b610b5e575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b15610b5656fe000000000000000000000000091a5a1e3aa8b96ab0fb0bc217f5e60ec4c611a056c54ba9bd38d8fd62012e42c7ee564519b09763c426d331b3661b537ead19b2a264697066735822122059545f41c57d2f45748285be5fe25fa53ba4a58f6e102c77090723cac7e1439264736f6c634300081e0033