ETH Price: $3,951.00 (-1.12%)

Contract

0xE862bC39B8D5F12D8c4117d3e2D493Dc20051EC6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw_and_uns...236201612025-10-20 17:00:2356 mins ago1760979623IN
Yield Basis: Stake Zap
0 ETH0.001307521.71969225
Withdraw_and_uns...236194332025-10-20 14:33:233 hrs ago1760970803IN
Yield Basis: Stake Zap
0 ETH0.000728570.9042825
Withdraw_and_uns...236169412025-10-20 6:09:3511 hrs ago1760940575IN
Yield Basis: Stake Zap
0 ETH0.000838051.10221462
Withdraw_and_uns...236157172025-10-20 2:00:5915 hrs ago1760925659IN
Yield Basis: Stake Zap
0 ETH0.000088370.109581
Withdraw_and_uns...236150472025-10-19 23:46:1118 hrs ago1760917571IN
Yield Basis: Stake Zap
0 ETH0.000085790.11234224
Withdraw_and_uns...236144102025-10-19 21:37:5920 hrs ago1760909879IN
Yield Basis: Stake Zap
0 ETH0.000541850.69806316
Deposit_and_stak...236126252025-10-19 15:38:5926 hrs ago1760888339IN
Yield Basis: Stake Zap
0 ETH0.000716581.34131481
Deposit_and_stak...236126192025-10-19 15:37:4726 hrs ago1760888267IN
Yield Basis: Stake Zap
0 ETH0.000583420.758583
Deposit_and_stak...236125962025-10-19 15:33:1126 hrs ago1760887991IN
Yield Basis: Stake Zap
0 ETH0.000123750.16305674
Deposit_and_stak...236125302025-10-19 15:19:5926 hrs ago1760887199IN
Yield Basis: Stake Zap
0 ETH0.00016610.2057034
Deposit_and_stak...236124992025-10-19 15:13:4726 hrs ago1760886827IN
Yield Basis: Stake Zap
0 ETH0.000138420.17883453
Deposit_and_stak...236124302025-10-19 14:59:2326 hrs ago1760885963IN
Yield Basis: Stake Zap
0 ETH0.000171670.22165732
Deposit_and_stak...236121322025-10-19 13:59:2327 hrs ago1760882363IN
Yield Basis: Stake Zap
0 ETH0.000932651.22063229
Deposit_and_stak...236121232025-10-19 13:57:3527 hrs ago1760882255IN
Yield Basis: Stake Zap
0 ETH0.000837781.66298703
Deposit_and_stak...236119542025-10-19 13:23:2328 hrs ago1760880203IN
Yield Basis: Stake Zap
0 ETH0.00009550.12468217
Deposit_and_stak...236118732025-10-19 13:06:5928 hrs ago1760879219IN
Yield Basis: Stake Zap
0 ETH0.000088910.12806445
Deposit_and_stak...236116542025-10-19 12:22:3529 hrs ago1760876555IN
Yield Basis: Stake Zap
0 ETH0.000114450.14150009
Deposit_and_stak...236116202025-10-19 12:15:4729 hrs ago1760876147IN
Yield Basis: Stake Zap
0 ETH0.000121620.15035454
Deposit_and_stak...236115162025-10-19 11:54:2330 hrs ago1760874863IN
Yield Basis: Stake Zap
0 ETH0.000112470.1410676
Deposit_and_stak...236115132025-10-19 11:53:4730 hrs ago1760874827IN
Yield Basis: Stake Zap
0 ETH0.000094950.13861082
Deposit_and_stak...236113772025-10-19 11:26:2330 hrs ago1760873183IN
Yield Basis: Stake Zap
0 ETH0.000107750.13513585
Deposit_and_stak...236112822025-10-19 11:07:2330 hrs ago1760872043IN
Yield Basis: Stake Zap
0 ETH0.000150570.18166941
Deposit_and_stak...236112502025-10-19 11:00:5930 hrs ago1760871659IN
Yield Basis: Stake Zap
0 ETH0.000912471.13810121
Withdraw_and_uns...236112322025-10-19 10:57:2330 hrs ago1760871443IN
Yield Basis: Stake Zap
0 ETH0.000099260.12745907
Deposit_and_stak...236110892025-10-19 10:28:4731 hrs ago1760869727IN
Yield Basis: Stake Zap
0 ETH0.000213790.30673816
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x9aA5f441...a484b4e7b
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StakeZap

Compiler Version
vyper:0.4.3

Optimization Enabled:
Yes

Other Settings:
default evmVersion, None license

Contract Source Code (Vyper Json-Input format)

File 1 of 1 : StakeZap.vy
# @version 0.4.3
"""
@title StakeZap
@author Yield Basis
@license GNU Affero General Public License v3.0
"""
from ethereum.ercs import IERC20

interface LT:
    def deposit(assets: uint256, debt: uint256, min_shares: uint256) -> uint256: nonpayable
    def withdraw(shares: uint256, min_assets: uint256, receiver: address) -> uint256: nonpayable
    def approve(_to: address, _value: uint256) -> bool: nonpayable
    def ASSET_TOKEN() -> IERC20: view

interface LiquidityGauge:
    def deposit(assets: uint256, receiver: address) -> uint256: nonpayable
    def redeem(shares: uint256, receiver: address, owner: address) -> uint256: nonpayable
    def LP_TOKEN() -> LT: view
    def transferFrom(_from: address, _to: address, _value: uint256) -> bool: nonpayable


approvals: HashMap[LiquidityGauge, bool]


@internal
def _approve_all(gauge: LiquidityGauge, lt: LT, asset: IERC20):
    if not self.approvals[gauge]:
        assert extcall asset.approve(lt.address, max_value(uint256), default_return_value=True)
        extcall lt.approve(gauge.address, max_value(uint256))
        self.approvals[gauge] = True


@external
def deposit_and_stake(gauge: LiquidityGauge, assets: uint256, debt: uint256, min_shares: uint256, receiver: address = msg.sender) -> uint256:
    """
    @notice Deposit cryptoasset into LT contract and stake in LiquidityGauge for user
    @param gauge Gauge to stake in (LP token address is taken from gauge)
    @param assets Amount of cryptotokens to deposit
    @param debt Debt size to take when creating the position
    @param min_shares Minimal amount of LT tokens to create upon deposit
    @param receiver Address to send gauge tokens to
    """
    lt: LT = staticcall gauge.LP_TOKEN()
    asset: IERC20 = staticcall lt.ASSET_TOKEN()
    self._approve_all(gauge, lt, asset)
    assert extcall asset.transferFrom(msg.sender, self, assets, default_return_value=True)
    lt_tokens: uint256 = extcall lt.deposit(assets, debt, min_shares)
    return extcall gauge.deposit(lt_tokens, receiver)


@external
def withdraw_and_unstake(gauge: LiquidityGauge, shares: uint256, min_assets: uint256, receiver: address = msg.sender) -> uint256:
    """
    @notice Unstake LT from gauge and withdraw to receive cryptoassets
    @param gauge Gauge to unstake
    @param shares Amount of gauge tokens to unstake
    @param min_assets Minimal amount of crypto to receive
    @param receiver The recipient of crypto after the withdrawal
    """
    lt: LT = staticcall gauge.LP_TOKEN()
    asset: IERC20 = staticcall lt.ASSET_TOKEN()
    lt_tokens: uint256 = extcall gauge.redeem(shares, self, msg.sender)
    return extcall lt.withdraw(lt_tokens, min_assets, receiver)

Settings
{
  "outputSelection": {
    "contracts/dao/StakeZap.vy": [
      "evm.bytecode",
      "evm.deployedBytecode",
      "abi"
    ]
  },
  "search_paths": [
    "."
  ]
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"name":"gauge","type":"address"},{"name":"assets","type":"uint256"},{"name":"debt","type":"uint256"},{"name":"min_shares","type":"uint256"}],"name":"deposit_and_stake","outputs":[{"name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"gauge","type":"address"},{"name":"assets","type":"uint256"},{"name":"debt","type":"uint256"},{"name":"min_shares","type":"uint256"},{"name":"receiver","type":"address"}],"name":"deposit_and_stake","outputs":[{"name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"gauge","type":"address"},{"name":"shares","type":"uint256"},{"name":"min_assets","type":"uint256"}],"name":"withdraw_and_unstake","outputs":[{"name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"gauge","type":"address"},{"name":"shares","type":"uint256"},{"name":"min_assets","type":"uint256"},{"name":"receiver","type":"address"}],"name":"withdraw_and_unstake","outputs":[{"name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

0x61050561001161000039610505610000f35f3560e01c60026003821660011b6104fd01601e395f51565b63ab1d546681186103c2576084361034176104f957336101405261005c565b6324cbd36c81186103c25760a4361034176104f9576084358060a01c6104f957610140525b6004358060a01c6104f957610120526101205163bfd9041b610180526020610180600461019c845afa610091573d5f5f3e3d5ffd5b3d602081183d602010021880610180016101a0116104f957610180518060a01c6104f9576101c052506101c0905051610160526101605163d70620056101a05260206101a060046101bc845afa6100ea573d5f5f3e3d5ffd5b3d602081183d6020100218806101a0016101c0116104f9576101a0518060a01c6104f9576101e052506101e09050516101805261012051604052610160516060526101805160805261013a6103c6565b610180516323b872dd6101a052336101c052306101e0526024356102005260206101a060646101bc5f855af1610172573d5f5f3e3d5ffd5b3d61018957803b156104f9576001610220526101b3565b3d602081183d6020100218806101a0016101c0116104f9576101a0518060011c6104f95761022052505b610220905051156104f9576101605162aeef8a6101c052606060246101e03760206101c060646101dc5f855af16101ec573d5f5f3e3d5ffd5b60203d106104f9576101c09050516101a052602061012051636e553f656101c0526101a0516101e052610140516102005260206101c060446101dc5f855af1610237573d5f5f3e3d5ffd5b60203d106104f9576101c09050f35b632195919981186103c2576064361034176104f95733606052610288565b6319f6626b81186103c2576084361034176104f9576064358060a01c6104f9576060525b6004358060a01c6104f95760405260405163bfd9041b60a052602060a0600460bc845afa6102b8573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060a01c6104f95760e0525060e090505160805260805163d706200560c052602060c0600460dc845afa610307573d5f5f3e3d5ffd5b3d602081183d60201002188060c00160e0116104f95760c0518060a01c6104f957610100525061010090505160a05260405163ba08765260e0526024356101005230610120523361014052602060e0606460fc5f855af161036a573d5f5f3e3d5ffd5b60203d106104f95760e090505160c0526020608051630ad58d2f60e05260c051610100526044356101205260605161014052602060e0606460fc5f855af16103b4573d5f5f3e3d5ffd5b60203d106104f95760e09050f35b5f5ffd5b5f6040516020525f5260405f20546104f75760805163095ea7b360a05260605160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af1610425573d5f5f3e3d5ffd5b3d61043c57803b156104f957600161010052610463565b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f95761010052505b610100905051156104f95760605163095ea7b360a05260405160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af16104bb573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f9576101005250610100505060015f6040516020525f5260405f20555b565b5f80fd00370246001802648558203ef13c430d1c94226c4b0fca7d76c9cdd51b829d394b2884fa4495fef69bddd1190505810800a1657679706572830004030036

Deployed Bytecode

0x5f3560e01c60026003821660011b6104fd01601e395f51565b63ab1d546681186103c2576084361034176104f957336101405261005c565b6324cbd36c81186103c25760a4361034176104f9576084358060a01c6104f957610140525b6004358060a01c6104f957610120526101205163bfd9041b610180526020610180600461019c845afa610091573d5f5f3e3d5ffd5b3d602081183d602010021880610180016101a0116104f957610180518060a01c6104f9576101c052506101c0905051610160526101605163d70620056101a05260206101a060046101bc845afa6100ea573d5f5f3e3d5ffd5b3d602081183d6020100218806101a0016101c0116104f9576101a0518060a01c6104f9576101e052506101e09050516101805261012051604052610160516060526101805160805261013a6103c6565b610180516323b872dd6101a052336101c052306101e0526024356102005260206101a060646101bc5f855af1610172573d5f5f3e3d5ffd5b3d61018957803b156104f9576001610220526101b3565b3d602081183d6020100218806101a0016101c0116104f9576101a0518060011c6104f95761022052505b610220905051156104f9576101605162aeef8a6101c052606060246101e03760206101c060646101dc5f855af16101ec573d5f5f3e3d5ffd5b60203d106104f9576101c09050516101a052602061012051636e553f656101c0526101a0516101e052610140516102005260206101c060446101dc5f855af1610237573d5f5f3e3d5ffd5b60203d106104f9576101c09050f35b632195919981186103c2576064361034176104f95733606052610288565b6319f6626b81186103c2576084361034176104f9576064358060a01c6104f9576060525b6004358060a01c6104f95760405260405163bfd9041b60a052602060a0600460bc845afa6102b8573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060a01c6104f95760e0525060e090505160805260805163d706200560c052602060c0600460dc845afa610307573d5f5f3e3d5ffd5b3d602081183d60201002188060c00160e0116104f95760c0518060a01c6104f957610100525061010090505160a05260405163ba08765260e0526024356101005230610120523361014052602060e0606460fc5f855af161036a573d5f5f3e3d5ffd5b60203d106104f95760e090505160c0526020608051630ad58d2f60e05260c051610100526044356101205260605161014052602060e0606460fc5f855af16103b4573d5f5f3e3d5ffd5b60203d106104f95760e09050f35b5f5ffd5b5f6040516020525f5260405f20546104f75760805163095ea7b360a05260605160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af1610425573d5f5f3e3d5ffd5b3d61043c57803b156104f957600161010052610463565b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f95761010052505b610100905051156104f95760605163095ea7b360a05260405160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af16104bb573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f9576101005250610100505060015f6040516020525f5260405f20555b565b5f80fd0037024600180264

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.