Latest 25 from a total of 2,564 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit_and_stak... | 24585413 | 2 mins ago | IN | 0 ETH | 0.00039983 | ||||
| Deposit_and_stak... | 24585263 | 32 mins ago | IN | 0 ETH | 0.00072716 | ||||
| Withdraw_and_uns... | 24569443 | 2 days ago | IN | 0 ETH | 0.00004097 | ||||
| Withdraw_and_uns... | 24563913 | 3 days ago | IN | 0 ETH | 0.00160636 | ||||
| Withdraw_and_uns... | 24537283 | 6 days ago | IN | 0 ETH | 0.00159665 | ||||
| Withdraw_and_uns... | 24537282 | 6 days ago | IN | 0 ETH | 0.0015762 | ||||
| Withdraw_and_uns... | 24535215 | 7 days ago | IN | 0 ETH | 0.00047713 | ||||
| Withdraw_and_uns... | 24471729 | 15 days ago | IN | 0 ETH | 0.00002906 | ||||
| Withdraw_and_uns... | 24464037 | 16 days ago | IN | 0 ETH | 0.00003822 | ||||
| Withdraw_and_uns... | 24424203 | 22 days ago | IN | 0 ETH | 0.00004037 | ||||
| Withdraw_and_uns... | 24423583 | 22 days ago | IN | 0 ETH | 0.00003697 | ||||
| Withdraw_and_uns... | 24400578 | 25 days ago | IN | 0 ETH | 0.00019552 | ||||
| Withdraw_and_uns... | 24400555 | 25 days ago | IN | 0 ETH | 0.0001617 | ||||
| Withdraw_and_uns... | 24400542 | 25 days ago | IN | 0 ETH | 0.00016086 | ||||
| Deposit_and_stak... | 24395785 | 26 days ago | IN | 0 ETH | 0.00027943 | ||||
| Deposit_and_stak... | 24395782 | 26 days ago | IN | 0 ETH | 0.00071009 | ||||
| Deposit_and_stak... | 24394795 | 26 days ago | IN | 0 ETH | 0.00156407 | ||||
| Withdraw_and_uns... | 24393393 | 26 days ago | IN | 0 ETH | 0.00433009 | ||||
| Withdraw_and_uns... | 24392864 | 26 days ago | IN | 0 ETH | 0.00079953 | ||||
| Withdraw_and_uns... | 24392458 | 26 days ago | IN | 0 ETH | 0.00224791 | ||||
| Withdraw_and_uns... | 24389787 | 27 days ago | IN | 0 ETH | 0.00021272 | ||||
| Withdraw_and_uns... | 24389783 | 27 days ago | IN | 0 ETH | 0.0002541 | ||||
| Withdraw_and_uns... | 24376783 | 29 days ago | IN | 0 ETH | 0.00008887 | ||||
| Withdraw_and_uns... | 24376759 | 29 days ago | IN | 0 ETH | 0.00008929 | ||||
| Deposit_and_stak... | 24366756 | 30 days ago | IN | 0 ETH | 0.00026616 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
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
Contract Source Code (Vyper Json-Input format)
# @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){
"outputSelection": {
"contracts/dao/StakeZap.vy": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
},
"search_paths": [
"."
]
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
0x61050561001161000039610505610000f35f3560e01c60026003821660011b6104fd01601e395f51565b63ab1d546681186103c2576084361034176104f957336101405261005c565b6324cbd36c81186103c25760a4361034176104f9576084358060a01c6104f957610140525b6004358060a01c6104f957610120526101205163bfd9041b610180526020610180600461019c845afa610091573d5f5f3e3d5ffd5b3d602081183d602010021880610180016101a0116104f957610180518060a01c6104f9576101c052506101c0905051610160526101605163d70620056101a05260206101a060046101bc845afa6100ea573d5f5f3e3d5ffd5b3d602081183d6020100218806101a0016101c0116104f9576101a0518060a01c6104f9576101e052506101e09050516101805261012051604052610160516060526101805160805261013a6103c6565b610180516323b872dd6101a052336101c052306101e0526024356102005260206101a060646101bc5f855af1610172573d5f5f3e3d5ffd5b3d61018957803b156104f9576001610220526101b3565b3d602081183d6020100218806101a0016101c0116104f9576101a0518060011c6104f95761022052505b610220905051156104f9576101605162aeef8a6101c052606060246101e03760206101c060646101dc5f855af16101ec573d5f5f3e3d5ffd5b60203d106104f9576101c09050516101a052602061012051636e553f656101c0526101a0516101e052610140516102005260206101c060446101dc5f855af1610237573d5f5f3e3d5ffd5b60203d106104f9576101c09050f35b632195919981186103c2576064361034176104f95733606052610288565b6319f6626b81186103c2576084361034176104f9576064358060a01c6104f9576060525b6004358060a01c6104f95760405260405163bfd9041b60a052602060a0600460bc845afa6102b8573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060a01c6104f95760e0525060e090505160805260805163d706200560c052602060c0600460dc845afa610307573d5f5f3e3d5ffd5b3d602081183d60201002188060c00160e0116104f95760c0518060a01c6104f957610100525061010090505160a05260405163ba08765260e0526024356101005230610120523361014052602060e0606460fc5f855af161036a573d5f5f3e3d5ffd5b60203d106104f95760e090505160c0526020608051630ad58d2f60e05260c051610100526044356101205260605161014052602060e0606460fc5f855af16103b4573d5f5f3e3d5ffd5b60203d106104f95760e09050f35b5f5ffd5b5f6040516020525f5260405f20546104f75760805163095ea7b360a05260605160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af1610425573d5f5f3e3d5ffd5b3d61043c57803b156104f957600161010052610463565b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f95761010052505b610100905051156104f95760605163095ea7b360a05260405160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af16104bb573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f9576101005250610100505060015f6040516020525f5260405f20555b565b5f80fd00370246001802648558203ef13c430d1c94226c4b0fca7d76c9cdd51b829d394b2884fa4495fef69bddd1190505810800a1657679706572830004030036
Deployed Bytecode
0x5f3560e01c60026003821660011b6104fd01601e395f51565b63ab1d546681186103c2576084361034176104f957336101405261005c565b6324cbd36c81186103c25760a4361034176104f9576084358060a01c6104f957610140525b6004358060a01c6104f957610120526101205163bfd9041b610180526020610180600461019c845afa610091573d5f5f3e3d5ffd5b3d602081183d602010021880610180016101a0116104f957610180518060a01c6104f9576101c052506101c0905051610160526101605163d70620056101a05260206101a060046101bc845afa6100ea573d5f5f3e3d5ffd5b3d602081183d6020100218806101a0016101c0116104f9576101a0518060a01c6104f9576101e052506101e09050516101805261012051604052610160516060526101805160805261013a6103c6565b610180516323b872dd6101a052336101c052306101e0526024356102005260206101a060646101bc5f855af1610172573d5f5f3e3d5ffd5b3d61018957803b156104f9576001610220526101b3565b3d602081183d6020100218806101a0016101c0116104f9576101a0518060011c6104f95761022052505b610220905051156104f9576101605162aeef8a6101c052606060246101e03760206101c060646101dc5f855af16101ec573d5f5f3e3d5ffd5b60203d106104f9576101c09050516101a052602061012051636e553f656101c0526101a0516101e052610140516102005260206101c060446101dc5f855af1610237573d5f5f3e3d5ffd5b60203d106104f9576101c09050f35b632195919981186103c2576064361034176104f95733606052610288565b6319f6626b81186103c2576084361034176104f9576064358060a01c6104f9576060525b6004358060a01c6104f95760405260405163bfd9041b60a052602060a0600460bc845afa6102b8573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060a01c6104f95760e0525060e090505160805260805163d706200560c052602060c0600460dc845afa610307573d5f5f3e3d5ffd5b3d602081183d60201002188060c00160e0116104f95760c0518060a01c6104f957610100525061010090505160a05260405163ba08765260e0526024356101005230610120523361014052602060e0606460fc5f855af161036a573d5f5f3e3d5ffd5b60203d106104f95760e090505160c0526020608051630ad58d2f60e05260c051610100526044356101205260605161014052602060e0606460fc5f855af16103b4573d5f5f3e3d5ffd5b60203d106104f95760e09050f35b5f5ffd5b5f6040516020525f5260405f20546104f75760805163095ea7b360a05260605160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af1610425573d5f5f3e3d5ffd5b3d61043c57803b156104f957600161010052610463565b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f95761010052505b610100905051156104f95760605163095ea7b360a05260405160c0527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60e052602060a0604460bc5f855af16104bb573d5f5f3e3d5ffd5b3d602081183d60201002188060a00160c0116104f95760a0518060011c6104f9576101005250610100505060015f6040516020525f5260405f20555b565b5f80fd0037024600180264
Loading...
Loading
Loading...
Loading
Net Worth in USD
$3.10
Net Worth in ETH
0.001443
Token Allocations
WETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,149.17 | 0.0014427 | $3.1 |
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.