ETH Price: $3,066.12 (-2.18%)

Contract

0xd1791428C38E25d459D5B01fB25E942d4aD83a25
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Deposit204534272024-08-04 6:34:47105 days ago1722753287IN
0xd1791428...d4aD83a25
0.0001 ETH0.000022221
Withdraw202709972024-07-09 19:22:59131 days ago1720552979IN
0xd1791428...d4aD83a25
0 ETH0.001287483.2402623
Withdraw202542852024-07-07 11:18:11133 days ago1720351091IN
0xd1791428...d4aD83a25
0 ETH0.000575231.44750218
Withdraw202494882024-07-06 19:13:47134 days ago1720293227IN
0xd1791428...d4aD83a25
0 ETH0.000260811.77398526
Deposit202428052024-07-05 20:50:35135 days ago1720212635IN
0xd1791428...d4aD83a25
0.5 ETH0.000271422.71746821
Deposit202123072024-07-01 14:36:59139 days ago1719844619IN
0xd1791428...d4aD83a25
3 ETH0.000994839.96011849
Withdraw202029072024-06-30 7:07:59140 days ago1719731279IN
0xd1791428...d4aD83a25
0 ETH0.000942482.37161399
Withdraw202027992024-06-30 6:46:11140 days ago1719729971IN
0xd1791428...d4aD83a25
0 ETH0.000650961.63835879
Withdraw201949232024-06-29 4:21:35141 days ago1719634895IN
0xd1791428...d4aD83a25
0 ETH0.000217091.47663817
Withdraw201935982024-06-28 23:54:23141 days ago1719618863IN
0xd1791428...d4aD83a25
0 ETH0.000243191.65411066
Withdraw201880682024-06-28 5:23:11142 days ago1719552191IN
0xd1791428...d4aD83a25
0 ETH0.000920372.31597973
Withdraw201798662024-06-27 1:53:59143 days ago1719453239IN
0xd1791428...d4aD83a25
0 ETH0.001543634.02346227
Withdraw201770212024-06-26 16:20:59144 days ago1719418859IN
0xd1791428...d4aD83a25
0 ETH0.0053678513.50983814
Withdraw201767532024-06-26 15:26:47144 days ago1719415607IN
0xd1791428...d4aD83a25
0 ETH0.0058942114.83422462
Withdraw201733342024-06-26 4:00:35144 days ago1719374435IN
0xd1791428...d4aD83a25
0 ETH0.000962012.50752679
Withdraw201664262024-06-25 4:51:11145 days ago1719291071IN
0xd1791428...d4aD83a25
0 ETH0.002069555.23234737
Withdraw201662532024-06-25 4:16:35145 days ago1719288995IN
0xd1791428...d4aD83a25
0 ETH0.00148323.74992777
Withdraw201540822024-06-23 11:26:35147 days ago1719141995IN
0xd1791428...d4aD83a25
0 ETH0.000868752.23421798
Withdraw201217492024-06-18 22:54:11152 days ago1718751251IN
0xd1791428...d4aD83a25
0 ETH0.003010745.23393609
Withdraw201063332024-06-16 19:06:23154 days ago1718564783IN
0xd1791428...d4aD83a25
0 ETH0.000533973.63194144
Deposit201035332024-06-16 9:43:47154 days ago1718531027IN
0xd1791428...d4aD83a25
5.2 ETH0.000480394.23026616
Withdraw200864632024-06-14 0:27:35156 days ago1718324855IN
0xd1791428...d4aD83a25
0 ETH0.001029437.00185898
Withdraw200723672024-06-12 1:08:23158 days ago1718154503IN
0xd1791428...d4aD83a25
0 ETH0.000815255.54508234
Withdraw200702732024-06-11 18:07:23159 days ago1718129243IN
0xd1791428...d4aD83a25
0 ETH0.0020132813.693695
Deposit200634442024-06-10 19:13:35160 days ago1718046815IN
0xd1791428...d4aD83a25
7 ETH0.0024632524.66162001
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
202709972024-07-09 19:22:59131 days ago1720552979
0xd1791428...d4aD83a25
2.78235842 ETH
202709972024-07-09 19:22:59131 days ago1720552979
0xd1791428...d4aD83a25
2.78235842 ETH
202542852024-07-07 11:18:11133 days ago1720351091
0xd1791428...d4aD83a25
0.01037835 ETH
202542852024-07-07 11:18:11133 days ago1720351091
0xd1791428...d4aD83a25
0.01037835 ETH
202494882024-07-06 19:13:47134 days ago1720293227
0xd1791428...d4aD83a25
0.01058379 ETH
202494882024-07-06 19:13:47134 days ago1720293227
0xd1791428...d4aD83a25
0.01058379 ETH
202428052024-07-05 20:50:35135 days ago1720212635
0xd1791428...d4aD83a25
0.5 ETH
202123072024-07-01 14:36:59139 days ago1719844619
0xd1791428...d4aD83a25
3 ETH
202029072024-06-30 7:07:59140 days ago1719731279
0xd1791428...d4aD83a25
0.00158358 ETH
202029072024-06-30 7:07:59140 days ago1719731279
0xd1791428...d4aD83a25
0.00158358 ETH
202027992024-06-30 6:46:11140 days ago1719729971
0xd1791428...d4aD83a25
0.00250013 ETH
202027992024-06-30 6:46:11140 days ago1719729971
0xd1791428...d4aD83a25
0.00250013 ETH
201949232024-06-29 4:21:35141 days ago1719634895
0xd1791428...d4aD83a25
0.00528807 ETH
201949232024-06-29 4:21:35141 days ago1719634895
0xd1791428...d4aD83a25
0.00528807 ETH
201935982024-06-28 23:54:23141 days ago1719618863
0xd1791428...d4aD83a25
0.00507798 ETH
201935982024-06-28 23:54:23141 days ago1719618863
0xd1791428...d4aD83a25
0.00507798 ETH
201880682024-06-28 5:23:11142 days ago1719552191
0xd1791428...d4aD83a25
0.05281209 ETH
201880682024-06-28 5:23:11142 days ago1719552191
0xd1791428...d4aD83a25
0.05281209 ETH
201798662024-06-27 1:53:59143 days ago1719453239
0xd1791428...d4aD83a25
18.55212146 ETH
201798662024-06-27 1:53:59143 days ago1719453239
0xd1791428...d4aD83a25
18.55212146 ETH
201770212024-06-26 16:20:59144 days ago1719418859
0xd1791428...d4aD83a25
0.04865306 ETH
201770212024-06-26 16:20:59144 days ago1719418859
0xd1791428...d4aD83a25
0.04865306 ETH
201767532024-06-26 15:26:47144 days ago1719415607
0xd1791428...d4aD83a25
0.1031899 ETH
201767532024-06-26 15:26:47144 days ago1719415607
0xd1791428...d4aD83a25
0.1031899 ETH
201733342024-06-26 4:00:35144 days ago1719374435
0xd1791428...d4aD83a25
0.05340208 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.3.3

Optimization Enabled:
N/A

Other Settings:
None license

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

Contract ABI

[{"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"}]

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.