Feature Tip: Add private address tag to any address under My Name Tag !
Latest 25 from a total of 693 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw_and_uns... | 23620161 | 56 mins ago | IN | 0 ETH | 0.00130752 | ||||
Withdraw_and_uns... | 23619433 | 3 hrs ago | IN | 0 ETH | 0.00072857 | ||||
Withdraw_and_uns... | 23616941 | 11 hrs ago | IN | 0 ETH | 0.00083805 | ||||
Withdraw_and_uns... | 23615717 | 15 hrs ago | IN | 0 ETH | 0.00008837 | ||||
Withdraw_and_uns... | 23615047 | 18 hrs ago | IN | 0 ETH | 0.00008579 | ||||
Withdraw_and_uns... | 23614410 | 20 hrs ago | IN | 0 ETH | 0.00054185 | ||||
Deposit_and_stak... | 23612625 | 26 hrs ago | IN | 0 ETH | 0.00071658 | ||||
Deposit_and_stak... | 23612619 | 26 hrs ago | IN | 0 ETH | 0.00058342 | ||||
Deposit_and_stak... | 23612596 | 26 hrs ago | IN | 0 ETH | 0.00012375 | ||||
Deposit_and_stak... | 23612530 | 26 hrs ago | IN | 0 ETH | 0.0001661 | ||||
Deposit_and_stak... | 23612499 | 26 hrs ago | IN | 0 ETH | 0.00013842 | ||||
Deposit_and_stak... | 23612430 | 26 hrs ago | IN | 0 ETH | 0.00017167 | ||||
Deposit_and_stak... | 23612132 | 27 hrs ago | IN | 0 ETH | 0.00093265 | ||||
Deposit_and_stak... | 23612123 | 27 hrs ago | IN | 0 ETH | 0.00083778 | ||||
Deposit_and_stak... | 23611954 | 28 hrs ago | IN | 0 ETH | 0.0000955 | ||||
Deposit_and_stak... | 23611873 | 28 hrs ago | IN | 0 ETH | 0.00008891 | ||||
Deposit_and_stak... | 23611654 | 29 hrs ago | IN | 0 ETH | 0.00011445 | ||||
Deposit_and_stak... | 23611620 | 29 hrs ago | IN | 0 ETH | 0.00012162 | ||||
Deposit_and_stak... | 23611516 | 30 hrs ago | IN | 0 ETH | 0.00011247 | ||||
Deposit_and_stak... | 23611513 | 30 hrs ago | IN | 0 ETH | 0.00009495 | ||||
Deposit_and_stak... | 23611377 | 30 hrs ago | IN | 0 ETH | 0.00010775 | ||||
Deposit_and_stak... | 23611282 | 30 hrs ago | IN | 0 ETH | 0.00015057 | ||||
Deposit_and_stak... | 23611250 | 30 hrs ago | IN | 0 ETH | 0.00091247 | ||||
Withdraw_and_uns... | 23611232 | 30 hrs ago | IN | 0 ETH | 0.00009926 | ||||
Deposit_and_stak... | 23611089 | 31 hrs ago | IN | 0 ETH | 0.00021379 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
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

Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.