Overview
ETH Balance
ETH Value
$0.00Latest 4 from a total of 4 transactions
Latest 24 internal transactions
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 32017784 | 1148 days ago | 0 ETH | ||||
| 32017784 | 1148 days ago | 0 ETH | ||||
| 32017784 | 1148 days ago | 0 ETH | ||||
| 32017784 | 1148 days ago | 0 ETH | ||||
| 25555470 | 1181 days ago | 0 ETH | ||||
| 25555470 | 1181 days ago | 0 ETH | ||||
| 25555470 | 1181 days ago | 0 ETH | ||||
| 25555470 | 1181 days ago | 0 ETH | ||||
| 20436936 | 1216 days ago | 0 ETH | ||||
| 20436936 | 1216 days ago | 0 ETH | ||||
| 20436936 | 1216 days ago | 0 ETH | ||||
| 20436936 | 1216 days ago | 0 ETH | ||||
| 17406867 | 1252 days ago | 0 ETH | ||||
| 17406867 | 1252 days ago | 0 ETH | ||||
| 17406867 | 1252 days ago | 0 ETH | ||||
| 17406867 | 1252 days ago | 0 ETH | ||||
| 13893709 | 1287 days ago | 0 ETH | ||||
| 13893709 | 1287 days ago | 0 ETH | ||||
| 13893709 | 1287 days ago | 0 ETH | ||||
| 13893709 | 1287 days ago | 0 ETH | ||||
| 11194038 | 1320 days ago | 0 ETH | ||||
| 11194038 | 1320 days ago | 0 ETH | ||||
| 11194038 | 1320 days ago | 0 ETH | ||||
| 11194038 | 1320 days ago | 0 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import './interfaces/IEpochStaking.sol';
contract EpochStakingController is Ownable {
IEpochStaking[] public contracts;
function addContract(address _contract) external onlyOwner {
contracts.push(IEpochStaking(_contract));
}
function initAll() external onlyOwner {
for (uint256 i = 0; i < contracts.length; i++) {
contracts[i].init();
}
}
function setWhitelist(address _wl) external onlyOwner {
for (uint256 i = 0; i < contracts.length; i++) {
contracts[i].setWhitelist(_wl);
}
}
function advanceEpochAll() external onlyOwner {
for (uint256 i = 0; i < contracts.length; i++) {
contracts[i].advanceEpoch();
}
}
function pauseAll() external onlyOwner {
for (uint256 i = 0; i < contracts.length; i++) {
contracts[i].pause();
}
}
function unpauseAll() external onlyOwner {
for (uint256 i = 0; i < contracts.length; i++) {
contracts[i].unpause();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
interface IEpochStaking {
function currentEpoch() external view returns (uint32);
function epochCheckpoints(uint32)
external
view
returns (
uint32,
uint32,
uint112
);
function stakedCheckpoints(address, uint32) external view returns (uint112);
function advanceEpoch() external;
function init() external;
function setWhitelist(address) external;
function pause() external;
function unpause() external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"advanceEpochAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"contracts","outputs":[{"internalType":"contract IEpochStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wl","type":"address"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6109d68061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063854cff2f116100765780638da5cb5b1161005b5780638da5cb5b1461013a578063d960151b1461014b578063f2fde38b1461015357600080fd5b8063854cff2f1461011f5780638a2ddd031461013257600080fd5b8063595c6a67116100a7578063595c6a67146100fc5780635f539d6914610104578063715018a61461011757600080fd5b80632323c183146100c3578063474da79a146100cd575b600080fd5b6100cb610166565b005b6100e06100db366004610918565b610274565b6040516001600160a01b03909116815260200160405180910390f35b6100cb61029e565b6100cb610112366004610931565b6103a4565b6100cb61045c565b6100cb61012d366004610931565b6104c2565b6100cb6105d4565b6000546001600160a01b03166100e0565b6100cb6106da565b6100cb610161366004610931565b6107e0565b6000546001600160a01b031633146101c55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60005b60015481101561027157600181815481106101e5576101e5610961565b6000918252602082200154604080517fe1c7392a00000000000000000000000000000000000000000000000000000000815290516001600160a01b039092169263e1c7392a9260048084019382900301818387803b15801561024657600080fd5b505af115801561025a573d6000803e3d6000fd5b50505050808061026990610977565b9150506101c8565b50565b6001818154811061028457600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146102f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b600154811015610271576001818154811061031857610318610961565b6000918252602082200154604080517f8456cb5900000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692638456cb599260048084019382900301818387803b15801561037957600080fd5b505af115801561038d573d6000803e3d6000fd5b50505050808061039c90610977565b9150506102fb565b6000546001600160a01b031633146103fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b6104c060006108bb565b565b6000546001600160a01b0316331461051c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b6001548110156105d0576001818154811061053c5761053c610961565b6000918252602090912001546040517f854cff2f0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301529091169063854cff2f90602401600060405180830381600087803b1580156105a557600080fd5b505af11580156105b9573d6000803e3d6000fd5b5050505080806105c890610977565b91505061051f565b5050565b6000546001600160a01b0316331461062e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b600154811015610271576001818154811061064e5761064e610961565b6000918252602082200154604080517f3f4ba83a00000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692633f4ba83a9260048084019382900301818387803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b5050505080806106d290610977565b915050610631565b6000546001600160a01b031633146107345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b600154811015610271576001818154811061075457610754610961565b6000918252602082200154604080517f3cf80e6c00000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692633cf80e6c9260048084019382900301818387803b1580156107b557600080fd5b505af11580156107c9573d6000803e3d6000fd5b5050505080806107d890610977565b915050610737565b6000546001600160a01b0316331461083a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b6001600160a01b0381166108b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101bc565b610271815b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561092a57600080fd5b5035919050565b60006020828403121561094357600080fd5b81356001600160a01b038116811461095a57600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561099957634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220ab3663769feee2379b9fe4c3264de4ce948be1102d7c0bf97c77e4410fd6330364736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063854cff2f116100765780638da5cb5b1161005b5780638da5cb5b1461013a578063d960151b1461014b578063f2fde38b1461015357600080fd5b8063854cff2f1461011f5780638a2ddd031461013257600080fd5b8063595c6a67116100a7578063595c6a67146100fc5780635f539d6914610104578063715018a61461011757600080fd5b80632323c183146100c3578063474da79a146100cd575b600080fd5b6100cb610166565b005b6100e06100db366004610918565b610274565b6040516001600160a01b03909116815260200160405180910390f35b6100cb61029e565b6100cb610112366004610931565b6103a4565b6100cb61045c565b6100cb61012d366004610931565b6104c2565b6100cb6105d4565b6000546001600160a01b03166100e0565b6100cb6106da565b6100cb610161366004610931565b6107e0565b6000546001600160a01b031633146101c55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60005b60015481101561027157600181815481106101e5576101e5610961565b6000918252602082200154604080517fe1c7392a00000000000000000000000000000000000000000000000000000000815290516001600160a01b039092169263e1c7392a9260048084019382900301818387803b15801561024657600080fd5b505af115801561025a573d6000803e3d6000fd5b50505050808061026990610977565b9150506101c8565b50565b6001818154811061028457600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b031633146102f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b600154811015610271576001818154811061031857610318610961565b6000918252602082200154604080517f8456cb5900000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692638456cb599260048084019382900301818387803b15801561037957600080fd5b505af115801561038d573d6000803e3d6000fd5b50505050808061039c90610977565b9150506102fb565b6000546001600160a01b031633146103fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b6104c060006108bb565b565b6000546001600160a01b0316331461051c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b6001548110156105d0576001818154811061053c5761053c610961565b6000918252602090912001546040517f854cff2f0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301529091169063854cff2f90602401600060405180830381600087803b1580156105a557600080fd5b505af11580156105b9573d6000803e3d6000fd5b5050505080806105c890610977565b91505061051f565b5050565b6000546001600160a01b0316331461062e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b600154811015610271576001818154811061064e5761064e610961565b6000918252602082200154604080517f3f4ba83a00000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692633f4ba83a9260048084019382900301818387803b1580156106af57600080fd5b505af11580156106c3573d6000803e3d6000fd5b5050505080806106d290610977565b915050610631565b6000546001600160a01b031633146107345760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b60005b600154811015610271576001818154811061075457610754610961565b6000918252602082200154604080517f3cf80e6c00000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692633cf80e6c9260048084019382900301818387803b1580156107b557600080fd5b505af11580156107c9573d6000803e3d6000fd5b5050505080806107d890610977565b915050610737565b6000546001600160a01b0316331461083a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101bc565b6001600160a01b0381166108b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101bc565b610271815b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561092a57600080fd5b5035919050565b60006020828403121561094357600080fd5b81356001600160a01b038116811461095a57600080fd5b9392505050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561099957634e487b7160e01b600052601160045260246000fd5b506001019056fea2646970667358221220ab3663769feee2379b9fe4c3264de4ce948be1102d7c0bf97c77e4410fd6330364736f6c63430008090033
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.