Contract 0x6c0b0195202c54e5d32a9f9e667467261f9c9742

Contract Overview

Balance:
0 BNB
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x185ab801f8eb85320bdfe05feffd039632ea120a0eed6933bf59226df3a70150Transfer Ownersh...80522162021-04-17 8:07:01159 days 19 hrs ago0x54013fe8d7eabe4db0ad65813edb16cf8630532a IN  0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB0.00061634
0x7eb2edde3aa17e6b672420bdf98762adff55943e3a20b9538829a25daa083fda0x6080604080522122021-04-17 8:06:49159 days 19 hrs ago0x54013fe8d7eabe4db0ad65813edb16cf8630532a IN  Contract Creation0 BNB0.00687692
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x18397e756c416c98302f1e9a1d2532b5536e480c499ee5e6f7828f8169108f65102167242021-07-01 15:32:5784 days 12 hrs ago 0xcf2b5faac39a333aee2b6209c3a74f3f73e88b2b 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x5a170d8c393cbf79dd310c3ec59f0aeb52f75b4e6993bec4663cb859a731e421102165412021-07-01 15:23:4884 days 12 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x7f158b045a558aa8294b184f081ac9ce7ede54b1c6d2c1ff5b9a1bc851d67b1b102025502021-07-01 3:44:1585 days 4 mins ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x16a85dae84047a4abc56be6efdb5763a07a450a78a537c3ee21df30884832ca0102025402021-07-01 3:43:4585 days 4 mins ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x51758f3aa398a1ece728441e9e392171b58c1235f61b3bbf1718907c387319ad102025292021-07-01 3:43:1285 days 5 mins ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x39d93456d129f85658859d501aab3a99a9e4b75dcf0ac2a28dfe2d812e3c3522101826462021-06-30 10:25:5385 days 17 hrs ago 0xcf2b5faac39a333aee2b6209c3a74f3f73e88b2b 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0xc7d0c3e81a26a9eceee5487f84a4be0e401929d70534652aa48681b3cae96f00101820042021-06-30 9:53:4785 days 17 hrs ago 0xcf2b5faac39a333aee2b6209c3a74f3f73e88b2b 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x79bb9948814649d4e5273fe5b747930311410a03a242bcc95555c7c23b7ac1c8101817992021-06-30 9:43:3285 days 18 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x47d2c0d31c6f31d4f0f78b819aac8e21ebcb5a431a881772bc3b48040cf46541101817592021-06-30 9:41:3285 days 18 hrs ago 0xcf2b5faac39a333aee2b6209c3a74f3f73e88b2b 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x46ae5e4c04ae6164503f18921fa9734d9d98ca39dfb7177be2edb8a395a67bfd101816372021-06-30 9:35:2685 days 18 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0xe1b231f188dd291bf713e297498fe515e79bfffe520ccaafb86b9cc9a15b1f95101816222021-06-30 9:34:4185 days 18 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x1d19bf33b801b5ccaf2f742c77e872f503f675a1ef3852e54d04f1de132c73a4100592352021-06-26 2:37:2590 days 1 hr ago 0xcf2b5faac39a333aee2b6209c3a74f3f73e88b2b 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x1ecf4840539a02b95a787dfb50fd7db747814a7e1ff8824f87f72c30a1e5c4b899780402021-06-23 6:57:4092 days 20 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x95271229401c883de7e0950b0a78d6ccdd5a4a8dec7d01c0e7c197240a2255e599780202021-06-23 6:56:4092 days 20 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x129165b6e23dea48782999ffddae9eafe7c9465b2d7570e5f043ed7144bbdcc699253852021-06-21 11:04:5594 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0xd6dcc0f3f3e96ccd1fb7cfd3a6dd44ad9ee6b03337d0881dfe90c7ba6fd0146e99253702021-06-21 11:04:1094 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0xaabf0012668875a280b4dff0e7e47451b49afeee5e331c5a6c3d3821aab86d1c99253502021-06-21 11:03:1094 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x3a081daa38173209664612060ee435c067b5b78fb6560bd63005230c7d01a37099253102021-06-21 11:01:1094 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0xbf224c46a9bcf62ab4013818212a4bda50dfb167a2a09f82cdf303988280925199252662021-06-21 10:58:5894 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x42ae86090deced46af96791128f714bed7af912aa6a14807d7558d1a1be1ba7399252522021-06-21 10:58:1694 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x9231f60cba9ba448b4a51ae1d78542337baac7788bfa30c805e02f0f9c93ae3f99252062021-06-21 10:55:5894 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0xf1d443a4b426f1a58a90cd9d7d153d05c34f40dcbdac467aaaecee530e9de61999251902021-06-21 10:55:1094 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x42740df5605b884779494118ceed253933208f9aa5254f21133707c54784cb1199251732021-06-21 10:54:1994 days 16 hrs ago 0xcf2b5faac39a333aee2b6209c3a74f3f73e88b2b 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x727615e7726fe9bb7278e3e8d91ee162dc65e8d84c1b5154112a68bd83f3795d99251552021-06-21 10:53:2594 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
0x91e2010a762760179f69a1073fc6549e787fa93b170c6bb36a9139df4e7bdc3699250652021-06-21 10:48:5594 days 16 hrs ago 0x1738b7a43933a5d651093a8501c242c457b6bfbd 0x6c0b0195202c54e5d32a9f9e667467261f9c97420 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x21ae0a59090208E53d6cCD2927a7283aAf5A4Fb2

Contract Name:
LendingRateOracle

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : LendingRateOracle.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;

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.6.12;

/**
 * @title ILendingRateOracle interface
 * @notice Interface for the GalaxyDefi 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.6.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.
 */
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() internal {
    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.6.12;

/*
 * @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
  },
  "evmVersion": "istanbul",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "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"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b6104d38061007d6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639f86a0ee1161005b5780639f86a0ee146100dc578063bb85c0bb14610108578063f2fde38b14610140578063fbe5ba1e146101665761007d565b8063715018a61461008257806372eb293d1461008c5780638da5cb5b146100b8575b600080fd5b61008a61018c565b005b61008a600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561022e565b6100c06102a2565b604080516001600160a01b039092168252519081900360200190f35b61008a600480360360408110156100f257600080fd5b506001600160a01b0381351690602001356102b1565b61012e6004803603602081101561011e57600080fd5b50356001600160a01b0316610325565b60408051918252519081900360200190f35b61008a6004803603602081101561015657600080fd5b50356001600160a01b0316610340565b61012e6004803603602081101561017c57600080fd5b50356001600160a01b0316610438565b610194610453565b6000546001600160a01b039081169116146101e4576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610236610453565b6000546001600160a01b03908116911614610286576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6102b9610453565b6000546001600160a01b03908116911614610309576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b610348610453565b6000546001600160a01b03908116911614610398576040805162461bcd60e51b8152602060048201819052602482015260008051602061047e833981519152604482015290519081900360640190fd5b6001600160a01b0381166103dd5760405162461bcd60e51b81526004018080602001828103825260268152602001806104586026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526002602052604090205490565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220b04fb081357f26cde0a67c2f642e2b1fb550dbdb68905fcabda82f8b83e5c85c64736f6c634300060c0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading