ERC-20
Overview
Max Total Supply
94,312.292422 LP-LRC-ETH
Holders
16
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Balance
19.7336 LP-LRC-ETHValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x399D8961...E431421fc The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
OwnedUpgradabilityProxy
Compiler Version
v0.7.0+commit.9e61f92b
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-25 */ // SPDX-License-Identifier: UNLICENSED // This code is taken from https://github.com/OpenZeppelin/openzeppelin-labs // with minor modifications. pragma solidity ^0.7.0; // This code is taken from https://github.com/OpenZeppelin/openzeppelin-labs // with minor modifications. // This code is taken from https://github.com/OpenZeppelin/openzeppelin-labs // with minor modifications. /** * @title Proxy * @dev Gives the possibility to delegate any call to a foreign implementation. */ abstract contract Proxy { /** * @dev Tells the address of the implementation where every call will be delegated. * @return impl address of the implementation to which it will be delegated */ function implementation() public view virtual returns (address impl); receive() payable external { _fallback(); } fallback() payable external { _fallback(); } function _fallback() private { address _impl = implementation(); require(_impl != address(0)); assembly { let ptr := mload(0x40) calldatacopy(ptr, 0, calldatasize()) let result := delegatecall(gas(), _impl, ptr, calldatasize(), 0, 0) let size := returndatasize() returndatacopy(ptr, 0, size) switch result case 0 { revert(ptr, size) } default { return(ptr, size) } } } } /** * @title UpgradeabilityProxy * @dev This contract represents a proxy where the implementation address to which it will delegate can be upgraded */ contract UpgradeabilityProxy is Proxy { /** * @dev This event will be emitted every time the implementation gets upgraded * @param implementation representing the address of the upgraded implementation */ event Upgraded(address indexed implementation); // Storage position of the address of the current implementation bytes32 private constant implementationPosition = keccak256("org.zeppelinos.proxy.implementation"); /** * @dev Constructor function */ constructor() {} /** * @dev Tells the address of the current implementation * @return impl address of the current implementation */ function implementation() public view override returns (address impl) { bytes32 position = implementationPosition; assembly { impl := sload(position) } } /** * @dev Sets the address of the current implementation * @param newImplementation address representing the new implementation to be set */ function setImplementation(address newImplementation) internal { bytes32 position = implementationPosition; assembly { sstore(position, newImplementation) } } /** * @dev Upgrades the implementation address * @param newImplementation representing the address of the new implementation to be set */ function _upgradeTo(address newImplementation) internal { address currentImplementation = implementation(); require(currentImplementation != newImplementation); setImplementation(newImplementation); emit Upgraded(newImplementation); } } /** * @title OwnedUpgradabilityProxy * @dev This contract combines an upgradeability proxy with basic authorization control functionalities */ contract OwnedUpgradabilityProxy is UpgradeabilityProxy { /** * @dev Event to show ownership has been transferred * @param previousOwner representing the address of the previous owner * @param newOwner representing the address of the new owner */ event ProxyOwnershipTransferred(address previousOwner, address newOwner); // Storage position of the owner of the contract bytes32 private constant proxyOwnerPosition = keccak256("org.zeppelinos.proxy.owner"); /** * @dev the constructor sets the original owner of the contract to the sender account. */ constructor() { setUpgradabilityOwner(msg.sender); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyProxyOwner() { require(msg.sender == proxyOwner()); _; } /** * @dev Tells the address of the owner * @return owner the address of the owner */ function proxyOwner() public view returns (address owner) { bytes32 position = proxyOwnerPosition; assembly { owner := sload(position) } } /** * @dev Sets the address of the owner */ function setUpgradabilityOwner(address newProxyOwner) internal { bytes32 position = proxyOwnerPosition; assembly { sstore(position, newProxyOwner) } } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferProxyOwnership(address newOwner) public onlyProxyOwner { require(newOwner != address(0)); emit ProxyOwnershipTransferred(proxyOwner(), newOwner); setUpgradabilityOwner(newOwner); } /** * @dev Allows the proxy owner to upgrade the current version of the proxy. * @param implementation representing the address of the new implementation to be set. */ function upgradeTo(address implementation) public onlyProxyOwner { _upgradeTo(implementation); } /** * @dev Allows the proxy owner to upgrade the current version of the proxy and call the new implementation * to initialize whatever is needed through a low level call. * @param implementation representing the address of the new implementation to be set. * @param data represents the msg.data to bet sent in the low level call. This parameter may include the function * signature of the implementation to be called with the needed payload */ function upgradeToAndCall(address implementation, bytes memory data) payable public onlyProxyOwner { upgradeTo(implementation); (bool success, ) = address(this).call{value: msg.value}(data); require(success); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"ProxyOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"impl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyOwner","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferProxyOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b610043565b7f337c729c04082e3bdd94ba7d2b5a8a642f3a138702366a91707825373a2029ba55565b6104e1806100526000396000f3fe60806040526004361061004e5760003560e01c8063025313a2146100655780633659cfe6146100965780634f1ef286146100c95780635c60da1b1461017f578063f1739cae146101945761005d565b3661005d5761005b6101c7565b005b61005b6101c7565b34801561007157600080fd5b5061007a61020b565b604080516001600160a01b039092168252519081900360200190f35b3480156100a257600080fd5b5061005b600480360360208110156100b957600080fd5b50356001600160a01b0316610230565b61005b600480360360408110156100df57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561010a57600080fd5b82018360208201111561011c57600080fd5b8035906020019184600183028401116401000000008311171561013e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610261945050505050565b34801561018b57600080fd5b5061007a610346565b3480156101a057600080fd5b5061005b600480360360208110156101b757600080fd5b50356001600160a01b031661036b565b60006101d1610346565b90506001600160a01b0381166101e657600080fd5b60405136600082376000803683855af43d806000843e818015610207578184f35b8184fd5b7f337c729c04082e3bdd94ba7d2b5a8a642f3a138702366a91707825373a2029ba5490565b61023861020b565b6001600160a01b0316336001600160a01b03161461025557600080fd5b61025e816103f7565b50565b61026961020b565b6001600160a01b0316336001600160a01b03161461028657600080fd5b61028f82610230565b6000306001600160a01b031634836040518082805190602001908083835b602083106102cc5780518252601f1990920191602091820191016102ad565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461032e576040519150601f19603f3d011682016040523d82523d6000602084013e610333565b606091505b505090508061034157600080fd5b505050565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b61037361020b565b6001600160a01b0316336001600160a01b03161461039057600080fd5b6001600160a01b0381166103a357600080fd5b7f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd96103cc61020b565b604080516001600160a01b03928316815291841660208301528051918290030190a161025e81610463565b6000610401610346565b9050816001600160a01b0316816001600160a01b0316141561042257600080fd5b61042b82610487565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050565b7f337c729c04082e3bdd94ba7d2b5a8a642f3a138702366a91707825373a2029ba55565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35556fea264697066735822122089b2136ebfabe33e62322a17d2b4ff55d6d38cf41b58762d1b48fa40ad9f7c8b64736f6c63430007000033
Deployed Bytecode
0x60806040526004361061004e5760003560e01c8063025313a2146100655780633659cfe6146100965780634f1ef286146100c95780635c60da1b1461017f578063f1739cae146101945761005d565b3661005d5761005b6101c7565b005b61005b6101c7565b34801561007157600080fd5b5061007a61020b565b604080516001600160a01b039092168252519081900360200190f35b3480156100a257600080fd5b5061005b600480360360208110156100b957600080fd5b50356001600160a01b0316610230565b61005b600480360360408110156100df57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561010a57600080fd5b82018360208201111561011c57600080fd5b8035906020019184600183028401116401000000008311171561013e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610261945050505050565b34801561018b57600080fd5b5061007a610346565b3480156101a057600080fd5b5061005b600480360360208110156101b757600080fd5b50356001600160a01b031661036b565b60006101d1610346565b90506001600160a01b0381166101e657600080fd5b60405136600082376000803683855af43d806000843e818015610207578184f35b8184fd5b7f337c729c04082e3bdd94ba7d2b5a8a642f3a138702366a91707825373a2029ba5490565b61023861020b565b6001600160a01b0316336001600160a01b03161461025557600080fd5b61025e816103f7565b50565b61026961020b565b6001600160a01b0316336001600160a01b03161461028657600080fd5b61028f82610230565b6000306001600160a01b031634836040518082805190602001908083835b602083106102cc5780518252601f1990920191602091820191016102ad565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461032e576040519150601f19603f3d011682016040523d82523d6000602084013e610333565b606091505b505090508061034157600080fd5b505050565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b61037361020b565b6001600160a01b0316336001600160a01b03161461039057600080fd5b6001600160a01b0381166103a357600080fd5b7f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd96103cc61020b565b604080516001600160a01b03928316815291841660208301528051918290030190a161025e81610463565b6000610401610346565b9050816001600160a01b0316816001600160a01b0316141561042257600080fd5b61042b82610487565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050565b7f337c729c04082e3bdd94ba7d2b5a8a642f3a138702366a91707825373a2029ba55565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35556fea264697066735822122089b2136ebfabe33e62322a17d2b4ff55d6d38cf41b58762d1b48fa40ad9f7c8b64736f6c63430007000033
Deployed Bytecode Sourcemap
3271:2704:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;826:11;:9;:11::i;:::-;3271:2704;;884:11;:9;:11::i;4193:163::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;4193:163:0;;;;;;;;;;;;;;5163:104;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5163:104:0;-1:-1:-1;;;;;5163:104:0;;:::i;5744:228::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5744:228:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5744:228:0;;-1:-1:-1;5744:228:0;;-1:-1:-1;;;;;5744:228:0:i;2172:178::-;;;;;;;;;;;;;:::i;4759:215::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4759:215:0;-1:-1:-1;;;;;4759:215:0;;:::i;907:451::-;943:13;959:16;:14;:16::i;:::-;943:32;-1:-1:-1;;;;;;990:19:0;;982:28;;;;;;1054:4;1048:11;1088:14;1085:1;1080:3;1067:36;1176:1;1173;1157:14;1152:3;1145:5;1138;1125:53;1198:16;1245:4;1242:1;1237:3;1222:28;1267:6;1281:28;;;;1339:4;1334:3;1327:17;1281:28;1302:4;1297:3;1290:17;4193:163;3713:39;4329:15;;4311:40::o;5163:104::-;4059:12;:10;:12::i;:::-;-1:-1:-1;;;;;4045:26:0;:10;-1:-1:-1;;;;;4045:26:0;;4037:35;;;;;;5235:26:::1;5246:14;5235:10;:26::i;:::-;5163:104:::0;:::o;5744:228::-;4059:12;:10;:12::i;:::-;-1:-1:-1;;;;;4045:26:0;:10;-1:-1:-1;;;;;4045:26:0;;4037:35;;;;;;5850:25:::1;5860:14;5850:9;:25::i;:::-;5883:12;5909:4;-1:-1:-1::0;;;;;5901:18:0::1;5927:9;5938:4;5901:42;;;;;;;;;;;;;;;;;;;::::0;;;;-1:-1:-1;;5901:42:0;;;;::::1;::::0;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5882:61;;;5958:7;5950:16;;;::::0;::::1;;4079:1;5744:228:::0;;:::o;2172:178::-;1919:48;2323:15;;2306:39::o;4759:215::-;4059:12;:10;:12::i;:::-;-1:-1:-1;;;;;4045:26:0;:10;-1:-1:-1;;;;;4045:26:0;;4037:35;;;;;;-1:-1:-1;;;;;4846:22:0;::::1;4838:31;;;::::0;::::1;;4881:49;4907:12;:10;:12::i;:::-;4881:49;::::0;;-1:-1:-1;;;;;4881:49:0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;4937:31;4959:8;4937:21;:31::i;2855:257::-:0;2918:29;2950:16;:14;:16::i;:::-;2918:48;;3006:17;-1:-1:-1;;;;;2981:42:0;:21;-1:-1:-1;;;;;2981:42:0;;;2973:51;;;;;;3031:36;3049:17;3031;:36::i;:::-;3079:27;;-1:-1:-1;;;;;3079:27:0;;;;;;;;2855:257;;:::o;4417:175::-;3713:39;4549:31;4540:47::o;2513:183::-;1919:48;2649:35;2640:51::o
Swarm Source
ipfs://89b2136ebfabe33e62322a17d2b4ff55d6d38cf41b58762d1b48fa40ad9f7c8b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.