ETH Price: $3,230.18 (+3.75%)

Contract

0xFBdEA95D8A334ca9483E27271C8776b3E8578ee1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Portfolio Sc...177910302023-07-28 10:42:11536 days ago1690540931IN
0xFBdEA95D...3E8578ee1
0 ETH0.0005718317.58450263
Set Portfolio Sc...177910022023-07-28 10:36:35536 days ago1690540595IN
0xFBdEA95D...3E8578ee1
0 ETH0.000613218.85686036
Set Portfolio Sc...177910002023-07-28 10:36:11536 days ago1690540571IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006272219.28780793
Set Portfolio Sc...177909872023-07-28 10:33:35536 days ago1690540415IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006012718.48986175
Set Portfolio Sc...177909712023-07-28 10:30:23536 days ago1690540223IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006539220.10908594
Set Portfolio Sc...177909572023-07-28 10:27:35536 days ago1690540055IN
0xFBdEA95D...3E8578ee1
0 ETH0.0005868718.04703816
Set Portfolio Sc...177909552023-07-28 10:27:11536 days ago1690540031IN
0xFBdEA95D...3E8578ee1
0 ETH0.0005777317.76619551
Set Portfolio Sc...177909422023-07-28 10:24:35536 days ago1690539875IN
0xFBdEA95D...3E8578ee1
0 ETH0.0005887618.10520374
Set Portfolio Sc...177909262023-07-28 10:21:23536 days ago1690539683IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006683820.55360113
Set Portfolio Sc...177909132023-07-28 10:18:35536 days ago1690539515IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006858321.09018666
Set Portfolio Sc...177909122023-07-28 10:18:23536 days ago1690539503IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006782220.8564112
Set Portfolio Sc...177908982023-07-28 10:15:35536 days ago1690539335IN
0xFBdEA95D...3E8578ee1
0 ETH0.000581817.89133113
Set Portfolio Sc...177908822023-07-28 10:12:23536 days ago1690539143IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006157218.93433949
Set Portfolio Sc...177908682023-07-28 10:09:35536 days ago1690538975IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006078118.69104655
Set Portfolio Sc...177908662023-07-28 10:09:11536 days ago1690538951IN
0xFBdEA95D...3E8578ee1
0 ETH0.000605518.62013795
Set Portfolio Sc...177908532023-07-28 10:06:35536 days ago1690538795IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006023818.52419018
Set Portfolio Sc...177908512023-07-28 10:06:11536 days ago1690538771IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006430619.77495427
Set Portfolio Sc...177908382023-07-28 10:03:35536 days ago1690538615IN
0xFBdEA95D...3E8578ee1
0 ETH0.0006837621.02650717
Set Portfolio Sc...177908222023-07-28 10:00:23536 days ago1690538423IN
0xFBdEA95D...3E8578ee1
0 ETH0.0007616223.42080644
Set Portfolio Sc...177908082023-07-28 9:57:35536 days ago1690538255IN
0xFBdEA95D...3E8578ee1
0 ETH0.0007109321.86211403
Set Portfolio Sc...177908062023-07-28 9:57:11536 days ago1690538231IN
0xFBdEA95D...3E8578ee1
0 ETH0.000732622.52847338
Set Portfolio Sc...177907932023-07-28 9:54:35536 days ago1690538075IN
0xFBdEA95D...3E8578ee1
0 ETH0.0007847224.13122446
Set Portfolio Sc...177907912023-07-28 9:54:11536 days ago1690538051IN
0xFBdEA95D...3E8578ee1
0 ETH0.0008037924.7176054
Set Portfolio Sc...177907782023-07-28 9:51:35536 days ago1690537895IN
0xFBdEA95D...3E8578ee1
0 ETH0.0005859618.01922589
Set Portfolio Sc...177907762023-07-28 9:51:11536 days ago1690537871IN
0xFBdEA95D...3E8578ee1
0 ETH0.0005919718.20388854
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PortfolioScore

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, None license
File 1 of 3 : PortfolioScore.sol
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]);
		}
	}

}

File 2 of 3 : Ownable.sol
// 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);
    }
}

File 3 of 3 : Context.sol
// 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;
    }
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "libraries": {
    "PortfolioScore.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"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"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108038061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063aeced32211610050578063aeced322146100dc578063be382c21146100ef578063f2fde38b1461010257600080fd5b8063715018a6146100775780638787836e146100815780638da5cb5b146100b4575b600080fd5b61007f610115565b005b6100a161008f366004610526565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ab565b61007f6100ea366004610548565b610129565b61007f6100fd36600461067f565b610197565b61007f610110366004610526565b610350565b61011d610407565b6101276000610488565b565b610131610407565b73ffffffffffffffffffffffffffffffffffffffff821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b9061018b9084815260200190565b60405180910390a25050565b61019f610407565b8051825114610235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d61746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60005b825181101561034b578181815181106102535761025361073f565b6020026020010151600160008584815181106102715761027161073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508281815181106102c9576102c961073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b83838151811061031a5761031a61073f565b602002602001015160405161033191815260200190565b60405180910390a2806103438161076e565b915050610238565b505050565b610358610407565b73ffffffffffffffffffffffffffffffffffffffff81166103fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161022c565b61040481610488565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161022c565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461052157600080fd5b919050565b60006020828403121561053857600080fd5b610541826104fd565b9392505050565b6000806040838503121561055b57600080fd5b610564836104fd565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156105e8576105e8610572565b604052919050565b600067ffffffffffffffff82111561060a5761060a610572565b5060051b60200190565b600082601f83011261062557600080fd5b8135602061063a610635836105f0565b6105a1565b82815260059290921b8401810191818101908684111561065957600080fd5b8286015b84811015610674578035835291830191830161065d565b509695505050505050565b6000806040838503121561069257600080fd5b823567ffffffffffffffff808211156106aa57600080fd5b818501915085601f8301126106be57600080fd5b813560206106ce610635836105f0565b82815260059290921b840181019181810190898411156106ed57600080fd5b948201945b8386101561071257610703866104fd565b825294820194908201906106f2565b9650508601359250508082111561072857600080fd5b5061073585828601610614565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212207b911fec2d1505fe08b18aa9394223d7d595d09fac0efb4daa240267003dfea864736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063aeced32211610050578063aeced322146100dc578063be382c21146100ef578063f2fde38b1461010257600080fd5b8063715018a6146100775780638787836e146100815780638da5cb5b146100b4575b600080fd5b61007f610115565b005b6100a161008f366004610526565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b60005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ab565b61007f6100ea366004610548565b610129565b61007f6100fd36600461067f565b610197565b61007f610110366004610526565b610350565b61011d610407565b6101276000610488565b565b610131610407565b73ffffffffffffffffffffffffffffffffffffffff821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b9061018b9084815260200190565b60405180910390a25050565b61019f610407565b8051825114610235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d61746360448201527f680000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60005b825181101561034b578181815181106102535761025361073f565b6020026020010151600160008584815181106102715761027161073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508281815181106102c9576102c961073f565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b83838151811061031a5761031a61073f565b602002602001015160405161033191815260200190565b60405180910390a2806103438161076e565b915050610238565b505050565b610358610407565b73ffffffffffffffffffffffffffffffffffffffff81166103fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161022c565b61040481610488565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161022c565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461052157600080fd5b919050565b60006020828403121561053857600080fd5b610541826104fd565b9392505050565b6000806040838503121561055b57600080fd5b610564836104fd565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156105e8576105e8610572565b604052919050565b600067ffffffffffffffff82111561060a5761060a610572565b5060051b60200190565b600082601f83011261062557600080fd5b8135602061063a610635836105f0565b6105a1565b82815260059290921b8401810191818101908684111561065957600080fd5b8286015b84811015610674578035835291830191830161065d565b509695505050505050565b6000806040838503121561069257600080fd5b823567ffffffffffffffff808211156106aa57600080fd5b818501915085601f8301126106be57600080fd5b813560206106ce610635836105f0565b82815260059290921b840181019181810190898411156106ed57600080fd5b948201945b8386101561071257610703866104fd565b825294820194908201906106f2565b9650508601359250508082111561072857600080fd5b5061073585828601610614565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212207b911fec2d1505fe08b18aa9394223d7d595d09fac0efb4daa240267003dfea864736f6c634300080f0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.