From 801d69bc8dfa441c9547b60cd4e26029a306b060 Mon Sep 17 00:00:00 2001 From: Micah Alcorn <273937+micahalcorn@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:18:46 -0700 Subject: [PATCH] Include Flux and DSR on homepage (#186) * Add Flux and DSR to allocation * Handle naming issues * Add fToken icons --- public/images/flux-strategy.svg | 10 ++++++ public/images/maker-strategy.svg | 9 ++++++ public/images/tokens/flux-dai.svg | 12 +++++++ public/images/tokens/flux-usdc.svg | 12 +++++++ public/images/tokens/flux-usdt.svg | 12 +++++++ public/images/tokens/maker-dsr-dai.svg | 11 +++++++ src/components/Allocation.tsx | 2 +- src/utils/constants.ts | 43 ++++++++++++++++++++++---- 8 files changed, 104 insertions(+), 7 deletions(-) create mode 100644 public/images/flux-strategy.svg create mode 100644 public/images/maker-strategy.svg create mode 100644 public/images/tokens/flux-dai.svg create mode 100644 public/images/tokens/flux-usdc.svg create mode 100644 public/images/tokens/flux-usdt.svg create mode 100644 public/images/tokens/maker-dsr-dai.svg diff --git a/public/images/flux-strategy.svg b/public/images/flux-strategy.svg new file mode 100644 index 0000000..8b330f2 --- /dev/null +++ b/public/images/flux-strategy.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/public/images/maker-strategy.svg b/public/images/maker-strategy.svg new file mode 100644 index 0000000..522bfba --- /dev/null +++ b/public/images/maker-strategy.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/public/images/tokens/flux-dai.svg b/public/images/tokens/flux-dai.svg new file mode 100644 index 0000000..4146b50 --- /dev/null +++ b/public/images/tokens/flux-dai.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public/images/tokens/flux-usdc.svg b/public/images/tokens/flux-usdc.svg new file mode 100644 index 0000000..f8817bb --- /dev/null +++ b/public/images/tokens/flux-usdc.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public/images/tokens/flux-usdt.svg b/public/images/tokens/flux-usdt.svg new file mode 100644 index 0000000..997bec8 --- /dev/null +++ b/public/images/tokens/flux-usdt.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public/images/tokens/maker-dsr-dai.svg b/public/images/tokens/maker-dsr-dai.svg new file mode 100644 index 0000000..d7bbd4f --- /dev/null +++ b/public/images/tokens/maker-dsr-dai.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/components/Allocation.tsx b/src/components/Allocation.tsx index 97d9661..52a08f2 100644 --- a/src/components/Allocation.tsx +++ b/src/components/Allocation.tsx @@ -219,7 +219,7 @@ const Allocation = ({ strategies }) => { /> - {strategy.name} + {protocol.name !== 'Maker' ? strategy.name : 'DAI'} diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 19492ba..1980e06 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -18,6 +18,12 @@ export const theme = createTheme({ Morpho: { main: "#9bc3e9", }, + Flux: { + main: "#FFFFFF", + }, + Maker: { + main: "#1AAB9B", + }, Vault: { main: "#8c66fc", }, @@ -25,6 +31,16 @@ export const theme = createTheme({ }); export const protocolMapping = { + Aave: { + image: "/images/aave-strategy.svg", + description: + "Aave is a liquidity protocol where users can participate as suppliers or borrowers. Each loan is over-collateralized to ensure repayment. OUSD deploys stablecoins to three of the Aave V2 markets and earns interest approximately every 12 seconds. Additional yield is generated from protocol token incentives (AAVE), which are regularly sold for USDT on Uniswap and compounded.", + }, + Compound: { + image: "/images/compound-strategy.svg", + description: + "Compound is an interest rate protocol allowing lenders to earn yield on digital assets by supplying them to borrowers. Each loan is over-collateralized to ensure repayment. OUSD deploys stablecoins to three of the Compound V2 markets and earns interest approximately every 12 seconds. Additional yield is generated from protocol token incentives (COMP), which are regularly sold for USDT on Uniswap and compounded.", + }, Convex: { image: "/images/convex-strategy.svg", description: @@ -35,15 +51,15 @@ export const protocolMapping = { description: "Morpho adds a peer-to-peer layer on top of Compound and Aave allowing lenders and borrowers to be matched more efficiently with better interest rates. When no matching opportunity exists, funds flow directly through to the underlying protocol. OUSD supplies stablecoins to three of Morpho’s Compound markets to earn interest. Additional yield is generated from protocol token incentives, including both COMP (regularly sold for USDT) and MORPHO (currently locked).", }, - Aave: { - image: "/images/aave-strategy.svg", + Flux: { + image: "/images/flux-strategy.svg", description: - "Aave is a liquidity protocol where users can participate as suppliers or borrowers. Each loan is over-collateralized to ensure repayment. OUSD deploys stablecoins to three of the Aave V2 markets and earns interest approximately every 12 seconds. Additional yield is generated from protocol token incentives (AAVE), which are regularly sold for USDT on Uniswap and compounded.", + "Flux is a decentralized lending protocol built by the Ondo Finance team. The protocol is a fork of Compound V2 with additional functionality to support both permissionless and permissioned tokens. OUSD lends stablecoins to Flux borrowers whose positions are collateralized by OUSG. This gives OUSD indirect exposure to an ETF of short-term US Treasuries.", }, - Compound: { - image: "/images/compound-strategy.svg", + Maker: { + image: "/images/maker-strategy.svg", description: - "Compound is an interest rate protocol allowing lenders to earn yield on digital assets by supplying them to borrowers. Each loan is over-collateralized to ensure repayment. OUSD deploys stablecoins to three of the Compound V2 markets and earns interest approximately every 12 seconds. Additional yield is generated from protocol token incentives (COMP), which are regularly sold for USDT on Uniswap and compounded.", + "MakerDAO is the decentralized organization responsible for issuing DAI. The Dai Savings Rate (DSR) is a key mechanism of the Maker protocol designed to stabilize the value and supply of DAI by incentivizing users to hold and save it. OUSD utilizes the DSR as its base strategy for earning yield from DAI holdings.", }, }; @@ -110,6 +126,21 @@ export const strategyMapping = { usdc: "0x39aa39c021dfbae8fac545936693ac917d5e7563", usdt: "0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9", }, + flux_strat: { + protocol: "Flux", + singleAsset: true, + name: "Flux", + address: "0x76Bf500B6305Dc4ea851384D3d5502f1C7a0ED44", + dai: "0xe2bA8693cE7474900A045757fe0efCa900F6530b", + usdc: "0x465a5a630482f3abD6d3b84B39B29b07214d19e5", + usdt: "0x81994b9607e06ab3d5cF3AffF9a67374f05F27d7", + }, + dsr_strat: { + protocol: "Maker", + singleAsset: true, + name: "Maker DSR", + address: "0x6b69B755C629590eD59618A2712d8a2957CA98FC", + }, }; export const tokenColors = {