OP Sepolia Testnet

Contract

0xb0d70493ECD2E4753a4bB91fA6be159597F4d1F5
Source Code Source Code
Transaction Hash
Method
Block
From
To
Amount

There are no matching entries

> 10 Token Transfers found.

Parent Transaction Hash Block From To Amount
View All Internal Transactions
Loading...
Loading
Source Code Verified Exact Match

Contract Name

MockUniswap

Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled
Yes with 200 runs
Other Settings
paris EvmVersion
License
-NA-
Contract Source Code (Solidity Standard Json-Input format)
Contract ABI
API
[{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"name":"SwapedTokens","type":"event"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct MockUniswap.ExactInputParams","name":"params","type":"tuple"}],"name":"exactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
608060405234801561001057600080fd5b50610940806100206000396000f3fe6080604052600436106100295760003560e01c806351cff8d91461002e578063c04b8d5914610050575b600080fd5b34801561003a57600080fd5b5061004e6100493660046107b2565b610075565b005b61006361005e3660046107db565b6100fa565b60405190815260200160405180910390f35b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e09190610816565b90506100f66001600160a01b0383163383610275565b5050565b60008061014461010a848061082f565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506102d992505050565b5090915060009050610193610159858061082f565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061031592505050565b905060006101a0826102d9565b506080870135955091506101d590506101bf60408701602088016107b2565b6001600160a01b0385169030606089013561034c565b6101fd6101e860408701602088016107b2565b6001600160a01b038316906080880135610275565b61020d60408601602087016107b2565b604080516001600160a01b0386811682526060898101356020840152858216838501526080808b01359184019190915292519316927f137e8dc9cb74df2c9175dd00a20ee701f2bcb2bb1e7330c6b069cc87edbec91b929181900390910190a2505050919050565b6040516001600160a01b038381166024830152604482018390526102d491859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061038b565b505050565b600080806102e784826103f3565b92506102f48460146104a7565b905061030c61030560036014610893565b85906103f3565b91509193909250565b606061034661032660036014610893565b61033260036014610893565b845161033e91906108a6565b849190610552565b92915050565b6040516001600160a01b0384811660248301528381166044830152606482018390526103859186918216906323b872dd906084016102a2565b50505050565b60006103a06001600160a01b038416836106ab565b905080516000141580156103c55750808060200190518101906103c391906108b9565b155b156102d457604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b600081610401816014610893565b10156104445760405162461bcd60e51b8152602060048201526012602482015271746f416464726573735f6f766572666c6f7760701b60448201526064016103ea565b61044f826014610893565b835110156104975760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b60448201526064016103ea565b500160200151600160601b900490565b6000816104b5816003610893565b10156104f75760405162461bcd60e51b8152602060048201526011602482015270746f55696e7432345f6f766572666c6f7760781b60448201526064016103ea565b610502826003610893565b835110156105495760405162461bcd60e51b8152602060048201526014602482015273746f55696e7432345f6f75744f66426f756e647360601b60448201526064016103ea565b50016003015190565b60608161056081601f610893565b101561059f5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016103ea565b826105aa8382610893565b10156105e95760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016103ea565b6105f38284610893565b845110156106375760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016103ea565b60608215801561065657604051915060008252602082016040526106a0565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561068f578051835260209283019201610677565b5050858452601f01601f1916604052505b5090505b9392505050565b60606106a48383600084600080856001600160a01b031684866040516106d191906108db565b60006040518083038185875af1925050503d806000811461070e576040519150601f19603f3d011682016040523d82523d6000602084013e610713565b606091505b509150915061072386838361072d565b9695505050505050565b6060826107425761073d82610789565b6106a4565b815115801561075957506001600160a01b0384163b155b1561078257604051639996b31560e01b81526001600160a01b03851660048201526024016103ea565b50806106a4565b8051156107995780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6000602082840312156107c457600080fd5b81356001600160a01b03811681146106a457600080fd5b6000602082840312156107ed57600080fd5b813567ffffffffffffffff81111561080457600080fd5b820160a081850312156106a457600080fd5b60006020828403121561082857600080fd5b5051919050565b6000808335601e1984360301811261084657600080fd5b83018035915067ffffffffffffffff82111561086157600080fd5b60200191503681900382131561087657600080fd5b9250929050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103465761034661087d565b818103818111156103465761034661087d565b6000602082840312156108cb57600080fd5b815180151581146106a457600080fd5b6000825160005b818110156108fc57602081860181015185830152016108e2565b50600092019182525091905056fea2646970667358221220557a7378174c31492c4b35fcbfe91dab8865aefd5fb39ac4f2d885bc276f699964736f6c63430008140033
Deployed Bytecode
0x6080604052600436106100295760003560e01c806351cff8d91461002e578063c04b8d5914610050575b600080fd5b34801561003a57600080fd5b5061004e6100493660046107b2565b610075565b005b61006361005e3660046107db565b6100fa565b60405190815260200160405180910390f35b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156100bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e09190610816565b90506100f66001600160a01b0383163383610275565b5050565b60008061014461010a848061082f565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506102d992505050565b5090915060009050610193610159858061082f565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061031592505050565b905060006101a0826102d9565b506080870135955091506101d590506101bf60408701602088016107b2565b6001600160a01b0385169030606089013561034c565b6101fd6101e860408701602088016107b2565b6001600160a01b038316906080880135610275565b61020d60408601602087016107b2565b604080516001600160a01b0386811682526060898101356020840152858216838501526080808b01359184019190915292519316927f137e8dc9cb74df2c9175dd00a20ee701f2bcb2bb1e7330c6b069cc87edbec91b929181900390910190a2505050919050565b6040516001600160a01b038381166024830152604482018390526102d491859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061038b565b505050565b600080806102e784826103f3565b92506102f48460146104a7565b905061030c61030560036014610893565b85906103f3565b91509193909250565b606061034661032660036014610893565b61033260036014610893565b845161033e91906108a6565b849190610552565b92915050565b6040516001600160a01b0384811660248301528381166044830152606482018390526103859186918216906323b872dd906084016102a2565b50505050565b60006103a06001600160a01b038416836106ab565b905080516000141580156103c55750808060200190518101906103c391906108b9565b155b156102d457604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b600081610401816014610893565b10156104445760405162461bcd60e51b8152602060048201526012602482015271746f416464726573735f6f766572666c6f7760701b60448201526064016103ea565b61044f826014610893565b835110156104975760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b60448201526064016103ea565b500160200151600160601b900490565b6000816104b5816003610893565b10156104f75760405162461bcd60e51b8152602060048201526011602482015270746f55696e7432345f6f766572666c6f7760781b60448201526064016103ea565b610502826003610893565b835110156105495760405162461bcd60e51b8152602060048201526014602482015273746f55696e7432345f6f75744f66426f756e647360601b60448201526064016103ea565b50016003015190565b60608161056081601f610893565b101561059f5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016103ea565b826105aa8382610893565b10156105e95760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016103ea565b6105f38284610893565b845110156106375760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016103ea565b60608215801561065657604051915060008252602082016040526106a0565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561068f578051835260209283019201610677565b5050858452601f01601f1916604052505b5090505b9392505050565b60606106a48383600084600080856001600160a01b031684866040516106d191906108db565b60006040518083038185875af1925050503d806000811461070e576040519150601f19603f3d011682016040523d82523d6000602084013e610713565b606091505b509150915061072386838361072d565b9695505050505050565b6060826107425761073d82610789565b6106a4565b815115801561075957506001600160a01b0384163b155b1561078257604051639996b31560e01b81526001600160a01b03851660048201526024016103ea565b50806106a4565b8051156107995780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6000602082840312156107c457600080fd5b81356001600160a01b03811681146106a457600080fd5b6000602082840312156107ed57600080fd5b813567ffffffffffffffff81111561080457600080fd5b820160a081850312156106a457600080fd5b60006020828403121561082857600080fd5b5051919050565b6000808335601e1984360301811261084657600080fd5b83018035915067ffffffffffffffff82111561086157600080fd5b60200191503681900382131561087657600080fd5b9250929050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103465761034661087d565b818103818111156103465761034661087d565b6000602082840312156108cb57600080fd5b815180151581146106a457600080fd5b6000825160005b818110156108fc57602081860181015185830152016108e2565b50600092019182525091905056fea2646970667358221220557a7378174c31492c4b35fcbfe91dab8865aefd5fb39ac4f2d885bc276f699964736f6c63430008140033

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
0xb0d70493ECD2E4753a4bB91fA6be159597F4d1F5
Loading...
Loading
Loading...
Loading

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.