Skip to content

Commit

Permalink
fix: remove rewards modal (#153)
Browse files Browse the repository at this point in the history
- closes #76
The reward modal did no longer make sense as there might be more then one rewards. Also this was only shown on modal.
  • Loading branch information
sakulstra authored Dec 17, 2021
1 parent dd7ad7f commit 74dd795
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 76 deletions.
35 changes: 0 additions & 35 deletions src/components/HelpModal/BorrowRatesHelpModal/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/HelpModal/BorrowRatesHelpModal/messages.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/modules/markets/screens/Markets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import {
useDynamicPoolDataContext,
useStaticPoolDataContext,
} from '../../../../libs/pool-data-provider';
import { useProtocolDataContext } from '../../../../libs/protocol-data-provider';
import toggleLocalStorageClick from '../../../../helpers/toggle-local-storage-click';
import TopPanelWrapper from '../../../../components/wrappers/TopPanelWrapper';
import ScreenWrapper from '../../../../components/wrappers/ScreenWrapper';
import SelectMarketPanel from '../../components/SelectMarketPanel';
import MarketTable from '../../components/MarketTable';
import MarketTableItem from '../../components/MarketTableItem';
import TotalMarketsSize from '../../components/TotalMarketsSize';
import BorrowRatesHelpModal from '../../../../components/HelpModal/BorrowRatesHelpModal';
import LabeledSwitcher from '../../../../components/basic/LabeledSwitcher';
import MarketMobileCard from '../../components/MarketMobileCard';

Expand All @@ -28,7 +26,6 @@ export default function Markets() {
const { currentTheme } = useThemeContext();
const { marketRefPriceInUsd } = useStaticPoolDataContext();
const { reserves } = useDynamicPoolDataContext();
const { currentMarketData } = useProtocolDataContext();
const { reserveIncentives } = useIncentivesDataContext();
const [isPriceInUSD, setIsPriceInUSD] = useState(
localStorage.getItem('marketsIsPriceInUSD') === 'true'
Expand Down Expand Up @@ -149,16 +146,6 @@ export default function Markets() {
</MarketTable>

<div className="Markets__mobile--cards">
{currentMarketData.enabledFeatures?.incentives && (
<div className="Markets__help--modalInner">
<BorrowRatesHelpModal // TO-DO: Pass rewardTokenSymbol to this component
className="Markets__help--modal"
text={intl.formatMessage(messages.rewardsInformation)}
iconSize={14}
/>
</div>
)}

{sortedData.map((item, index) => (
<MarketMobileCard {...item} key={index} />
))}
Expand Down
2 changes: 0 additions & 2 deletions src/translations/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "可变利息",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "利率将根据市场而{fluctuate} ,建议用于短期贷款。",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "保持不变",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "添加和删除用作抵押品的资产",
"components.HelpModal.CollateralHelpModal.description": "允许你决定是否使用存入资产作为抵押。用作抵押的资产将影响你的借贷能力和健康系数。",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "冷却 & 取消质押窗口周期",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Variable Interest",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "Your interest rate will {fluctuate} based on the market. Recommended for short-term loans.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "stay the same",
"components.HelpModal.BorrowRatesHelpModal.caption": "Rewards information",
"components.HelpModal.BorrowRatesHelpModal.description": "Participating in this Aave market gives rewards in {token} token. The APR is just a representation on how these rewards would be during a 1-year period",
"components.HelpModal.CollateralHelpModal.caption": "Adding and removing assets as collateral",
"components.HelpModal.CollateralHelpModal.description": "Allows you to decide whether to use a deposited asset as collateral. An asset used as collateral will affect your borrowing power and health factor.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Cooldown & Unstake Window Period",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "",
"components.HelpModal.CollateralHelpModal.description": "",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Interés variable",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "Tu tasa de interés {fluctuate} según el mercado. Recomendado para préstamos a corto plazo.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "permanecer igual",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "Habilitar y deshabilitar activos como garantía",
"components.HelpModal.CollateralHelpModal.description": "Permite decidir si utilizar o no un depósito específico como garantía. Una divisa utilizada como garantía afectará tu poder de endeudamiento (cantidad máxima para tomar prestado en relación con la garantía) y a tu factor de salud.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Ventana de tiempo de Cooldown & Unstakeo",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Intérêt variable",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "Votre taux d'intérêt {fluctuate} fonction du marché. Recommandé pour les prêts à court terme.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "rester le même",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "Ajout et suppression d'actifs en collatéral",
"components.HelpModal.CollateralHelpModal.description": "Vous permet de décider d'utiliser ou non un actif déposé comme collatéral. Un actif utilisé comme collatéral affectera votre capacité d'emprunt et votre Health Factor.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Cooldown & période d'Unstake Window",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Interesse variabile",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "Il tasso d'interesse sarà {fluctuate} in base al mercato. Consigliato per i prestiti a breve termine.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "rimanere lo stesso",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "Aggiunta e rimozione di asset come garanzia",
"components.HelpModal.CollateralHelpModal.description": "Ti permette di decidere se utilizzare un asset depositato come garanzia. Un bene utilizzato come garanzia influenzerà il tuo borrowing power e il tuo health factor.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Cooldown & Unstake Window Period",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "変動型金利",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "お客様の金利は市場に基づいて{fluctuate}します。短期ローンにおすすめです。",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "そのまま",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "資産を担保として追加および削除する",
"components.HelpModal.CollateralHelpModal.description": "預入資産を担保として使用するかどうかを決定できます。担保として使用される資産は、借入能力と健康指数に影響を与えます。",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "クールダウンとステーク解除ウィンドウ期間",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "변동 이자",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "이자율은 시장에 따라 {fluctuate}할 것입니다. 단기 대출에 추천합니다.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "그대로 있다",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "자산을 담보로 추가 및 제거하기",
"components.HelpModal.CollateralHelpModal.description": "특정 예치금을 담보로 사용할지 여부를 결정할 수 있습니다. 담보로 사용되는 통화는 차입 능력과 건전 계수에 영향을 미칩니다.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "쿨다운 & 언스테이킹 기간",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Interesse variável",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "A sua taxa de juro irá {fluctuate} com base no mercado. Recomendado para empréstimos a curto prazo.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "permanecer o mesmo",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "Acréscimo e remoção de ativos como garantia",
"components.HelpModal.CollateralHelpModal.description": "Permite-lhe decidir se pretende utilizar um bem depositado como garantia. Um bem usado como garantia afetará o seu poder de empréstimo e o seu fator saúde.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Período de Janela de Cooldown & Unstake",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Değişken Faiz",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "Faiz oranınız pazara göre {fluctuate} . Kısa vadeli krediler için önerilir.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "aynı kal",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "Varlıkları teminat olarak ekleme ve çıkarma",
"components.HelpModal.CollateralHelpModal.description": "Teminat olarak yatırılan bir varlığı kullanıp kullanmayacağınıza karar vermenizi sağlar. Teminat olarak kullanılan bir varlık, borçlanma gücünüzü ve sağlık faktörünüzü etkileyecektir.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Bekleme Süresi & Unstake Pencere Dönemi",
Expand Down
2 changes: 0 additions & 2 deletions src/translations/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemCaption": "Lãi suất có thể thay đổi",
"components.HelpModal.BorrowInterestHelpModal.secondHelpItemDescription": "Lãi suất của bạn sẽ {fluctuate} dựa trên thị trường. Được đề xuất cho các khoản vay ngắn hạn.",
"components.HelpModal.BorrowInterestHelpModal.stayTheSame": "giữ nguyên",
"components.HelpModal.BorrowRatesHelpModal.caption": "",
"components.HelpModal.BorrowRatesHelpModal.description": "",
"components.HelpModal.CollateralHelpModal.caption": "Thêm và xóa tài sản làm tài sản thế chấp",
"components.HelpModal.CollateralHelpModal.description": "Cho phép bạn quyết định có sử dụng tài sản ký gửi làm tài sản thế chấp hay không. Một tài sản được sử dụng để thế chấp sẽ ảnh hưởng đến khả năng vay và chỉ số an toàn của bạn.",
"components.HelpModal.CooldownUnstakeHelpModal.caption": "Giai đoạn unstake và cooldown",
Expand Down

0 comments on commit 74dd795

Please sign in to comment.