Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 741 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Portfolio Sc... | 17791030 | 536 days ago | IN | 0 ETH | 0.00057183 | ||||
Set Portfolio Sc... | 17791002 | 536 days ago | IN | 0 ETH | 0.0006132 | ||||
Set Portfolio Sc... | 17791000 | 536 days ago | IN | 0 ETH | 0.00062722 | ||||
Set Portfolio Sc... | 17790987 | 536 days ago | IN | 0 ETH | 0.00060127 | ||||
Set Portfolio Sc... | 17790971 | 536 days ago | IN | 0 ETH | 0.00065392 | ||||
Set Portfolio Sc... | 17790957 | 536 days ago | IN | 0 ETH | 0.00058687 | ||||
Set Portfolio Sc... | 17790955 | 536 days ago | IN | 0 ETH | 0.00057773 | ||||
Set Portfolio Sc... | 17790942 | 536 days ago | IN | 0 ETH | 0.00058876 | ||||
Set Portfolio Sc... | 17790926 | 536 days ago | IN | 0 ETH | 0.00066838 | ||||
Set Portfolio Sc... | 17790913 | 536 days ago | IN | 0 ETH | 0.00068583 | ||||
Set Portfolio Sc... | 17790912 | 536 days ago | IN | 0 ETH | 0.00067822 | ||||
Set Portfolio Sc... | 17790898 | 536 days ago | IN | 0 ETH | 0.0005818 | ||||
Set Portfolio Sc... | 17790882 | 536 days ago | IN | 0 ETH | 0.00061572 | ||||
Set Portfolio Sc... | 17790868 | 536 days ago | IN | 0 ETH | 0.00060781 | ||||
Set Portfolio Sc... | 17790866 | 536 days ago | IN | 0 ETH | 0.0006055 | ||||
Set Portfolio Sc... | 17790853 | 536 days ago | IN | 0 ETH | 0.00060238 | ||||
Set Portfolio Sc... | 17790851 | 536 days ago | IN | 0 ETH | 0.00064306 | ||||
Set Portfolio Sc... | 17790838 | 536 days ago | IN | 0 ETH | 0.00068376 | ||||
Set Portfolio Sc... | 17790822 | 536 days ago | IN | 0 ETH | 0.00076162 | ||||
Set Portfolio Sc... | 17790808 | 536 days ago | IN | 0 ETH | 0.00071093 | ||||
Set Portfolio Sc... | 17790806 | 536 days ago | IN | 0 ETH | 0.0007326 | ||||
Set Portfolio Sc... | 17790793 | 536 days ago | IN | 0 ETH | 0.00078472 | ||||
Set Portfolio Sc... | 17790791 | 536 days ago | IN | 0 ETH | 0.00080379 | ||||
Set Portfolio Sc... | 17790778 | 536 days ago | IN | 0 ETH | 0.00058596 | ||||
Set Portfolio Sc... | 17790776 | 536 days ago | IN | 0 ETH | 0.00059197 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PortfolioScore
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.15; import "Ownable.sol"; contract PortfolioScore is Ownable { event ScoreDataUpdated(address indexed vault, uint256 score); mapping (address => uint256) public portfolioScore; function setPortfolioScore(address vault, uint256 score) public onlyOwner { portfolioScore[vault] = score; emit ScoreDataUpdated(vault, score); } function setPortfolioScoreBatch(address[] memory vaults, uint256[] memory scores) public onlyOwner { require(vaults.length == scores.length, "vaults and scores length mismatch"); for (uint i = 0; i < vaults.length; i++) { portfolioScore[vaults[i]] = scores[i]; emit ScoreDataUpdated(vaults[i], scores[i]); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 999999 }, "libraries": { "PortfolioScore.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"uint256","name":"score","type":"uint256"}],"name":"ScoreDataUpdated","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"portfolioScore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"score","type":"uint256"}],"name":"setPortfolioScore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"vaults","type":"address[]"},{"internalType":"uint256[]","name":"scores","type":"uint256[]"}],"name":"setPortfolioScoreBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108038061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063aeced32211610050578063aeced322146100dc578063be382c21146100ef578063f2fde38b1461010257600080fd5b8063715018a6146100775780638787836e146100815780638da5cb5b146100b4575b600080fd5b61007f610115565b005b6100a161008f366004610526565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ab565b61007f6100ea366004610548565b610129565b61007f6100fd36600461067f565b610197565b61007f610110366004610526565b610350565b61011d610407565b6101276000610488565b565b610131610407565b73ffffffffffffffffffffffffffffffffffffffff821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b9061018b9084815260200190565b60405180910390a25050565b61019f610407565b8051825114610235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d61746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60005b825181101561034b578181815181106102535761025361073f565b6020026020010151600160008584815181106102715761027161073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508281815181106102c9576102c961073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b83838151811061031a5761031a61073f565b602002602001015160405161033191815260200190565b60405180910390a2806103438161076e565b915050610238565b505050565b610358610407565b73ffffffffffffffffffffffffffffffffffffffff81166103fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161022c565b61040481610488565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161022c565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461052157600080fd5b919050565b60006020828403121561053857600080fd5b610541826104fd565b9392505050565b6000806040838503121561055b57600080fd5b610564836104fd565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156105e8576105e8610572565b604052919050565b600067ffffffffffffffff82111561060a5761060a610572565b5060051b60200190565b600082601f83011261062557600080fd5b8135602061063a610635836105f0565b6105a1565b82815260059290921b8401810191818101908684111561065957600080fd5b8286015b84811015610674578035835291830191830161065d565b509695505050505050565b6000806040838503121561069257600080fd5b823567ffffffffffffffff808211156106aa57600080fd5b818501915085601f8301126106be57600080fd5b813560206106ce610635836105f0565b82815260059290921b840181019181810190898411156106ed57600080fd5b948201945b8386101561071257610703866104fd565b825294820194908201906106f2565b9650508601359250508082111561072857600080fd5b5061073585828601610614565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212207b911fec2d1505fe08b18aa9394223d7d595d09fac0efb4daa240267003dfea864736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063aeced32211610050578063aeced322146100dc578063be382c21146100ef578063f2fde38b1461010257600080fd5b8063715018a6146100775780638787836e146100815780638da5cb5b146100b4575b600080fd5b61007f610115565b005b6100a161008f366004610526565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ab565b61007f6100ea366004610548565b610129565b61007f6100fd36600461067f565b610197565b61007f610110366004610526565b610350565b61011d610407565b6101276000610488565b565b610131610407565b73ffffffffffffffffffffffffffffffffffffffff821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b9061018b9084815260200190565b60405180910390a25050565b61019f610407565b8051825114610235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d61746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60005b825181101561034b578181815181106102535761025361073f565b6020026020010151600160008584815181106102715761027161073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508281815181106102c9576102c961073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b83838151811061031a5761031a61073f565b602002602001015160405161033191815260200190565b60405180910390a2806103438161076e565b915050610238565b505050565b610358610407565b73ffffffffffffffffffffffffffffffffffffffff81166103fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161022c565b61040481610488565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161022c565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461052157600080fd5b919050565b60006020828403121561053857600080fd5b610541826104fd565b9392505050565b6000806040838503121561055b57600080fd5b610564836104fd565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156105e8576105e8610572565b604052919050565b600067ffffffffffffffff82111561060a5761060a610572565b5060051b60200190565b600082601f83011261062557600080fd5b8135602061063a610635836105f0565b6105a1565b82815260059290921b8401810191818101908684111561065957600080fd5b8286015b84811015610674578035835291830191830161065d565b509695505050505050565b6000806040838503121561069257600080fd5b823567ffffffffffffffff808211156106aa57600080fd5b818501915085601f8301126106be57600080fd5b813560206106ce610635836105f0565b82815260059290921b840181019181810190898411156106ed57600080fd5b948201945b8386101561071257610703866104fd565b825294820194908201906106f2565b9650508601359250508082111561072857600080fd5b5061073585828601610614565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212207b911fec2d1505fe08b18aa9394223d7d595d09fac0efb4daa240267003dfea864736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.