Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x1dbead82db7cdccc2309a8436cf93f7c33a7221a36d73624c11da30bcb102521 | Swap Exact Token... | (pending) | 11 hrs ago | IN | 0.0001 ETH | (Pending) | |||
0x5c598da26382e9b3bc3e5a3396a92a8c4fd3bbab82592e73c80e278b9252f8e0 | Swap Exact Token... | (pending) | 11 hrs ago | IN | 0.0001 ETH | (Pending) | |||
0xb4f20794e7865bb46cd497d9d2758dc64ca04d5fa327f571679ceab297231594 | Swap Exact Token... | (pending) | 11 hrs ago | IN | 0.0005 ETH | (Pending) | |||
0x58d0bde84e1306ea60708bf987a9fd48e8b03a9ce1176be9717cdeadde1e41d5 | Swap Exact Token... | (pending) | 11 hrs ago | IN | 0.001 ETH | (Pending) | |||
0x644cd73a74087b12f2e9e71bdf719cac0a932ca93ca2c0d6ae6992f5708bcef7 | Swap Exact Token... | (pending) | 11 hrs ago | IN | 0.0005 ETH | (Pending) | |||
0x1908d51a375b84d83245b89c7e8d388abea912f6919a552dd9ac9d6098ee720a | Swap Exact Token... | (pending) | 12 hrs ago | IN | 0.0005 ETH | (Pending) | |||
0x7a63bf8c60bd81f9c5b37c5c2e0c4c410d8239ae15ef9c6cc051ef4a924a3018 | Multicall | (pending) | 12 hrs ago | IN | 0 ETH | (Pending) | |||
Exit Post Exp To... | 22654234 | 53 secs ago | IN | 0 ETH | 0.00022339 | ||||
Swap Exact Token... | 22654234 | 53 secs ago | IN | 0 ETH | 0.00036098 | ||||
Swap Exact Token... | 22654233 | 1 min ago | IN | 0.01 ETH | 0.00056284 | ||||
Swap Exact Token... | 22654233 | 1 min ago | IN | 0 ETH | 0.00065703 | ||||
Redeem Due Inter... | 22654227 | 2 mins ago | IN | 0 ETH | 0.00020141 | ||||
Add Liquidity Si... | 22654227 | 2 mins ago | IN | 0 ETH | 0.00070642 | ||||
Swap Exact Token... | 22654224 | 2 mins ago | IN | 0.00987586 ETH | 0.00057443 | ||||
Swap Exact Token... | 22654221 | 3 mins ago | IN | 0.004 ETH | 0.00049673 | ||||
Swap Exact Token... | 22654217 | 4 mins ago | IN | 0 ETH | 0.00162044 | ||||
Add Liquidity Si... | 22654209 | 5 mins ago | IN | 0 ETH | 0.00047873 | ||||
Add Liquidity Si... | 22654207 | 6 mins ago | IN | 0 ETH | 0.00054921 | ||||
Add Liquidity Si... | 22654199 | 7 mins ago | IN | 0 ETH | 0.00054642 | ||||
Redeem Due Inter... | 22654192 | 9 mins ago | IN | 0 ETH | 0.00014872 | ||||
Swap Exact Token... | 22654189 | 9 mins ago | IN | 0 ETH | 0.00032836 | ||||
Swap Exact Token... | 22654186 | 10 mins ago | IN | 0 ETH | 0.00109018 | ||||
Swap Exact Token... | 22654180 | 11 mins ago | IN | 0 ETH | 0.00116422 | ||||
Swap Tokens To T... | 22654171 | 13 mins ago | IN | 0 ETH | 0.00128402 | ||||
Swap Exact Pt Fo... | 22654169 | 13 mins ago | IN | 0 ETH | 0.00102449 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Swap | 22654233 | 1 min ago | 0.01 ETH | ||||
Swap | 22654224 | 2 mins ago | 0.00987586 ETH | ||||
Swap | 22654221 | 3 mins ago | 0.004 ETH | ||||
Transfer | 22654171 | 13 mins ago | 0.00342553 ETH | ||||
Transfer | 22654171 | 13 mins ago | 0.00342553 ETH | ||||
Transfer | 22654171 | 13 mins ago | 0.00965119 ETH | ||||
Transfer | 22654171 | 13 mins ago | 0.00965119 ETH | ||||
Transfer | 22654171 | 13 mins ago | 0.1754178 ETH | ||||
Transfer | 22654171 | 13 mins ago | 0.1754178 ETH | ||||
Swap | 22654132 | 21 mins ago | 0.02 ETH | ||||
Swap | 22654127 | 22 mins ago | 0.02 ETH | ||||
Swap | 22654035 | 40 mins ago | 0.04 ETH | ||||
Swap | 22653945 | 58 mins ago | 0.035 ETH | ||||
Transfer | 22653913 | 1 hr ago | 0.08672052 ETH | ||||
Transfer | 22653913 | 1 hr ago | 0.08672052 ETH | ||||
Swap | 22653907 | 1 hr ago | 0.015 ETH | ||||
Swap | 22653896 | 1 hr ago | 0.025 ETH | ||||
Swap | 22653871 | 1 hr ago | 0.2 ETH | ||||
Swap | 22653835 | 1 hr ago | 0.046 ETH | ||||
Transfer | 22653834 | 1 hr ago | 8.96803751 ETH | ||||
Transfer | 22653834 | 1 hr ago | 8.96803751 ETH | ||||
Swap | 22653729 | 1 hr ago | 0.04 ETH | ||||
Swap | 22653719 | 1 hr ago | 0.00993344 ETH | ||||
Deposit | 22653709 | 1 hr ago | 0.0012 ETH | ||||
Swap | 22653685 | 1 hr ago | 0.00989875 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
PendleRouterV4
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.17; import "@openzeppelin/contracts/proxy/Proxy.sol"; import "../interfaces/IPActionStorageV4.sol"; import "./RouterStorage.sol"; contract PendleRouterV4 is Proxy, RouterStorage { constructor(address _owner, address actionStorage) { RouterStorage.CoreStorage storage $ = _getCoreStorage(); $.owner = _owner; $.selectorToFacet[IPActionStorageV4.setSelectorToFacets.selector] = actionStorage; } function _implementation() internal view override returns (address) { RouterStorage.CoreStorage storage $ = _getCoreStorage(); address facet = $.selectorToFacet[msg.sig]; require(facet != address(0), "INVALID_SELECTOR"); return facet; } receive() external payable override {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) pragma solidity ^0.8.0; /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a * different contract through the {_delegate} function. * * The success and return data of the delegated call will be returned back to the caller of the proxy. */ abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function * and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address); /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _beforeFallback(); _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } /** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overridden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; interface IPActionStorageV4 { struct SelectorsToFacet { address facet; bytes4[] selectors; } event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); event SelectorToFacetSet(bytes4 indexed selector, address indexed facet); function owner() external view returns (address); function pendingOwner() external view returns (address); function transferOwnership(address newOwner, bool direct, bool renounce) external; function claimOwnership() external; function setSelectorToFacets(SelectorsToFacet[] calldata arr) external; function selectorToFacet(bytes4 selector) external view returns (address); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.17; abstract contract RouterStorage { struct CoreStorage { address owner; address pendingOwner; mapping(bytes4 => address) selectorToFacet; } // keccak256(abi.encode(uint256(keccak256("pendle.routerv4.Core")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant CORE_STORAGE_LOCATION = 0xf168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab800; function _getCoreStorage() internal pure returns (CoreStorage storage $) { assembly { $.slot := CORE_STORAGE_LOCATION } } }
{ "optimizer": { "enabled": true, "runs": 1000000 }, "viaIR": true, "evmVersion": "shanghai", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"actionStorage","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080346100f957601f61024538819003918201601f19168301916001600160401b038311848410176100fd5780849260409485528339810103126100f957610052602061004b83610111565b9201610111565b7ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80080546001600160a01b039384166001600160a01b03199182161790915563523edfc160e11b5f527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab8026020527f64dcb2031b93f2b828088d68228a52c10b3bf4eb531ee3da663820f1b8fd2a6d805492909316911617905560405161011f90816101268239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b03821682036100f95756fe6080604052361560e7577fffffffff000000000000000000000000000000000000000000000000000000005f35165f527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80260205273ffffffffffffffffffffffffffffffffffffffff60405f2054168015608f575f8091368280378136915af43d5f803e15608b573d5ff35b3d5ffd5b7f08c379a0000000000000000000000000000000000000000000000000000000006080526020608452601060a4527f494e56414c49445f53454c4543544f520000000000000000000000000000000060c45260646080fd5b00fea2646970667358221220fb238a4872e09c3860528f78146507d0193bd6d15bb6de3664daec4da78e4eb964736f6c634300081800330000000000000000000000001fccc097db89a86bfc474a1028f93958295b1fb70000000000000000000000002d36f2a022d1170f33fdfd5670833c447c0c9ff3
Deployed Bytecode
0x6080604052361560e7577fffffffff000000000000000000000000000000000000000000000000000000005f35165f527ff168c5b0cb4aca9a68f931815c18a144c61ad01d6dd7ca15bd6741672a0ab80260205273ffffffffffffffffffffffffffffffffffffffff60405f2054168015608f575f8091368280378136915af43d5f803e15608b573d5ff35b3d5ffd5b7f08c379a0000000000000000000000000000000000000000000000000000000006080526020608452601060a4527f494e56414c49445f53454c4543544f520000000000000000000000000000000060c45260646080fd5b00fea2646970667358221220fb238a4872e09c3860528f78146507d0193bd6d15bb6de3664daec4da78e4eb964736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001fccc097db89a86bfc474a1028f93958295b1fb70000000000000000000000002d36f2a022d1170f33fdfd5670833c447c0c9ff3
-----Decoded View---------------
Arg [0] : _owner (address): 0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7
Arg [1] : actionStorage (address): 0x2D36f2A022D1170f33fDFD5670833C447c0c9Ff3
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001fccc097db89a86bfc474a1028f93958295b1fb7
Arg [1] : 0000000000000000000000002d36f2a022d1170f33fdfd5670833c447c0c9ff3
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.