More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,026 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 20453427 | 105 days ago | IN | 0.0001 ETH | 0.00002222 | ||||
Withdraw | 20270997 | 131 days ago | IN | 0 ETH | 0.00128748 | ||||
Withdraw | 20254285 | 133 days ago | IN | 0 ETH | 0.00057523 | ||||
Withdraw | 20249488 | 134 days ago | IN | 0 ETH | 0.00026081 | ||||
Deposit | 20242805 | 135 days ago | IN | 0.5 ETH | 0.00027142 | ||||
Deposit | 20212307 | 139 days ago | IN | 3 ETH | 0.00099483 | ||||
Withdraw | 20202907 | 140 days ago | IN | 0 ETH | 0.00094248 | ||||
Withdraw | 20202799 | 140 days ago | IN | 0 ETH | 0.00065096 | ||||
Withdraw | 20194923 | 141 days ago | IN | 0 ETH | 0.00021709 | ||||
Withdraw | 20193598 | 141 days ago | IN | 0 ETH | 0.00024319 | ||||
Withdraw | 20188068 | 142 days ago | IN | 0 ETH | 0.00092037 | ||||
Withdraw | 20179866 | 143 days ago | IN | 0 ETH | 0.00154363 | ||||
Withdraw | 20177021 | 144 days ago | IN | 0 ETH | 0.00536785 | ||||
Withdraw | 20176753 | 144 days ago | IN | 0 ETH | 0.00589421 | ||||
Withdraw | 20173334 | 144 days ago | IN | 0 ETH | 0.00096201 | ||||
Withdraw | 20166426 | 145 days ago | IN | 0 ETH | 0.00206955 | ||||
Withdraw | 20166253 | 145 days ago | IN | 0 ETH | 0.0014832 | ||||
Withdraw | 20154082 | 147 days ago | IN | 0 ETH | 0.00086875 | ||||
Withdraw | 20121749 | 152 days ago | IN | 0 ETH | 0.00301074 | ||||
Withdraw | 20106333 | 154 days ago | IN | 0 ETH | 0.00053397 | ||||
Deposit | 20103533 | 154 days ago | IN | 5.2 ETH | 0.00048039 | ||||
Withdraw | 20086463 | 156 days ago | IN | 0 ETH | 0.00102943 | ||||
Withdraw | 20072367 | 158 days ago | IN | 0 ETH | 0.00081525 | ||||
Withdraw | 20070273 | 159 days ago | IN | 0 ETH | 0.00201328 | ||||
Deposit | 20063444 | 160 days ago | IN | 7 ETH | 0.00246325 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20270997 | 131 days ago | 2.78235842 ETH | ||||
20270997 | 131 days ago | 2.78235842 ETH | ||||
20254285 | 133 days ago | 0.01037835 ETH | ||||
20254285 | 133 days ago | 0.01037835 ETH | ||||
20249488 | 134 days ago | 0.01058379 ETH | ||||
20249488 | 134 days ago | 0.01058379 ETH | ||||
20242805 | 135 days ago | 0.5 ETH | ||||
20212307 | 139 days ago | 3 ETH | ||||
20202907 | 140 days ago | 0.00158358 ETH | ||||
20202907 | 140 days ago | 0.00158358 ETH | ||||
20202799 | 140 days ago | 0.00250013 ETH | ||||
20202799 | 140 days ago | 0.00250013 ETH | ||||
20194923 | 141 days ago | 0.00528807 ETH | ||||
20194923 | 141 days ago | 0.00528807 ETH | ||||
20193598 | 141 days ago | 0.00507798 ETH | ||||
20193598 | 141 days ago | 0.00507798 ETH | ||||
20188068 | 142 days ago | 0.05281209 ETH | ||||
20188068 | 142 days ago | 0.05281209 ETH | ||||
20179866 | 143 days ago | 18.55212146 ETH | ||||
20179866 | 143 days ago | 18.55212146 ETH | ||||
20177021 | 144 days ago | 0.04865306 ETH | ||||
20177021 | 144 days ago | 0.04865306 ETH | ||||
20176753 | 144 days ago | 0.1031899 ETH | ||||
20176753 | 144 days ago | 0.1031899 ETH | ||||
20173334 | 144 days ago | 0.05340208 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Vyper_contract
Compiler Version
vyper:0.3.3
Contract Source Code (Vyper language format)
# @version ^0.3.3 interface Vault(): def deposit(amount: uint256, recipient: address) -> uint256: nonpayable def withdraw(maxShares: uint256, recipient: address, max_loss: uint256) -> uint256: nonpayable def transferFrom(_from : address, _to : address, _value : uint256) -> bool: nonpayable def transfer(_to : address, _value : uint256) -> bool: nonpayable def token() -> address: nonpayable def balanceOf(owner: address) -> uint256: view interface WEth(ERC20): def deposit(): payable def approve(_spender : address, _value : uint256) -> bool: nonpayable def withdraw(amount: uint256): nonpayable VAULT: immutable(Vault) WETH: immutable(WEth) started_withdraw: bool @external def __init__(vault: address): weth: address = Vault(vault).token() VAULT = Vault(vault) WETH = WEth(weth) WEth(weth).approve(vault, MAX_UINT256) self.started_withdraw = False @internal def _deposit(sender: address, amount: uint256): assert amount != 0 #dev: "!value" WETH.deposit(value= amount) VAULT.deposit(amount, sender) @external @payable def deposit(): self._deposit(msg.sender, msg.value) @external @nonpayable def withdraw(amount: uint256, max_loss: uint256 = 1): self.started_withdraw = True VAULT.transferFrom(msg.sender, self, amount) weth_amount: uint256 = VAULT.withdraw(amount, self, max_loss) assert amount != 0 #dev: "!amount" WETH.withdraw(weth_amount) send(msg.sender, weth_amount) left_over: uint256 = VAULT.balanceOf(self) if left_over > 0: VAULT.transfer(msg.sender, left_over) self.started_withdraw = False @external @payable def __default__(): if self.started_withdraw == False: self._deposit(msg.sender, msg.value)
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"stateMutability":"nonpayable","type":"constructor","inputs":[{"name":"vault","type":"address"}],"outputs":[]},{"stateMutability":"payable","type":"function","name":"deposit","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[{"name":"amount","type":"uint256"}],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"withdraw","inputs":[{"name":"amount","type":"uint256"},{"name":"max_loss","type":"uint256"}],"outputs":[]},{"stateMutability":"payable","type":"fallback"}]
Contract Creation Code
60206103b46000396000518060a01c6103af5760405263fc0c546a608052602060806004609c60006040515af161003b573d600060003e3d6000fd5b60203d106103af576080518060a01c6103af5760c05260c05160605260405163000002be5260605163000002de5263095ea7b360805260405160a0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60c052602060806044609c60006060515af16100b9573d600060003e3d6000fd5b60203d106103af576080518060011c6103af5760e05260e05060006000556102be6100f06300000000396102be6040016300000000f3600436101561000d5761020f565b60003560e01c63d0e30db0811861003057336040523460605261002e610228565b005b632e1a7d4d8118610045576001604052610057565b63441a3e708118610209576024356040525b346102b95760016000556323b872dd606052336080523060a05260043560c052602060606064607c600060206102be6000396000515af161009d573d600060003e3d6000fd5b60203d106102b9576060518060011c6102b95760e05260e05063e63697c860805260043560a0523060c05260405160e052602060806064609c600060206102be6000396000515af16100f4573d600060003e3d6000fd5b60203d106102b9576080516060526000600435146102b957632e1a7d4d60805260605160a05260206102de6000396000513b156102b957600060006024609c600060206102de6000396000515af1610151573d600060003e3d6000fd5b6000600060006000606051336000f1156102b9576370a0823160a0523060c052602060a0602460bc60206102be6000396000515afa610195573d600060003e3d6000fd5b60203d106102b95760a051608052600060805111156102025763a9059cbb60a0523360c05260805160e052602060a0604460bc600060206102be6000396000515af16101e6573d600060003e3d6000fd5b60203d106102b95760a0518060011c6102b95761010052610100505b6000600055005b5061020f565b600054610226573360405234606052610226610228565b005b6000606051146102b95763d0e30db060805260206102de6000396000513b156102b957600060006004609c60605160206102de6000396000515af1610272573d600060003e3d6000fd5b636e553f6560805260605160a05260405160c052602060806044609c600060206102be6000396000515af16102ac573d600060003e3d6000fd5b60203d106102b957608050565b600080fd005b600080fd000000000000000000000000a258c4606ca8206d8aa700ce2143d7db854d168c
Deployed Bytecode
0x600436101561000d5761020f565b60003560e01c63d0e30db0811861003057336040523460605261002e610228565b005b632e1a7d4d8118610045576001604052610057565b63441a3e708118610209576024356040525b346102b95760016000556323b872dd606052336080523060a05260043560c052602060606064607c600060206102be6000396000515af161009d573d600060003e3d6000fd5b60203d106102b9576060518060011c6102b95760e05260e05063e63697c860805260043560a0523060c05260405160e052602060806064609c600060206102be6000396000515af16100f4573d600060003e3d6000fd5b60203d106102b9576080516060526000600435146102b957632e1a7d4d60805260605160a05260206102de6000396000513b156102b957600060006024609c600060206102de6000396000515af1610151573d600060003e3d6000fd5b6000600060006000606051336000f1156102b9576370a0823160a0523060c052602060a0602460bc60206102be6000396000515afa610195573d600060003e3d6000fd5b60203d106102b95760a051608052600060805111156102025763a9059cbb60a0523360c05260805160e052602060a0604460bc600060206102be6000396000515af16101e6573d600060003e3d6000fd5b60203d106102b95760a0518060011c6102b95761010052610100505b6000600055005b5061020f565b600054610226573360405234606052610226610228565b005b6000606051146102b95763d0e30db060805260206102de6000396000513b156102b957600060006004609c60605160206102de6000396000515af1610272573d600060003e3d6000fd5b636e553f6560805260605160a05260405160c052602060806044609c600060206102be6000396000515af16102ac573d600060003e3d6000fd5b60203d106102b957608050565b600080fd000000000000000000000000a258c4606ca8206d8aa700ce2143d7db854d168c000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a258c4606ca8206d8aa700ce2143d7db854d168c
-----Decoded View---------------
Arg [0] : vault (address): 0xa258C4606Ca8206D8aA700cE2143D7db854D168c
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a258c4606ca8206d8aa700ce2143d7db854d168c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BSC | 100.00% | $616.04 | 0.00890339 | $5.48 |
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.