GLMR Price: $0.019161 (-7.24%)

Contract

0xeD0f95f8F6a623D37C5870e9b137E5fb142412cA

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

More Info

Private Name Tags

Multichain Info

1 address found via
Transaction Hash
Block
From
To
Set Portfolio Sc...42135672023-08-14 17:17:18899 days ago1692033438IN
0xeD0f95f8...b142412cA
0 GLMR0.01742375250
Set Portfolio Sc...42135402023-08-14 17:11:54899 days ago1692033114IN
0xeD0f95f8...b142412cA
0 GLMR0.00918003141.47297297
Set Portfolio Sc...42135232023-08-14 17:08:30899 days ago1692032910IN
0xeD0f95f8...b142412cA
0 GLMR0.01354743142.75488079
Set Portfolio Sc...38177932023-06-20 0:27:12955 days ago1687220832IN
0xeD0f95f8...b142412cA
0 GLMR0.00407712125
Set Portfolio Sc...37162262023-06-05 15:21:30969 days ago1685978490IN
0xeD0f95f8...b142412cA
0 GLMR0.00665533126.6549227
Set Portfolio Sc...37161572023-06-05 15:06:17969 days ago1685977577IN
0xeD0f95f8...b142412cA
0 GLMR0.00414403127.05134086
Set Portfolio Sc...36966382023-06-02 20:51:12972 days ago1685739072IN
0xeD0f95f8...b142412cA
0 GLMR0.00503237125
Set Portfolio Sc...36965942023-06-02 20:42:18972 days ago1685738538IN
0xeD0f95f8...b142412cA
0 GLMR0.00503237125
Set Portfolio Sc...36444072023-05-26 10:48:12979 days ago1685098092IN
0xeD0f95f8...b142412cA
0 GLMR0.00407862125
Set Portfolio Sc...36443342023-05-26 10:33:18979 days ago1685097198IN
0xeD0f95f8...b142412cA
0 GLMR0.00407862125
Set Portfolio Sc...36443042023-05-26 10:27:18979 days ago1685096838IN
0xeD0f95f8...b142412cA
0 GLMR0.00347562125
Set Portfolio Sc...36428322023-05-26 5:27:12979 days ago1685078832IN
0xeD0f95f8...b142412cA
0 GLMR0.00420157128.8154874
Set Portfolio Sc...36377262023-05-25 12:06:24980 days ago1685016384IN
0xeD0f95f8...b142412cA
0 GLMR0.00477151171.60622178
Set Portfolio Sc...36356992023-05-25 5:12:30980 days ago1684991550IN
0xeD0f95f8...b142412cA
0 GLMR0.00462417141.71979987
Set Portfolio Sc...36356692023-05-25 5:06:30980 days ago1684991190IN
0xeD0f95f8...b142412cA
0 GLMR0.00468982143.73184069
Set Portfolio Sc...36356392023-05-25 5:00:24980 days ago1684990824IN
0xeD0f95f8...b142412cA
0 GLMR0.00710487142.90627141
Set Portfolio Sc...36022802023-05-20 11:48:18985 days ago1684583298IN
0xeD0f95f8...b142412cA
0 GLMR0.00503387125
Set Portfolio Sc...35973392023-05-19 19:06:36986 days ago1684523196IN
0xeD0f95f8...b142412cA
0 GLMR0.00611269127.57898883
Set Portfolio Sc...35923352023-05-19 2:03:18986 days ago1684461798IN
0xeD0f95f8...b142412cA
0 GLMR0.00447328137.09531558
Set Portfolio Sc...35907972023-05-18 20:48:24987 days ago1684442904IN
0xeD0f95f8...b142412cA
0 GLMR0.00598621183.46298679
Set Portfolio Sc...35899672023-05-18 17:57:12987 days ago1684432632IN
0xeD0f95f8...b142412cA
0 GLMR0.00437126133.96884602
Set Portfolio Sc...35897502023-05-18 17:12:12987 days ago1684429932IN
0xeD0f95f8...b142412cA
0 GLMR0.00425605130.43772889
Set Portfolio Sc...35845272023-05-17 23:30:12988 days ago1684366212IN
0xeD0f95f8...b142412cA
0 GLMR0.00541309165.89820004
Set Portfolio Sc...35837322023-05-17 20:48:48988 days ago1684356528IN
0xeD0f95f8...b142412cA
0 GLMR0.00501858153.8074851
Set Portfolio Sc...35831532023-05-17 18:51:12988 days ago1684349472IN
0xeD0f95f8...b142412cA
0 GLMR0.00588713180.42657098
View all transactions

View more zero value Internal Transactions in Advanced View mode

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PortfolioScore

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
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;
    }
}

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

Contract Security Audit

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

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61065d8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063715018a6146100675780638787836e146100715780638da5cb5b146100a4578063aeced322146100bf578063be382c21146100d2578063f2fde38b146100e5575b600080fd5b61006f6100f8565b005b61009161007f366004610408565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b6000546040516001600160a01b03909116815260200161009b565b61006f6100cd36600461042a565b61010c565b61006f6100e036600461052a565b61016d565b61006f6100f3366004610408565b6102c9565b610100610342565b61010a600061039c565b565b610114610342565b6001600160a01b03821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b906101619084815260200190565b60405180910390a25050565b610175610342565b80518251146101d55760405162461bcd60e51b815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b60005b82518110156102c4578181815181106101f3576101f36105ea565b602002602001015160016000858481518110610211576102116105ea565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061024f5761024f6105ea565b60200260200101516001600160a01b03167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b838381518110610293576102936105ea565b60200260200101516040516102aa91815260200190565b60405180910390a2806102bc81610600565b9150506101d8565b505050565b6102d1610342565b6001600160a01b0381166103365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101cc565b61033f8161039c565b50565b6000546001600160a01b0316331461010a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461040357600080fd5b919050565b60006020828403121561041a57600080fd5b610423826103ec565b9392505050565b6000806040838503121561043d57600080fd5b610446836103ec565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561049357610493610454565b604052919050565b600067ffffffffffffffff8211156104b5576104b5610454565b5060051b60200190565b600082601f8301126104d057600080fd5b813560206104e56104e08361049b565b61046a565b82815260059290921b8401810191818101908684111561050457600080fd5b8286015b8481101561051f5780358352918301918301610508565b509695505050505050565b6000806040838503121561053d57600080fd5b823567ffffffffffffffff8082111561055557600080fd5b818501915085601f83011261056957600080fd5b813560206105796104e08361049b565b82815260059290921b8401810191818101908984111561059857600080fd5b948201945b838610156105bd576105ae866103ec565b8252948201949082019061059d565b965050860135925050808211156105d357600080fd5b506105e0858286016104bf565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161062057634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122078b3d276a83bf2517f89a4f205d89574024c8992eb2a22da4317193a9b3ffd1464736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063715018a6146100675780638787836e146100715780638da5cb5b146100a4578063aeced322146100bf578063be382c21146100d2578063f2fde38b146100e5575b600080fd5b61006f6100f8565b005b61009161007f366004610408565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b6000546040516001600160a01b03909116815260200161009b565b61006f6100cd36600461042a565b61010c565b61006f6100e036600461052a565b61016d565b61006f6100f3366004610408565b6102c9565b610100610342565b61010a600061039c565b565b610114610342565b6001600160a01b03821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b906101619084815260200190565b60405180910390a25050565b610175610342565b80518251146101d55760405162461bcd60e51b815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b60005b82518110156102c4578181815181106101f3576101f36105ea565b602002602001015160016000858481518110610211576102116105ea565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061024f5761024f6105ea565b60200260200101516001600160a01b03167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b838381518110610293576102936105ea565b60200260200101516040516102aa91815260200190565b60405180910390a2806102bc81610600565b9150506101d8565b505050565b6102d1610342565b6001600160a01b0381166103365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101cc565b61033f8161039c565b50565b6000546001600160a01b0316331461010a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461040357600080fd5b919050565b60006020828403121561041a57600080fd5b610423826103ec565b9392505050565b6000806040838503121561043d57600080fd5b610446836103ec565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561049357610493610454565b604052919050565b600067ffffffffffffffff8211156104b5576104b5610454565b5060051b60200190565b600082601f8301126104d057600080fd5b813560206104e56104e08361049b565b61046a565b82815260059290921b8401810191818101908684111561050457600080fd5b8286015b8481101561051f5780358352918301918301610508565b509695505050505050565b6000806040838503121561053d57600080fd5b823567ffffffffffffffff8082111561055557600080fd5b818501915085601f83011261056957600080fd5b813560206105796104e08361049b565b82815260059290921b8401810191818101908984111561059857600080fd5b948201945b838610156105bd576105ae866103ec565b8252948201949082019061059d565b965050860135925050808211156105d357600080fd5b506105e0858286016104bf565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161062057634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122078b3d276a83bf2517f89a4f205d89574024c8992eb2a22da4317193a9b3ffd1464736f6c634300080f0033

Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.