Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 16 from a total of 16 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 9745899 | 1733 days ago | IN | 0 ETH | 0.00011192 | ||||
Set Market Borro... | 9741653 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741651 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741649 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741647 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741645 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741643 | 1733 days ago | IN | 0 ETH | 0.00064269 | ||||
Set Market Borro... | 9741642 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741640 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741639 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741638 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741637 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741636 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741635 | 1733 days ago | IN | 0 ETH | 0.00064197 | ||||
Set Market Borro... | 9741635 | 1733 days ago | IN | 0 ETH | 0.00064287 | ||||
Set Market Borro... | 9741633 | 1733 days ago | IN | 0 ETH | 0.00064287 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LendingRateOracle
Compiler Version
v0.5.14+commit.1f1aaa4
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-03-26 */ // File: contracts/interfaces/ILendingRateOracle.sol pragma solidity ^0.5.0; /** * @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: openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @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. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be aplied to your functions to restrict their use to * the owner. */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @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(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return msg.sender == _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 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: contracts/mocks/oracle/LendingRateOracle.sol pragma solidity ^0.5.0; contract LendingRateOracle is ILendingRateOracle, Ownable { mapping(address => uint256) borrowRates; mapping(address => uint256) liquidityRates; function getMarketBorrowRate(address _asset) external view returns(uint256) { return borrowRates[_asset]; } function setMarketBorrowRate(address _asset, uint256 _rate) external 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; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getMarketBorrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getMarketLiquidityRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setMarketBorrowRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setMarketLiquidityRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040819052600080546001600160a01b03191633178082556001600160a01b0316917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36104ce806100576000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639f86a0ee1161005b5780639f86a0ee14610103578063bb85c0bb1461012f578063f2fde38b14610167578063fbe5ba1e1461018d57610088565b8063715018a61461008d57806372eb293d146100975780638da5cb5b146100c35780638f32d59b146100e7575b600080fd5b6100956101b3565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b038135169060200135610244565b6100cb6102a7565b604080516001600160a01b039092168252519081900360200190f35b6100ef6102b6565b604080519115158252519081900360200190f35b6100956004803603604081101561011957600080fd5b506001600160a01b0381351690602001356102c7565b6101556004803603602081101561014557600080fd5b50356001600160a01b031661032a565b60408051918252519081900360200190f35b6100956004803603602081101561017d57600080fd5b50356001600160a01b0316610345565b610155600480360360208110156101a357600080fd5b50356001600160a01b0316610398565b6101bb6102b6565b6101fa576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61024c6102b6565b61028b576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6102cf6102b6565b61030e576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b61034d6102b6565b61038c576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b610395816103b3565b50565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b0381166103f85760405162461bcd60e51b81526004018080602001828103825260268152602001806104546026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a72315820fd82dced7515601e923acf0de9cc98d43cb0205d3b6663f2611fec9ebcf5dac264736f6c634300050e0032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80639f86a0ee1161005b5780639f86a0ee14610103578063bb85c0bb1461012f578063f2fde38b14610167578063fbe5ba1e1461018d57610088565b8063715018a61461008d57806372eb293d146100975780638da5cb5b146100c35780638f32d59b146100e7575b600080fd5b6100956101b3565b005b610095600480360360408110156100ad57600080fd5b506001600160a01b038135169060200135610244565b6100cb6102a7565b604080516001600160a01b039092168252519081900360200190f35b6100ef6102b6565b604080519115158252519081900360200190f35b6100956004803603604081101561011957600080fd5b506001600160a01b0381351690602001356102c7565b6101556004803603602081101561014557600080fd5b50356001600160a01b031661032a565b60408051918252519081900360200190f35b6100956004803603602081101561017d57600080fd5b50356001600160a01b0316610345565b610155600480360360208110156101a357600080fd5b50356001600160a01b0316610398565b6101bb6102b6565b6101fa576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61024c6102b6565b61028b576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6102cf6102b6565b61030e576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b6001600160a01b03909116600090815260026020526040902055565b6001600160a01b031660009081526001602052604090205490565b61034d6102b6565b61038c576040805162461bcd60e51b8152602060048201819052602482015260008051602061047a833981519152604482015290519081900360640190fd5b610395816103b3565b50565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b0381166103f85760405162461bcd60e51b81526004018080602001828103825260268152602001806104546026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a265627a7a72315820fd82dced7515601e923acf0de9cc98d43cb0205d3b6663f2611fec9ebcf5dac264736f6c634300050e0032
Deployed Bytecode Sourcemap
3187:697:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3187:697:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2353:140;;;:::i;:::-;;3482:125;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3482:125:0;;;;;;;;:::i;1542:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1542:79:0;;;;;;;;;;;;;;1908:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;3750:131;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3750:131:0;;;;;;;;:::i;3353:121::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3353:121:0;-1:-1:-1;;;;;3353:121:0;;:::i;:::-;;;;;;;;;;;;;;;;2648:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2648:109:0;-1:-1:-1;;;;;2648:109:0;;:::i;3615:127::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3615:127:0;-1:-1:-1;;;;;3615:127:0;;:::i;2353:140::-;1754:9;:7;:9::i;:::-;1746:54;;;;;-1:-1:-1;;;1746:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1746:54:0;;;;;;;;;;;;;;;2452:1;2436:6;;2415:40;;-1:-1:-1;;;;;2436:6:0;;;;2415:40;;2452:1;;2415:40;2483:1;2466:19;;-1:-1:-1;;;;;;2466:19:0;;;2353:140::o;3482:125::-;1754:9;:7;:9::i;:::-;1746:54;;;;;-1:-1:-1;;;1746:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1746:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3572:19:0;;;;;;;:11;:19;;;;;:27;3482:125::o;1542:79::-;1580:7;1607:6;-1:-1:-1;;;;;1607:6:0;1542:79;:::o;1908:92::-;1948:4;1986:6;-1:-1:-1;;;;;1986:6:0;1972:10;:20;;1908:92::o;3750:131::-;1754:9;:7;:9::i;:::-;1746:54;;;;;-1:-1:-1;;;1746:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1746:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3843:22:0;;;;;;;:14;:22;;;;;:30;3750:131::o;3353:121::-;-1:-1:-1;;;;;3447:19:0;3420:7;3447:19;;;:11;:19;;;;;;;3353:121::o;2648:109::-;1754:9;:7;:9::i;:::-;1746:54;;;;;-1:-1:-1;;;1746:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1746:54:0;;;;;;;;;;;;;;;2721:28;2740:8;2721:18;:28::i;:::-;2648:109;:::o;3615:127::-;-1:-1:-1;;;;;3712:22:0;3685:7;3712:22;;;:14;:22;;;;;;;3615:127::o;2863:229::-;-1:-1:-1;;;;;2937:22:0;;2929:73;;;;-1:-1:-1;;;2929:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3039:6;;;3018:38;;-1:-1:-1;;;;;3018:38:0;;;;3039:6;;;3018:38;;;3067:6;:17;;-1:-1:-1;;;;;;3067:17:0;-1:-1:-1;;;;;3067:17:0;;;;;;;;;;2863:229::o
Swarm Source
bzzr://fd82dced7515601e923acf0de9cc98d43cb0205d3b6663f2611fec9ebcf5dac2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.