From b90dd67872c9b5a8c476e8c0c87fbd48d6e6b60d Mon Sep 17 00:00:00 2001 From: Dima Lekhovitsky Date: Fri, 1 Mar 2024 13:26:15 +0200 Subject: [PATCH] feat: add `ERC20Metadata` This "token-like" contract can serve as a dummy key in the price oracle to register /ETH price feeds --- contracts/tokens/ERC20Metadata.sol | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 contracts/tokens/ERC20Metadata.sol diff --git a/contracts/tokens/ERC20Metadata.sol b/contracts/tokens/ERC20Metadata.sol new file mode 100644 index 0000000..1bb69da --- /dev/null +++ b/contracts/tokens/ERC20Metadata.sol @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BUSL-1.1 +// Gearbox Protocol. Generalized leverage for DeFi protocols +// (c) Gearbox Foundation, 2024. +pragma solidity ^0.8.17; + +/// @title ERC20Metadata +contract ERC20Metadata { + string public name; + string public symbol; + uint8 public immutable decimals; + + constructor(string memory name_, string memory symbol_, uint8 decimals_) { + name = name_; + symbol = symbol_; + decimals = decimals_; + } +}