BEP-20
Overview
Max Total Supply
10,040,898.747916HY
Holders
2,511
Market
Price
$0.00 @ 0.000000 BNB
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
20 HYValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
HYProxy
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/**
*Submitted for verification at BscScan.com on 2024-04-20
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
contract HYProxy {
event ProxyOwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event NewPendingOwner(address currentOwner, address pendingOwner);
bytes32 private constant proxyOwnerPosition = 0xf005ebe468325afe0f5219e39c3e5c78f6c18e3412a833feb9745970eb217225;
bytes32 private constant pendingProxyOwnerPosition = 0xe67d95b0c1182ffbe33735d24cc48f2bd2200ee2e05231a79238e4efbba73712;
bytes32 private constant implementationPosition = 0x68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e;
event Upgraded(address indexed implementation);
constructor() {
_setUpgradeabilityOwner(msg.sender);
}
modifier onlyProxyOwner() {
require(msg.sender == proxyOwner(), "only Proxy Owner");
_;
}
modifier onlyPendingProxyOwner() {
require(msg.sender == pendingProxyOwner(), "only pending Proxy Owner");
_;
}
function proxyOwner() public view returns (address owner) {
bytes32 position = proxyOwnerPosition;
assembly {
owner := sload(position)
}
}
function pendingProxyOwner() public view returns (address pendingOwner) {
bytes32 position = pendingProxyOwnerPosition;
assembly {
pendingOwner := sload(position)
}
}
function _setUpgradeabilityOwner(address newProxyOwner) internal {
bytes32 position = proxyOwnerPosition;
assembly {
sstore(position, newProxyOwner)
}
}
function _setPendingUpgradeabilityOwner(address newPendingProxyOwner) internal {
bytes32 position = pendingProxyOwnerPosition;
assembly {
sstore(position, newPendingProxyOwner)
}
}
function transferProxyOwnership(address newOwner) external onlyProxyOwner {
require(newOwner != address(0));
_setPendingUpgradeabilityOwner(newOwner);
emit NewPendingOwner(proxyOwner(), newOwner);
}
function claimProxyOwnership() external onlyPendingProxyOwner {
emit ProxyOwnershipTransferred(proxyOwner(), pendingProxyOwner());
_setUpgradeabilityOwner(pendingProxyOwner());
_setPendingUpgradeabilityOwner(address(0));
}
function upgradeTo(address _implementation) public virtual onlyProxyOwner {
address currentImplementation;
bytes32 position = implementationPosition;
assembly {
currentImplementation := sload(position)
}
require(currentImplementation != _implementation);
assembly {
sstore(position, _implementation)
}
emit Upgraded(_implementation);
}
function implementation() public view returns (address impl) {
bytes32 position = implementationPosition;
assembly {
impl := sload(position)
}
}
fallback() external payable {
proxyCall();
}
receive() external payable {
proxyCall();
}
function proxyCall() internal {
bytes32 position = implementationPosition;
assembly {
let ptr := mload(0x40)
calldatacopy(ptr, returndatasize(), calldatasize())
let result := delegatecall(gas(), sload(position), ptr, calldatasize(), returndatasize(), returndatasize())
returndatacopy(ptr, 0, returndatasize())
switch result
case 0 {
revert(ptr, returndatasize())
}
default {
return (ptr, returndatasize())
}
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"currentOwner","type":"address"},{"indexed":false,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"NewPendingOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"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":"claimProxyOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"impl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingProxyOwner","outputs":[{"internalType":"address","name":"pendingOwner","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"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b506100203361002560201b60201c565b610054565b60007ff005ebe468325afe0f5219e39c3e5c78f6c18e3412a833feb9745970eb21722560001b90508181555050565b6107b4806100636000396000f3fe6080604052600436106100595760003560e01c8063025313a2146100725780630add81401461009d5780633659cfe6146100c85780635c60da1b146100f15780639965b3d61461011c578063f1739cae1461013357610068565b366100685761006661015c565b005b61007061015c565b005b34801561007e57600080fd5b506100876101a9565b60405161009491906105f3565b60405180910390f35b3480156100a957600080fd5b506100b26101da565b6040516100bf91906105f3565b60405180910390f35b3480156100d457600080fd5b506100ef60048036038101906100ea919061063f565b61020b565b005b3480156100fd57600080fd5b50610106610330565b60405161011391906105f3565b60405180910390f35b34801561012857600080fd5b50610131610361565b005b34801561013f57600080fd5b5061015a6004803603810190610155919061063f565b61045a565b005b60007f68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e60001b9050604051363d82373d3d368385545af43d6000833e80600081146101a5573d83f35b3d83fd5b6000807ff005ebe468325afe0f5219e39c3e5c78f6c18e3412a833feb9745970eb21722560001b9050805491505090565b6000807fe67d95b0c1182ffbe33735d24cc48f2bd2200ee2e05231a79238e4efbba7371260001b9050805491505090565b6102136101a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610277906106c9565b60405180910390fd5b6000807f68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e60001b9050805491508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036102e557600080fd5b8281558273ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a2505050565b6000807f68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e60001b9050805491505090565b6103696101da565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd90610735565b60405180910390fd5b6103de6101da565b73ffffffffffffffffffffffffffffffffffffffff166103fc6101a9565b73ffffffffffffffffffffffffffffffffffffffff167f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd960405160405180910390a361044e6104496101da565b610554565b6104586000610583565b565b6104626101a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c6906106c9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361050857600080fd5b61051181610583565b7fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b61053a6101a9565b82604051610549929190610755565b60405180910390a150565b60007ff005ebe468325afe0f5219e39c3e5c78f6c18e3412a833feb9745970eb21722560001b90508181555050565b60007fe67d95b0c1182ffbe33735d24cc48f2bd2200ee2e05231a79238e4efbba7371260001b90508181555050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105dd826105b2565b9050919050565b6105ed816105d2565b82525050565b600060208201905061060860008301846105e4565b92915050565b600080fd5b61061c816105d2565b811461062757600080fd5b50565b60008135905061063981610613565b92915050565b6000602082840312156106555761065461060e565b5b60006106638482850161062a565b91505092915050565b600082825260208201905092915050565b7f6f6e6c792050726f7879204f776e657200000000000000000000000000000000600082015250565b60006106b360108361066c565b91506106be8261067d565b602082019050919050565b600060208201905081810360008301526106e2816106a6565b9050919050565b7f6f6e6c792070656e64696e672050726f7879204f776e65720000000000000000600082015250565b600061071f60188361066c565b915061072a826106e9565b602082019050919050565b6000602082019050818103600083015261074e81610712565b9050919050565b600060408201905061076a60008301856105e4565b61077760208301846105e4565b939250505056fea2646970667358221220a28dbb7ecc16984c967a6373fe5b6685c036131983c66f1ac406c9350497220a64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106100595760003560e01c8063025313a2146100725780630add81401461009d5780633659cfe6146100c85780635c60da1b146100f15780639965b3d61461011c578063f1739cae1461013357610068565b366100685761006661015c565b005b61007061015c565b005b34801561007e57600080fd5b506100876101a9565b60405161009491906105f3565b60405180910390f35b3480156100a957600080fd5b506100b26101da565b6040516100bf91906105f3565b60405180910390f35b3480156100d457600080fd5b506100ef60048036038101906100ea919061063f565b61020b565b005b3480156100fd57600080fd5b50610106610330565b60405161011391906105f3565b60405180910390f35b34801561012857600080fd5b50610131610361565b005b34801561013f57600080fd5b5061015a6004803603810190610155919061063f565b61045a565b005b60007f68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e60001b9050604051363d82373d3d368385545af43d6000833e80600081146101a5573d83f35b3d83fd5b6000807ff005ebe468325afe0f5219e39c3e5c78f6c18e3412a833feb9745970eb21722560001b9050805491505090565b6000807fe67d95b0c1182ffbe33735d24cc48f2bd2200ee2e05231a79238e4efbba7371260001b9050805491505090565b6102136101a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610277906106c9565b60405180910390fd5b6000807f68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e60001b9050805491508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036102e557600080fd5b8281558273ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a2505050565b6000807f68608d6f98cee99e6ef572e612d358e8697b1270a79f86c857431457b81f603e60001b9050805491505090565b6103696101da565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd90610735565b60405180910390fd5b6103de6101da565b73ffffffffffffffffffffffffffffffffffffffff166103fc6101a9565b73ffffffffffffffffffffffffffffffffffffffff167f5a3e66efaa1e445ebd894728a69d6959842ea1e97bd79b892797106e270efcd960405160405180910390a361044e6104496101da565b610554565b6104586000610583565b565b6104626101a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c6906106c9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361050857600080fd5b61051181610583565b7fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b61053a6101a9565b82604051610549929190610755565b60405180910390a150565b60007ff005ebe468325afe0f5219e39c3e5c78f6c18e3412a833feb9745970eb21722560001b90508181555050565b60007fe67d95b0c1182ffbe33735d24cc48f2bd2200ee2e05231a79238e4efbba7371260001b90508181555050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105dd826105b2565b9050919050565b6105ed816105d2565b82525050565b600060208201905061060860008301846105e4565b92915050565b600080fd5b61061c816105d2565b811461062757600080fd5b50565b60008135905061063981610613565b92915050565b6000602082840312156106555761065461060e565b5b60006106638482850161062a565b91505092915050565b600082825260208201905092915050565b7f6f6e6c792050726f7879204f776e657200000000000000000000000000000000600082015250565b60006106b360108361066c565b91506106be8261067d565b602082019050919050565b600060208201905081810360008301526106e2816106a6565b9050919050565b7f6f6e6c792070656e64696e672050726f7879204f776e65720000000000000000600082015250565b600061071f60188361066c565b915061072a826106e9565b602082019050919050565b6000602082019050818103600083015261074e81610712565b9050919050565b600060408201905061076a60008301856105e4565b61077760208301846105e4565b939250505056fea2646970667358221220a28dbb7ecc16984c967a6373fe5b6685c036131983c66f1ac406c9350497220a64736f6c63430008110033
Deployed Bytecode Sourcemap
68:3684:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3124:11;:9;:11::i;:::-;68:3684;;3059:11;:9;:11::i;:::-;68:3684;1029:183;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1220:211;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2377:438;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2823:189;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2115:254;;;;;;;;;;;;;:::i;:::-;;1877:230;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3151:598;3192:16;560:66;3211:22;;3192:41;;3287:4;3281:11;3342:14;3324:16;3319:3;3306:51;3461:16;3443;3427:14;3422:3;3411:8;3405:15;3398:5;3385:93;3515:16;3512:1;3507:3;3492:40;3555:6;3580:1;3575:70;;;;3699:16;3694:3;3686:30;3575:70;3613:16;3608:3;3601:29;1029:183;1072:13;1098:16;311:66;1117:18;;1098:37;;1185:8;1179:15;1170:24;;1155:50;1029:183;:::o;1220:211::-;1270:20;1303:16;437:66;1322:25;;1303:44;;1404:8;1398:15;1382:31;;1367:57;1220:211;:::o;2377:438::-;826:12;:10;:12::i;:::-;812:26;;:10;:26;;;804:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;2462:29:::1;2502:16:::0;560:66:::1;2521:22;;2502:41;;2609:8;2603:15;2578:40;;2672:15;2647:40;;:21;:40;;::::0;2639:49:::1;;;::::0;::::1;;2740:15;2730:8;2723:33;2791:15;2782:25;;;;;;;;;;;;2451:364;;2377:438:::0;:::o;2823:189::-;2870:12;2895:16;560:66;2914:22;;2895:41;;2985:8;2979:15;2971:23;;2956:49;2823:189;:::o;2115:254::-;953:19;:17;:19::i;:::-;939:33;;:10;:33;;;931:70;;;;;;;;;;;;:::i;:::-;;;;;;;;;2233:19:::1;:17;:19::i;:::-;2193:60;;2219:12;:10;:12::i;:::-;2193:60;;;;;;;;;;;;2264:44;2288:19;:17;:19::i;:::-;2264:23;:44::i;:::-;2319:42;2358:1;2319:30;:42::i;:::-;2115:254::o:0;1877:230::-;826:12;:10;:12::i;:::-;812:26;;:10;:26;;;804:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;1990:1:::1;1970:22;;:8;:22;;::::0;1962:31:::1;;;::::0;::::1;;2004:40;2035:8;2004:30;:40::i;:::-;2060:39;2076:12;:10;:12::i;:::-;2090:8;2060:39;;;;;;;:::i;:::-;;;;;;;;1877:230:::0;:::o;1439:197::-;1515:16;311:66;1534:18;;1515:37;;1604:13;1594:8;1587:31;1572:57;1439:197;:::o;1644:225::-;1734:16;437:66;1753:25;;1734:44;;1830:20;1820:8;1813:38;1798:64;1644:225;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:96::-;176:7;205:24;223:5;205:24;:::i;:::-;194:35;;139:96;;;:::o;241:118::-;328:24;346:5;328:24;:::i;:::-;323:3;316:37;241:118;;:::o;365:222::-;458:4;496:2;485:9;481:18;473:26;;509:71;577:1;566:9;562:17;553:6;509:71;:::i;:::-;365:222;;;;:::o;674:117::-;783:1;780;773:12;920:122;993:24;1011:5;993:24;:::i;:::-;986:5;983:35;973:63;;1032:1;1029;1022:12;973:63;920:122;:::o;1048:139::-;1094:5;1132:6;1119:20;1110:29;;1148:33;1175:5;1148:33;:::i;:::-;1048:139;;;;:::o;1193:329::-;1252:6;1301:2;1289:9;1280:7;1276:23;1272:32;1269:119;;;1307:79;;:::i;:::-;1269:119;1427:1;1452:53;1497:7;1488:6;1477:9;1473:22;1452:53;:::i;:::-;1442:63;;1398:117;1193:329;;;;:::o;1528:169::-;1612:11;1646:6;1641:3;1634:19;1686:4;1681:3;1677:14;1662:29;;1528:169;;;;:::o;1703:166::-;1843:18;1839:1;1831:6;1827:14;1820:42;1703:166;:::o;1875:366::-;2017:3;2038:67;2102:2;2097:3;2038:67;:::i;:::-;2031:74;;2114:93;2203:3;2114:93;:::i;:::-;2232:2;2227:3;2223:12;2216:19;;1875:366;;;:::o;2247:419::-;2413:4;2451:2;2440:9;2436:18;2428:26;;2500:9;2494:4;2490:20;2486:1;2475:9;2471:17;2464:47;2528:131;2654:4;2528:131;:::i;:::-;2520:139;;2247:419;;;:::o;2672:174::-;2812:26;2808:1;2800:6;2796:14;2789:50;2672:174;:::o;2852:366::-;2994:3;3015:67;3079:2;3074:3;3015:67;:::i;:::-;3008:74;;3091:93;3180:3;3091:93;:::i;:::-;3209:2;3204:3;3200:12;3193:19;;2852:366;;;:::o;3224:419::-;3390:4;3428:2;3417:9;3413:18;3405:26;;3477:9;3471:4;3467:20;3463:1;3452:9;3448:17;3441:47;3505:131;3631:4;3505:131;:::i;:::-;3497:139;;3224:419;;;:::o;3649:332::-;3770:4;3808:2;3797:9;3793:18;3785:26;;3821:71;3889:1;3878:9;3874:17;3865:6;3821:71;:::i;:::-;3902:72;3970:2;3959:9;3955:18;3946:6;3902:72;:::i;:::-;3649:332;;;;;:::o
Swarm Source
ipfs://a28dbb7ecc16984c967a6373fe5b6685c036131983c66f1ac406c9350497220a
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.
Add Token to MetaMask (Web3)