- Contract name:
- ReasonDecoder
- Optimization enabled
- true
- Compiler version
- v0.7.6+commit.7338295f
- Optimization runs
- 1000000
- Verified at
- 2023-12-14T15:22:04.285327Z
contracts/lens/ReasonDecoder.sol
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; contract ReasonDecoder { function parseReason(bytes memory reason) external pure returns ( uint256 amount, uint160 sqrtPriceX96After, int24 tickAfter ) { return abi.decode(reason, (uint256, uint160, int24)); } }
Contract ABI
[{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint160","name":"sqrtPriceX96After","internalType":"uint160"},{"type":"int24","name":"tickAfter","internalType":"int24"}],"name":"parseReason","inputs":[{"type":"bytes","name":"reason","internalType":"bytes"}]}]
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80634f86a1f914610030575b600080fd5b6100d66004803603602081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184600183028401116401000000008311171561009557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061010c945050505050565b6040805193845273ffffffffffffffffffffffffffffffffffffffff909216602084015260020b82820152519081900360600190f35b600080600083806020019051606081101561012657600080fd5b50805160208201516040909201519096919550935091505056fea164736f6c6343000706000a