Overview
ETH Balance
ETH Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 71246370 | 972 days ago | IN | 0 ETH | 0.0000278 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 72086613 | 970 days ago | 0 ETH | ||||
| 72086374 | 970 days ago | 0 ETH | ||||
| 72086200 | 970 days ago | 0 ETH | ||||
| 72086136 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086088 | 970 days ago | 0 ETH | ||||
| 72086019 | 970 days ago | 0 ETH | ||||
| 72086004 | 970 days ago | 0 ETH | ||||
| 72085987 | 970 days ago | 0 ETH | ||||
| 72085905 | 970 days ago | 0 ETH | ||||
| 72085905 | 970 days ago | 0 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
import {ILendingRateOracle} from "../../interfaces/ILendingRateOracle.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract LendingRateOracle is ILendingRateOracle, Ownable {
mapping(address => uint256) borrowRates;
mapping(address => uint256) liquidityRates;
function getMarketBorrowRate(address _asset) external view override returns (uint256) {
return borrowRates[_asset];
}
function setMarketBorrowRate(address _asset, uint256 _rate) external override onlyOwner {
borrowRates[_asset] = _rate;
}
function getMarketLiquidityRate(address _asset) external view returns (uint256) {
return liquidityRates[_asset];
}
function setMarketLiquidityRate(address _asset, uint256 _rate) external onlyOwner {
liquidityRates[_asset] = _rate;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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;
}
}// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.12;
/**
* @title ILendingRateOracle interface
* @notice Interface for the Aave borrow rate oracle. Provides the average market borrow rate to be used as a base for the stable borrow rate calculations
**/
interface ILendingRateOracle {
/**
@dev returns the market borrow rate in ray
**/
function getMarketBorrowRate(address asset) external view returns (uint256);
/**
@dev sets the market borrow rate. Rate value must be in ray
**/
function setMarketBorrowRate(address asset, uint256 rate) external;
}{
"optimizer": {
"enabled": true,
"runs": 1000,
"details": {
"yul": true
}
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"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":"_asset","type":"address"}],"name":"getMarketBorrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getMarketLiquidityRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setMarketBorrowRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setMarketLiquidityRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6103968061007e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100bf578063bb85c0bb146100d2578063f2fde38b14610109578063fbe5ba1e1461011c57600080fd5b8063715018a61461008257806372eb293d1461008c5780638da5cb5b1461009f575b600080fd5b61008a610145565b005b61008a61009a366004610314565b610159565b6000546040516001600160a01b0390911681526020015b60405180910390f35b61008a6100cd366004610314565b61017d565b6100fb6100e036600461033e565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b6565b61008a61011736600461033e565b6101a1565b6100fb61012a36600461033e565b6001600160a01b031660009081526002602052604090205490565b61014d610236565b6101576000610290565b565b610161610236565b6001600160a01b03909116600090815260016020526040902055565b610185610236565b6001600160a01b03909116600090815260026020526040902055565b6101a9610236565b6001600160a01b03811661022a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61023381610290565b50565b6000546001600160a01b031633146101575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610221565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461030f57600080fd5b919050565b6000806040838503121561032757600080fd5b610330836102f8565b946020939093013593505050565b60006020828403121561035057600080fd5b610359826102f8565b939250505056fea264697066735822122061054e54d96067c6feb26a3be8009ff3331a8f61c7f0744b04eebc50885cc28264736f6c634300080c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100bf578063bb85c0bb146100d2578063f2fde38b14610109578063fbe5ba1e1461011c57600080fd5b8063715018a61461008257806372eb293d1461008c5780638da5cb5b1461009f575b600080fd5b61008a610145565b005b61008a61009a366004610314565b610159565b6000546040516001600160a01b0390911681526020015b60405180910390f35b61008a6100cd366004610314565b61017d565b6100fb6100e036600461033e565b6001600160a01b031660009081526001602052604090205490565b6040519081526020016100b6565b61008a61011736600461033e565b6101a1565b6100fb61012a36600461033e565b6001600160a01b031660009081526002602052604090205490565b61014d610236565b6101576000610290565b565b610161610236565b6001600160a01b03909116600090815260016020526040902055565b610185610236565b6001600160a01b03909116600090815260026020526040902055565b6101a9610236565b6001600160a01b03811661022a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61023381610290565b50565b6000546001600160a01b031633146101575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610221565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461030f57600080fd5b919050565b6000806040838503121561032757600080fd5b610330836102f8565b946020939093013593505050565b60006020828403121561035057600080fd5b610359826102f8565b939250505056fea264697066735822122061054e54d96067c6feb26a3be8009ff3331a8f61c7f0744b04eebc50885cc28264736f6c634300080c0033
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.