Contract 0x795ada2e75be36b40ad43e35bdd8253890fd3f79

 

Contract Overview

Radiant: Lending Rate Oracle
Balance:
0 ETH

ETH Value:
$0.00
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4c8790c822a4e03be3cfe7a71272b1c5c4b819cddc14b9c58656cae39edd1138Transfer Ownersh...188295832022-07-29 1:45:53627 days 21 hrs agoRadiant: Deployer IN  Radiant: Lending Rate Oracle0 ETH0.000105952915 ETH0.228248908
0xca0f4780504aa1ad2d3bb9ffa42534f87df97abaf601f96851bfdf411c1b9ebeTransfer Ownersh...184655142022-07-24 18:54:30632 days 4 hrs agoRadiant: Deployer IN  Radiant: Lending Rate Oracle0 ETH0.000052605998 ETH0.114463135
0x4647926958e28cb623b7a38f72a887d0206dd6e20084618f40cf42da20912bb60x60806040184654952022-07-24 18:54:30632 days 4 hrs agoRadiant: Deployer IN  Create: LendingRateOracle0 ETH0.000328844462 ETH0.114463135
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x2107bc0f6351708d7f4fdfe525fa97cd3630b305926564c61d40b9d66492d50e720866592023-03-21 10:18:46392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x4c8ad89d0deccc5484de5c12aa030c546b62987894b023f174541d3d2b319f85720863602023-03-21 10:17:36392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0xdb905a1467bbb4218e50d0f5ce5daa4b57e9ecbe40f91f4630ce37315a16f170720862422023-03-21 10:17:06392 days 13 hrs ago 0x943eeb85a79ec2c0de4cc9c34d2649d7decc6eb2 Radiant: Lending Rate Oracle0 ETH
0x78020334b69052e4d3ae492b055d2c55bd643cc04632a9ba59f59904bdf16618720860962023-03-21 10:16:28392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0x011ab4aa5fb5960092fa416e16f15af3b8c5efad135acd78b42e038f5d7e47ea720860242023-03-21 10:16:10392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x02e8339eae0e4098693bd3ab30b75fa4c03163f8acf5d8fdbae491d896d1cb34720859282023-03-21 10:15:45392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0xae05aacd653bfcd991d041f7cd9f5fe9f1563473b66cbe44e5941c1dcf45482e720859092023-03-21 10:15:41392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x71d515809c9324d603022818cf5a9141c657a658965888367d812cea6cdf8090720858902023-03-21 10:15:36392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x3163f99f0aefc6deaca7abdc2924a4b17912e91ef4593327cdf9bc5e181a964c720858172023-03-21 10:15:18392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x05e052b79150bc24bbeaac5d69d2670fed8bbe2eb4bc0c97c7a10b5a043e7811720857962023-03-21 10:15:12392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0xf93997b18c6fbc8f144c127b023dc98f83c1e484bc7345a8573895e4e14a2264720857032023-03-21 10:14:49392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0xc063679685d523d2bf9b09d208ee42ef133399b9c6b38a09d436dc45669ad835720856962023-03-21 10:14:47392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x5e44c6add904061edac5acde29517bf6ca8d0f4b6f514536123c64c2c78bb4af720856882023-03-21 10:14:45392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0xdc48a884a1d4073c3e17d03dcaa1d62543685bc7e4ab2c747c0cd87c0bfd1fed720856362023-03-21 10:14:32392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0x4c7a2d0eaddbd207cd7cc442bb8d88a38aaddf00a2c05319b2cf96667abff31d720855802023-03-21 10:14:18392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0xfb0587cd434bc2152d718a33f232db4ed14aa5d4fd896272a01ab412376d59ca720855232023-03-21 10:14:03392 days 13 hrs ago 0x943eeb85a79ec2c0de4cc9c34d2649d7decc6eb2 Radiant: Lending Rate Oracle0 ETH
0xfb0587cd434bc2152d718a33f232db4ed14aa5d4fd896272a01ab412376d59ca720855232023-03-21 10:14:03392 days 13 hrs ago 0x943eeb85a79ec2c0de4cc9c34d2649d7decc6eb2 Radiant: Lending Rate Oracle0 ETH
0xb0612febda8eee39aaec0a568331418ba332c8004c572c47272a640df625bb34720854592023-03-21 10:13:47392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0xf2e1b44da3c14a52e733e35a623aceebbf8e87a596c47e008ceecf65aa417e52720853522023-03-21 10:13:20392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0x54231e40b93c9fcdeb00ebcb40196d7e90677a718a5baf9426d80d774aaadc87720852422023-03-21 10:12:53392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0xb05be4b5f42a8777bde6cdac90329795d1ff72fcdcfdea55d2c76e60d614ef03720846292023-03-21 10:10:22392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0xa3f7997d29958f1e912abd773673e4166c1eee5fc0015b99434834a27d3420dc720845782023-03-21 10:10:09392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0xec83ee5c9646a4a946cec33f9b4a4d00302032f3d7d7f462ead9dd584d2742b6720845612023-03-21 10:10:05392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
0xf948e2a9d2b16be1374bd5c2461669b7d24e97ad5e146b051d6f94ab1f9e7905720845512023-03-21 10:10:02392 days 13 hrs ago 0x00ff3b408cdbb79c32683aa7b6e4ecb7a33a9577 Radiant: Lending Rate Oracle0 ETH
0x7191f91b13d62a3a14b52387d75dd1f9070f9ef0546e57059fe52885d547c5d7720845212023-03-21 10:09:55392 days 13 hrs ago 0x17aff1cb8574e20f212299cd8a6583d6b61ba668 Radiant: Lending Rate Oracle0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LendingRateOracle

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : LendingRateOracle.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

import {ILendingRateOracle} from '../../interfaces/ILendingRateOracle.sol';
import {Ownable} from '../../dependencies/openzeppelin/contracts/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;
  }
}

File 2 of 4 : ILendingRateOracle.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.6;

/**
 * @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;
}

File 3 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.7.6;

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.
 */
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() {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    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 {
    emit OwnershipTransferred(_owner, address(0));
    _owner = 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');
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

File 4 of 4 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;

/*
 * @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 GSN 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 payable) {
    return msg.sender;
  }

  function _msgData() internal view virtual returns (bytes memory) {
    this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
    return msg.data;
  }
}

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

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

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6104d38061007d6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100dc578063bb85c0bb14610108578063f2fde38b14610140578063fbe5ba1e146101665761007d565b8063715018a61461008257806372eb293d1461008c5780638da5cb5b146100b8575b600080fd5b61008a61018c565b005b61008a600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561022e565b6100c06102a2565b604080516001600160a01b039092168252519081900360200190f35b61008a600480360360408110156100f257600080fd5b506001600160a01b0381351690602001356102b1565b61012e6004803603602081101561011e57600080fd5b50356001600160a01b0316610325565b60408051918252519081900360200190f35b61008a6004803603602081101561015657600080fd5b50356001600160a01b0316610340565b61012e6004803603602081101561017c57600080fd5b50356001600160a01b0316610438565b610194610453565b6000546001600160a01b039081169116146101e4576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610236610453565b6000546001600160a01b03908116911614610286576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6102b9610453565b6000546001600160a01b03908116911614610309576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b610348610453565b6000546001600160a01b03908116911614610398576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b0381166103dd5760405162461bcd60e51b81526004018080602001828103825260268152602001806104586026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526002602052604090205490565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ecc0c014ac922b7508aa27bfce788f1194bf2ed13b2470c4e125d6115747fbc264736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100dc578063bb85c0bb14610108578063f2fde38b14610140578063fbe5ba1e146101665761007d565b8063715018a61461008257806372eb293d1461008c5780638da5cb5b146100b8575b600080fd5b61008a61018c565b005b61008a600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561022e565b6100c06102a2565b604080516001600160a01b039092168252519081900360200190f35b61008a600480360360408110156100f257600080fd5b506001600160a01b0381351690602001356102b1565b61012e6004803603602081101561011e57600080fd5b50356001600160a01b0316610325565b60408051918252519081900360200190f35b61008a6004803603602081101561015657600080fd5b50356001600160a01b0316610340565b61012e6004803603602081101561017c57600080fd5b50356001600160a01b0316610438565b610194610453565b6000546001600160a01b039081169116146101e4576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610236610453565b6000546001600160a01b03908116911614610286576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6102b9610453565b6000546001600160a01b03908116911614610309576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b610348610453565b6000546001600160a01b03908116911614610398576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b0381166103dd5760405162461bcd60e51b81526004018080602001828103825260268152602001806104586026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526002602052604090205490565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ecc0c014ac922b7508aa27bfce788f1194bf2ed13b2470c4e125d6115747fbc264736f6c63430007060033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.