Skip to content

Commit

Permalink
Merge branch 'master' into fuse-flywheel
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Sep 25, 2021
2 parents c3b45ec + d8529d4 commit 53f55ba
Show file tree
Hide file tree
Showing 33 changed files with 22 additions and 16 deletions.
18 changes: 12 additions & 6 deletions api/tokenData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ export default async (request: VercelRequest, response: VercelResponse) => {
//////////////////
// Edge cases: //
/////////////////

if (
web3.utils.toChecksumAddress(address) ===
web3.utils.toChecksumAddress("0xFD4D8a17df4C27c1dD245d153ccf4499e806C87D")
) {
name = "linkCRV Gauge Deposit";
symbol = "[G]linkCRV";
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/crvLINKGauge.png";
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/tokens/crvLINKGauge.png";
}

if (
Expand All @@ -55,15 +56,20 @@ export default async (request: VercelRequest, response: VercelResponse) => {
) {
name = "Wrapped Staked Ether";
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/wstETH.png";
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/tokens/wstETH.png";
}

if (
web3.utils.toChecksumAddress(address) ===
web3.utils.toChecksumAddress("0x04f2694c8fcee23e8fd0dfea1d4f5bb8c352111f")
) {
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/token_sOHM_2.png";
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/tokens/sOHM.png";
}

if (symbol === "G-UNI") {
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/tokens/G-UNI.png";
}

// Fetch the logo from yearn if possible:
Expand Down Expand Up @@ -130,7 +136,7 @@ export default async (request: VercelRequest, response: VercelResponse) => {
web3.utils.toChecksumAddress("0xaC14864ce5A98aF3248Ffbf549441b04421247D3")
) {
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/logos/stakedao/xSDT.png";
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/xSDT.png";
}

// sd3Crv
Expand All @@ -139,7 +145,7 @@ export default async (request: VercelRequest, response: VercelResponse) => {
web3.utils.toChecksumAddress("0xB17640796e4c27a39AF51887aff3F8DC0daF9567")
) {
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/logos/stakedao/sd3Crv.png";
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/sd3Crv.png";
}

// sdeursCRV
Expand All @@ -148,7 +154,7 @@ export default async (request: VercelRequest, response: VercelResponse) => {
web3.utils.toChecksumAddress("0xCD6997334867728ba14d7922f72c893fcee70e84")
) {
logoURL =
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/logos/stakedao/sdeursCRV.png";
"https://raw.githubusercontent.com/Rari-Capital/rari-dApp/master/src/static/sdeursCRV.png";
}

const basicTokenInfo = {
Expand Down
20 changes: 10 additions & 10 deletions src/components/shared/Logos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import Logo from "../../static/small-logo.png";
import FuseLogo from "../../static/fuseicon.png";
import TransparentLogo from "../../static/small-transparent-logo.png";

import StatsPNGWhite from "static/icons/stats.png";
import StatsPNGGreen from "static/icons/statsGreen.png";
import EarnPNGWhite from "static/icons/earn.png";
import EarnPNGGreen from "static/icons/earnGreen.png";
import FusePNGWhite from "static/icons/fuse.png";
import FusePNGGreen from "static/icons/fuseGreen.png";
import Pool2PNGWhite from "static/icons/pool2.png";
import Pool2PNGGreen from "static/icons/pool2Green.png";
import TranchesPNGWhite from "static/icons/tranches.png";
import TranchesPNGGreen from "static/icons/tranchesGreen.png";
import StatsPNGWhite from "static/positionsIcons/stats.png";
import StatsPNGGreen from "static/positionsIcons/statsGreen.png";
import EarnPNGWhite from "static/positionsIcons/earn.png";
import EarnPNGGreen from "static/positionsIcons/earnGreen.png";
import FusePNGWhite from "static/positionsIcons/fuse.png";
import FusePNGGreen from "static/positionsIcons/fuseGreen.png";
import Pool2PNGWhite from "static/positionsIcons/pool2.png";
import Pool2PNGGreen from "static/positionsIcons/pool2Green.png";
import TranchesPNGWhite from "static/positionsIcons/tranches.png";
import TranchesPNGGreen from "static/positionsIcons/tranchesGreen.png";

import { usePoolInfoFromContext } from "../../hooks/usePoolInfo";

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed src/static/sOHM.png
Binary file not shown.
Binary file added src/static/tokens/G-UNI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

1 comment on commit 53f55ba

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bundled size for the package is listed below:

build/static/css: 15.63 KB
build/static/media: 402.34 KB
build/static/js: 24.74 MB
build/static: 25.15 MB
build: 25.23 MB

Please sign in to comment.