Source Code
Overview
GLMR Balance
GLMR Value
$0.00Latest 25 from a total of 35 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set Portfolio Sc... | 4213567 | 899 days ago | IN | 0 GLMR | 0.01742375 | ||||
| Set Portfolio Sc... | 4213540 | 899 days ago | IN | 0 GLMR | 0.00918003 | ||||
| Set Portfolio Sc... | 4213523 | 899 days ago | IN | 0 GLMR | 0.01354743 | ||||
| Set Portfolio Sc... | 3817793 | 955 days ago | IN | 0 GLMR | 0.00407712 | ||||
| Set Portfolio Sc... | 3716226 | 969 days ago | IN | 0 GLMR | 0.00665533 | ||||
| Set Portfolio Sc... | 3716157 | 969 days ago | IN | 0 GLMR | 0.00414403 | ||||
| Set Portfolio Sc... | 3696638 | 972 days ago | IN | 0 GLMR | 0.00503237 | ||||
| Set Portfolio Sc... | 3696594 | 972 days ago | IN | 0 GLMR | 0.00503237 | ||||
| Set Portfolio Sc... | 3644407 | 979 days ago | IN | 0 GLMR | 0.00407862 | ||||
| Set Portfolio Sc... | 3644334 | 979 days ago | IN | 0 GLMR | 0.00407862 | ||||
| Set Portfolio Sc... | 3644304 | 979 days ago | IN | 0 GLMR | 0.00347562 | ||||
| Set Portfolio Sc... | 3642832 | 979 days ago | IN | 0 GLMR | 0.00420157 | ||||
| Set Portfolio Sc... | 3637726 | 980 days ago | IN | 0 GLMR | 0.00477151 | ||||
| Set Portfolio Sc... | 3635699 | 980 days ago | IN | 0 GLMR | 0.00462417 | ||||
| Set Portfolio Sc... | 3635669 | 980 days ago | IN | 0 GLMR | 0.00468982 | ||||
| Set Portfolio Sc... | 3635639 | 980 days ago | IN | 0 GLMR | 0.00710487 | ||||
| Set Portfolio Sc... | 3602280 | 985 days ago | IN | 0 GLMR | 0.00503387 | ||||
| Set Portfolio Sc... | 3597339 | 986 days ago | IN | 0 GLMR | 0.00611269 | ||||
| Set Portfolio Sc... | 3592335 | 986 days ago | IN | 0 GLMR | 0.00447328 | ||||
| Set Portfolio Sc... | 3590797 | 987 days ago | IN | 0 GLMR | 0.00598621 | ||||
| Set Portfolio Sc... | 3589967 | 987 days ago | IN | 0 GLMR | 0.00437126 | ||||
| Set Portfolio Sc... | 3589750 | 987 days ago | IN | 0 GLMR | 0.00425605 | ||||
| Set Portfolio Sc... | 3584527 | 988 days ago | IN | 0 GLMR | 0.00541309 | ||||
| Set Portfolio Sc... | 3583732 | 988 days ago | IN | 0 GLMR | 0.00501858 | ||||
| Set Portfolio Sc... | 3583153 | 988 days ago | IN | 0 GLMR | 0.00588713 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
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": 200
},
"libraries": {
"PortfolioScore.sol": {}
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}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"},{"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
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61065d8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063715018a6146100675780638787836e146100715780638da5cb5b146100a4578063aeced322146100bf578063be382c21146100d2578063f2fde38b146100e5575b600080fd5b61006f6100f8565b005b61009161007f366004610408565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b6000546040516001600160a01b03909116815260200161009b565b61006f6100cd36600461042a565b61010c565b61006f6100e036600461052a565b61016d565b61006f6100f3366004610408565b6102c9565b610100610342565b61010a600061039c565b565b610114610342565b6001600160a01b03821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b906101619084815260200190565b60405180910390a25050565b610175610342565b80518251146101d55760405162461bcd60e51b815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b60005b82518110156102c4578181815181106101f3576101f36105ea565b602002602001015160016000858481518110610211576102116105ea565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061024f5761024f6105ea565b60200260200101516001600160a01b03167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b838381518110610293576102936105ea565b60200260200101516040516102aa91815260200190565b60405180910390a2806102bc81610600565b9150506101d8565b505050565b6102d1610342565b6001600160a01b0381166103365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101cc565b61033f8161039c565b50565b6000546001600160a01b0316331461010a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461040357600080fd5b919050565b60006020828403121561041a57600080fd5b610423826103ec565b9392505050565b6000806040838503121561043d57600080fd5b610446836103ec565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561049357610493610454565b604052919050565b600067ffffffffffffffff8211156104b5576104b5610454565b5060051b60200190565b600082601f8301126104d057600080fd5b813560206104e56104e08361049b565b61046a565b82815260059290921b8401810191818101908684111561050457600080fd5b8286015b8481101561051f5780358352918301918301610508565b509695505050505050565b6000806040838503121561053d57600080fd5b823567ffffffffffffffff8082111561055557600080fd5b818501915085601f83011261056957600080fd5b813560206105796104e08361049b565b82815260059290921b8401810191818101908984111561059857600080fd5b948201945b838610156105bd576105ae866103ec565b8252948201949082019061059d565b965050860135925050808211156105d357600080fd5b506105e0858286016104bf565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161062057634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122078b3d276a83bf2517f89a4f205d89574024c8992eb2a22da4317193a9b3ffd1464736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063715018a6146100675780638787836e146100715780638da5cb5b146100a4578063aeced322146100bf578063be382c21146100d2578063f2fde38b146100e5575b600080fd5b61006f6100f8565b005b61009161007f366004610408565b60016020526000908152604090205481565b6040519081526020015b60405180910390f35b6000546040516001600160a01b03909116815260200161009b565b61006f6100cd36600461042a565b61010c565b61006f6100e036600461052a565b61016d565b61006f6100f3366004610408565b6102c9565b610100610342565b61010a600061039c565b565b610114610342565b6001600160a01b03821660008181526001602052604090819020839055517f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b906101619084815260200190565b60405180910390a25050565b610175610342565b80518251146101d55760405162461bcd60e51b815260206004820152602160248201527f7661756c747320616e642073636f726573206c656e677468206d69736d6174636044820152600d60fb1b60648201526084015b60405180910390fd5b60005b82518110156102c4578181815181106101f3576101f36105ea565b602002602001015160016000858481518110610211576102116105ea565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061024f5761024f6105ea565b60200260200101516001600160a01b03167f0ffe4fd986cbefca56894054eb08b2ff2418aeff8f0eaa1cd16e619863ee542b838381518110610293576102936105ea565b60200260200101516040516102aa91815260200190565b60405180910390a2806102bc81610600565b9150506101d8565b505050565b6102d1610342565b6001600160a01b0381166103365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101cc565b61033f8161039c565b50565b6000546001600160a01b0316331461010a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101cc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461040357600080fd5b919050565b60006020828403121561041a57600080fd5b610423826103ec565b9392505050565b6000806040838503121561043d57600080fd5b610446836103ec565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561049357610493610454565b604052919050565b600067ffffffffffffffff8211156104b5576104b5610454565b5060051b60200190565b600082601f8301126104d057600080fd5b813560206104e56104e08361049b565b61046a565b82815260059290921b8401810191818101908684111561050457600080fd5b8286015b8481101561051f5780358352918301918301610508565b509695505050505050565b6000806040838503121561053d57600080fd5b823567ffffffffffffffff8082111561055557600080fd5b818501915085601f83011261056957600080fd5b813560206105796104e08361049b565b82815260059290921b8401810191818101908984111561059857600080fd5b948201945b838610156105bd576105ae866103ec565b8252948201949082019061059d565b965050860135925050808211156105d357600080fd5b506105e0858286016104bf565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161062057634e487b7160e01b600052601160045260246000fd5b506001019056fea264697066735822122078b3d276a83bf2517f89a4f205d89574024c8992eb2a22da4317193a9b3ffd1464736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$6.18
Net Worth in GLMR
Token Allocations
AARBUSDC
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $0.999753 | 6.1772 | $6.18 |
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.