aave-protocol-v2/contracts/configuration/AddressStorage.sol

15 lines
339 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
contract AddressStorage {
2020-07-13 08:54:08 +00:00
mapping(bytes32 => address) private addresses;
2020-07-13 08:54:08 +00:00
function getAddress(bytes32 _key) public view returns (address) {
return addresses[_key];
}
2020-07-13 08:54:08 +00:00
function _setAddress(bytes32 _key, address _value) internal {
addresses[_key] = _value;
}
}