Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086089 | 1041 days ago | 0 ETH | ||||
| 72086067 | 1041 days ago | 0 ETH | ||||
| 72086067 | 1041 days ago | 0 ETH | ||||
| 72086067 | 1041 days ago | 0 ETH | ||||
| 72086067 | 1041 days ago | 0 ETH | ||||
| 72086067 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72085994 | 1041 days ago | 0 ETH | ||||
| 72084644 | 1041 days ago | 0 ETH | ||||
| 72084644 | 1041 days ago | 0 ETH | ||||
| 72084644 | 1041 days ago | 0 ETH | ||||
| 72084644 | 1041 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Beacon
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import {Errors} from "../utils/Errors.sol";
import {Ownable} from "../utils/Ownable.sol";
import {IBeacon} from "../interface/proxy/IBeacon.sol";
contract Beacon is IBeacon, Ownable {
address public implementation;
event Upgraded(address indexed implementation);
constructor(address _implementation) {
initOwnable(msg.sender);
_setImplementation(_implementation);
}
function upgradeTo(address newImplementation) external adminOnly {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
function _setImplementation(address newImplementation) private {
implementation = newImplementation;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
interface IBeacon {
function implementation() external returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
library Errors {
error AdminOnly();
error MaxSupply();
error ZeroShares();
error ZeroAssets();
error ZeroAddress();
error MinimumShares();
error ContractPaused();
error OutstandingDebt();
error AccountOwnerOnly();
error TokenNotContract();
error AddressNotContract();
error ContractNotPaused();
error LTokenUnavailable();
error LiquidationFailed();
error EthTransferFailure();
error AccountManagerOnly();
error RiskThresholdBreached();
error FunctionCallRestricted();
error AccountNotLiquidatable();
error CollateralTypeRestricted();
error IncorrectConstructorArgs();
error ContractAlreadyInitialized();
error AccountDeactivationFailure();
error AccountInteractionFailure(address, address, uint, bytes);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import {Errors} from "./Errors.sol";
abstract contract Ownable {
address public admin;
event OwnershipTransferred(
address indexed previousAdmin,
address indexed newAdmin
);
function initOwnable(address _admin) internal {
if (_admin == address(0)) revert Errors.ZeroAddress();
admin = _admin;
}
modifier adminOnly() {
if (admin != msg.sender) revert Errors.AdminOnly();
_;
}
function transferOwnership(address newAdmin) external virtual adminOnly {
if (newAdmin == address(0)) revert Errors.ZeroAddress();
emit OwnershipTransferred(admin, newAdmin);
admin = newAdmin;
}
}{
"remappings": [
"controller/=lib/controller/src/",
"ds-test/=lib/solmate/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"oracle/=lib/oracle/src/",
"solidity-bytes-utils/=lib/controller/lib/solidity-bytes-utils/contracts/",
"solmate/=lib/solmate/src/",
"v3-core/=lib/oracle/lib/v3-core/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AdminOnly","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5060405161032c38038061032c83398101604081905261002f916100a2565b61003833610059565b600180546001600160a01b0319166001600160a01b038316179055506100d2565b6001600160a01b0381166100805760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000602082840312156100b457600080fd5b81516001600160a01b03811681146100cb57600080fd5b9392505050565b61024b806100e16000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80633659cfe6146100515780635c60da1b14610066578063f2fde38b14610095578063f851a440146100a8575b600080fd5b61006461005f3660046101e5565b6100bb565b005b600154610079906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100646100a33660046101e5565b610138565b600054610079906001600160a01b031681565b6000546001600160a01b031633146100e657604051633057182d60e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000546001600160a01b0316331461016357604051633057182d60e21b815260040160405180910390fd5b6001600160a01b03811661018a5760405163d92e233d60e01b815260040160405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000602082840312156101f757600080fd5b81356001600160a01b038116811461020e57600080fd5b939250505056fea26469706673582212207bd7bc93e96c8a7c35c814e04334f16fbfebfffaf9ed9672413509ca1db1604364736f6c63430008110033000000000000000000000000c3991f83f2fb241b05db76e0c1bb24a81e0c5463
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80633659cfe6146100515780635c60da1b14610066578063f2fde38b14610095578063f851a440146100a8575b600080fd5b61006461005f3660046101e5565b6100bb565b005b600154610079906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100646100a33660046101e5565b610138565b600054610079906001600160a01b031681565b6000546001600160a01b031633146100e657604051633057182d60e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383161790556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000546001600160a01b0316331461016357604051633057182d60e21b815260040160405180910390fd5b6001600160a01b03811661018a5760405163d92e233d60e01b815260040160405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000602082840312156101f757600080fd5b81356001600160a01b038116811461020e57600080fd5b939250505056fea26469706673582212207bd7bc93e96c8a7c35c814e04334f16fbfebfffaf9ed9672413509ca1db1604364736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c3991f83f2fb241b05db76e0c1bb24a81e0c5463
-----Decoded View---------------
Arg [0] : _implementation (address): 0xc3991f83f2FB241b05db76e0c1BB24a81E0C5463
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c3991f83f2fb241b05db76e0c1bb24a81e0c5463
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.